|
@@ -32,7 +32,7 @@ public class WindEngineMillController {
|
|
|
@UserLoginToken
|
|
|
@PostMapping(value = "/createEngineMill")
|
|
|
@ApiOperation(value = "手动创建机型信息")
|
|
|
- public ResultResp createEngineMill(@RequestBody WindEngineMillCreateDto windEngineMillCreateDto) {
|
|
|
+ public ResultResp createEngineMill(@RequestBody @Valid WindEngineMillCreateDto windEngineMillCreateDto) {
|
|
|
if(!windEngineMillService.verificationData(windEngineMillCreateDto.getMachineTypeCode(),windEngineMillCreateDto.getManufacturerCode())){
|
|
|
return ResultResp.FAIL("该厂商对应机型已经存在!");
|
|
|
}
|
|
@@ -83,7 +83,7 @@ public class WindEngineMillController {
|
|
|
@UserLoginToken
|
|
|
@PostMapping(value = "/updateWindEngineMill")
|
|
|
@ApiOperation(value = "更新机型")
|
|
|
- public ResultResp updateWindEngineMill(@RequestBody WindEngineMillDto windEngineMillDto) {
|
|
|
+ public ResultResp updateWindEngineMill(@RequestBody @Valid WindEngineMillDto windEngineMillDto) {
|
|
|
if(StringUtils.isEmpty(windEngineMillDto.getMillTypeCode())){
|
|
|
return ResultResp.NOTNULLPARAM();
|
|
|
}
|