Browse Source

组织首页-获取组织机构信息接口参数判断调整

dev_shibei_match
sunyuchao 5 years ago
parent
commit
ff8f9855e2
  1. 7
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AgencydetailFormDTO.java
  2. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/AgencyController.java

7
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AgencydetailFormDTO.java

@ -33,10 +33,15 @@ public class AgencydetailFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 内部错误分组
* */
public interface AddUserInternalGroup{}
/**
* 机关组织Id
*/
@NotBlank(message = "机关组织ID不能为空")
@NotBlank(message = "机关组织ID不能为空" , groups = {AgencydetailFormDTO.AddUserInternalGroup.class})
private String agencyId;

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/AgencyController.java

@ -132,7 +132,7 @@ public class AgencyController {
@PostMapping("agencydetail")
@RequirePermission(requirePermission = RequirePermissionEnum.ORG_AGENCY_TRACE)
public Result<AgencysResultDTO> agencyDetail(@LoginUser TokenDto tokenDTO, @RequestBody AgencydetailFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO);
ValidatorUtils.validateEntity(formDTO, AgencydetailFormDTO.AddUserInternalGroup.class);
return agencyService.agencyDetail(formDTO);
}

Loading…
Cancel
Save