修改bug

zhairh
wangwei 2 years ago
parent db9cd77948
commit a889fb756b

@ -141,7 +141,10 @@ public class BasicUnitMaintainController {
@AuthRuleAnnotation("") @AuthRuleAnnotation("")
@PostMapping("/udiwms/basic/unit/maintain/update") @PostMapping("/udiwms/basic/unit/maintain/update")
public BaseResponse update(@RequestBody @Valid BasicUnitMaintainEntity basicUnitMaintainSaveRequest) { public BaseResponse update(@RequestBody @Valid BasicUnitMaintainEntity basicUnitMaintainSaveRequest,BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
basicUnitMaintainService.updateById(basicUnitMaintainSaveRequest); basicUnitMaintainService.updateById(basicUnitMaintainSaveRequest);
return ResultVOUtils.success("修改成功"); return ResultVOUtils.success("修改成功");
} }

Loading…
Cancel
Save