记得上下班打卡 | git大法好,push需谨慎

Commit 8f79aba7 authored by zhengfuxin's avatar zhengfuxin

修改bug

parent 83d9fc1b
......@@ -100,7 +100,7 @@ public class SmileUserController {
@ApiOperation("增加或者删除第一步")
public ResponseDto saveOrUpdateUserOneStep(@Validated(SmileUserVO.saveOne.class) @RequestBody SmileUserVO smileUserVO, MethodArgumentNotValidException exception) {
BindingResult result = exception.getBindingResult();
if (result.hasErrors()) {
if (result!=null&&result.hasErrors()) {
List<ObjectError> errors = result.getAllErrors();
if (errors != null) {
return ResponseDto.failure(errors.get(0).getDefaultMessage());
......@@ -122,7 +122,7 @@ public class SmileUserController {
@ApiOperation("增加或者删除第二步")
public ResponseDto saveOrUpdateUserTwoStep(@Validated(SmileUserVO.saveTwo.class)@RequestBody SmileUserVO smileUserVO, MethodArgumentNotValidException exception) {
BindingResult result = exception.getBindingResult();
if (result.hasErrors()) {
if (result!=null&&result.hasErrors()) {
List<ObjectError> errors = result.getAllErrors();
if (errors != null) {
return ResponseDto.failure(errors.get(0).getDefaultMessage());
......@@ -172,7 +172,7 @@ public class SmileUserController {
@ApiOperation("增加或者删除第三步")
public ResponseDto saveOrUpdateUserThreeStep(@Validated(SmileUserVO.saveThree.class) @RequestBody SmileUserVO smileUserVO, MethodArgumentNotValidException exception) {
BindingResult result = exception.getBindingResult();
if (result.hasErrors()) {
if (result!=null&&result.hasErrors()) {
List<ObjectError> errors = result.getAllErrors();
if (errors != null) {
return ResponseDto.failure(errors.get(0).getDefaultMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment