|
@@ -22,12 +22,11 @@ import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.cxf.common.util.StringUtils;
|
|
import org.apache.cxf.common.util.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@Slf4j
|
|
@Slf4j
|
|
@Validated
|
|
@Validated
|
|
@RestController
|
|
@RestController
|
|
@@ -71,9 +70,11 @@ public class CutterCategoriesController extends SuperSimpleController<CutterCate
|
|
IPage<CutterCategories> page = params.buildPage();
|
|
IPage<CutterCategories> page = params.buildPage();
|
|
LbqWrapper<CutterCategories> lbqWrapper = new LbqWrapper<CutterCategories>();
|
|
LbqWrapper<CutterCategories> lbqWrapper = new LbqWrapper<CutterCategories>();
|
|
CutterCategories model = params.getModel();
|
|
CutterCategories model = params.getModel();
|
|
- lbqWrapper.eq(CutterCategories::getPartsNo, model.getPartsNo())
|
|
|
|
|
|
+ lbqWrapper.eq(CutterCategories::getCutterT, model.getCutterT())
|
|
|
|
+ .eq(CutterCategories::getPartsNo, model.getPartsNo())
|
|
.eq(CutterCategories::getProcedureNo, model.getProcedureNo())
|
|
.eq(CutterCategories::getProcedureNo, model.getProcedureNo())
|
|
.eq(CutterCategories::getCutterName, model.getCutterName())
|
|
.eq(CutterCategories::getCutterName, model.getCutterName())
|
|
|
|
+ .eq(CutterCategories::getCutterNo, model.getCutterName())
|
|
.eq(CutterCategories::getProgramName, model.getProgramName())
|
|
.eq(CutterCategories::getProgramName, model.getProgramName())
|
|
.eq(CutterCategories::getBomName, model.getBomName())
|
|
.eq(CutterCategories::getBomName, model.getBomName())
|
|
.eq(CutterCategories::getCuttingToolType, model.getCuttingToolType());
|
|
.eq(CutterCategories::getCuttingToolType, model.getCuttingToolType());
|
|
@@ -84,11 +85,18 @@ public class CutterCategoriesController extends SuperSimpleController<CutterCate
|
|
return this.success(page);
|
|
return this.success(page);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "新增版本信息", notes = "新增版本信息")
|
|
|
|
|
|
+ @ApiOperation(value = "新增", notes = "新增息")
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
public R<CutterCategories> save(@RequestBody CutterCategoriesDto model) {
|
|
public R<CutterCategories> save(@RequestBody CutterCategoriesDto model) {
|
|
R save = cutterCategoriesService.save(model);
|
|
R save = cutterCategoriesService.save(model);
|
|
return save;
|
|
return save;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "删除", notes = "删除")
|
|
|
|
+ @PostMapping("/deleteMore")
|
|
|
|
+ public R<CutterCategories> deleteMore(@RequestBody CutterCategoriesDto model) {
|
|
|
|
+ R save = cutterCategoriesService.deleteMore(model.getIds());
|
|
|
|
+ return save;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|