Browse Source

程序优化

dev_shibei_match
sunyuchao 4 years ago
parent
commit
f2a05962fe
  1. 5
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/CustomerGridFormDTO.java
  2. 1
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerGridController.java

5
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/CustomerGridFormDTO.java

@ -31,11 +31,12 @@ import java.io.Serializable;
public class CustomerGridFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格Id
*/
@NotBlank(message = "网格ID不能为空")
@NotBlank(message = "网格ID不能为空", groups = {Grid.class})
private String gridId;
public interface Grid{}
}

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

@ -103,6 +103,7 @@ public class CustomerGridController {
*/
@PostMapping("getcustomergridbygridid")
public Result<CustomerGridDTO> getCustomerGridByGridId(@RequestBody CustomerGridFormDTO customerGridFormDTO) {
ValidatorUtils.validateEntity(customerGridFormDTO, CustomerGridFormDTO.Grid.class);
return customerGridService.getCustomerGridByGridId(customerGridFormDTO);
}

Loading…
Cancel
Save