|
@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
@@ -36,7 +37,8 @@ public class MixProportionInfoController extends BladeController {
|
|
|
@ApiOperation(value = "计算含水率", notes = "计算含水率")
|
|
|
@ApiImplicitParams(value = {
|
|
|
@ApiImplicitParam(name = "key", value = "当前输入框位置", required = true),
|
|
|
- @ApiImplicitParam(name = "MixProportionId", value = "配合比id", required = true),
|
|
|
+ @ApiImplicitParam(name = "contractId", value = "合同段id", required = true),
|
|
|
+ @ApiImplicitParam(name = "designStrength", value = "设计强度", required = true),
|
|
|
@ApiImplicitParam(name = "sand", value = "黄砂含水率", required = true),
|
|
|
@ApiImplicitParam(name = "macadamOne", value = "碎石1含水率", required = true),
|
|
|
@ApiImplicitParam(name = "macadamTwo", value = "碎石2含水率", required = true),
|
|
@@ -52,9 +54,9 @@ public class MixProportionInfoController extends BladeController {
|
|
|
*/
|
|
|
@GetMapping("/designStrengthList")
|
|
|
@ApiOperationSupport(order = 7)
|
|
|
- @ApiOperation(value = "设计强度列表", notes = "模糊搜索")
|
|
|
- public R<List<MixProportionInfo>> designStrengthList(@RequestParam String searchValue,Long contractId) {
|
|
|
- List<MixProportionInfo> list = mixProportionInfoService.designStrengthList(searchValue,contractId);
|
|
|
+ @ApiOperation(value = "设计强度列表", notes = "获取合同段下所有设计强度")
|
|
|
+ public R<Map<String,Map<String,String>>> designStrengthList(@RequestParam Long contractId,@RequestParam String key) {
|
|
|
+ Map<String,Map<String,String>> list = mixProportionInfoService.designStrengthList(contractId,key);
|
|
|
return R.data(list);
|
|
|
}
|
|
|
|