Browse Source

接口添加入参必要参数非空判断

dev_shibei_match
sunyuchao 5 years ago
parent
commit
573f35bfa8
  1. 1
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerStaffGridController.java
  2. 4
      epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/resiregister/controller/ResiRegisterController.java
  3. 3
      epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/warmhearted/controller/ResiWarmheartedController.java
  4. 2
      epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedAuditFormDTO.java
  5. 1
      epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedFormDTO.java
  6. 1
      epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedSubmitFormDTO.java
  7. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/ResiRegisterFormDTO.java
  8. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/VerificationCodeFormDTO.java

1
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerStaffGridController.java

@ -101,6 +101,7 @@ public class CustomerStaffGridController {
**/
@PostMapping("manageaudit")
public Result manageAudit(@LoginUser TokenDto tokenDTO, @RequestBody ResiWarmheartedAuditFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO);
return customerStaffGridService.manageAudit(tokenDTO, formDTO);
}

4
epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/resiregister/controller/ResiRegisterController.java

@ -3,6 +3,7 @@ package com.epmet.modules.resiregister.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.dto.form.ResiInfoSubmitFormDTO;
import com.epmet.dto.form.ResiRegisterFormDTO;
import com.epmet.dto.form.VerificationCodeFormDTO;
@ -34,6 +35,7 @@ public class ResiRegisterController {
**/
@PostMapping("init")
public Result<ResiRegisterResultDTO> init(@LoginUser TokenDto tokenDTO, @RequestBody ResiRegisterFormDTO resiRegisterFormDTO) {
ValidatorUtils.validateEntity(resiRegisterFormDTO);
return resiRegisterService.init(tokenDTO, resiRegisterFormDTO);
}
@ -44,6 +46,7 @@ public class ResiRegisterController {
**/
@PostMapping("submit")
public Result submit(@LoginUser TokenDto tokenDTO, @RequestBody ResiInfoSubmitFormDTO resiInfoSubmitFormDTO) {
ValidatorUtils.validateEntity(resiInfoSubmitFormDTO);
return resiRegisterService.submit(tokenDTO, resiInfoSubmitFormDTO);
}
@ -54,6 +57,7 @@ public class ResiRegisterController {
**/
@PostMapping("getverificationcode")
public Result getVerificationCode(@LoginUser TokenDto tokenDTO, @RequestBody VerificationCodeFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO);
return resiRegisterService.getVerificationCode(tokenDTO, formDTO);
}

3
epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/modules/warmhearted/controller/ResiWarmheartedController.java

@ -3,6 +3,7 @@ package com.epmet.modules.warmhearted.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.modules.warmhearted.service.ResiWarmheartedService;
import com.epmet.resi.partymember.dto.warmhearted.form.ResiWarmheartedFormDTO;
import com.epmet.resi.partymember.dto.warmhearted.form.ResiWarmheartedSubmitFormDTO;
@ -31,6 +32,7 @@ public class ResiWarmheartedController {
**/
@PostMapping("init")
public Result<ResiWarmheartedResultDTO> init(@LoginUser TokenDto tokenDTO, @RequestBody ResiWarmheartedFormDTO resiWarmheartedFormDTO) {
ValidatorUtils.validateEntity(resiWarmheartedFormDTO);
return resiWarmheartedService.init(tokenDTO, resiWarmheartedFormDTO);
}
@ -41,6 +43,7 @@ public class ResiWarmheartedController {
**/
@PostMapping("submit")
public Result submit(@LoginUser TokenDto tokenDTO, @RequestBody ResiWarmheartedSubmitFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO);
return resiWarmheartedService.submit(tokenDTO, formDTO);
}

2
epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedAuditFormDTO.java

@ -47,7 +47,6 @@ public class ResiWarmheartedAuditFormDTO implements Serializable {
/**
* 驳回理由
*/
@NotBlank(message = "驳回理由不能为空")
private String refuseReason;
/**
@ -59,7 +58,6 @@ public class ResiWarmheartedAuditFormDTO implements Serializable {
/**
* 用户Id
*/
@NotBlank(message = "用户ID不能为空")
private String userId;
}

1
epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedFormDTO.java

@ -53,7 +53,6 @@ public class ResiWarmheartedFormDTO implements Serializable {
/**
* 用户Id
*/
@NotBlank(message = "用户ID不能为空")
private String userId;
}

1
epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/warmhearted/form/ResiWarmheartedSubmitFormDTO.java

@ -59,7 +59,6 @@ public class ResiWarmheartedSubmitFormDTO implements Serializable {
/**
* 用户Id
*/
@NotBlank(message = "用户ID不能为空")
private String userId;
}

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/ResiRegisterFormDTO.java

@ -53,7 +53,6 @@ public class ResiRegisterFormDTO implements Serializable {
/**
* 用户Id
*/
@NotBlank(message = "用户ID不能为空")
private String userId;
}

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/VerificationCodeFormDTO.java

@ -30,7 +30,6 @@ public class VerificationCodeFormDTO implements Serializable {
/**
* 用户ID
*/
@NotBlank(message = "用户ID不能为空")
private String userId;
}

Loading…
Cancel
Save