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=8B=A9=E7=9A=84=E5=9C=A8=E4=B8=8A=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=9F=8E=E5=B8=82=E5=85=B6=E4=BB=96=E5=8C=BA=E5=9F=9F=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E5=9C=A8=E4=B8=8B=EF=BC=8C=E7=9C=81=E7=9B=B4=E5=B1=9E?= =?UTF-8?q?=E5=9C=A8=E6=9C=80=E4=B8=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/form/ListCustomerGridFormDTO.java | 2 +- .../service/impl/CustomerGridServiceImpl.java | 8 +- .../main/resources/mapper/CustomerGridDao.xml | 151 ++++++++++++------ 3 files changed, 108 insertions(+), 53 deletions(-) diff --git a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/ListCustomerGridFormDTO.java b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/ListCustomerGridFormDTO.java index 78aa62fd80..21a790fe39 100644 --- a/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/ListCustomerGridFormDTO.java +++ b/epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/ListCustomerGridFormDTO.java @@ -29,7 +29,7 @@ public class ListCustomerGridFormDTO implements Serializable{ * 当前页 * */ @Min(value = 1) - private Integer pageNo; + private Integer pageNo = 1; /** * 每页显示数量 diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java index 00436e9b59..e88c1ebaa5 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java +++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java @@ -149,9 +149,13 @@ public class CustomerGridServiceImpl extends BaseServiceImpl map = new HashMap<>(); - + //地区码格式 六位 [abcxyz] + //ab代表省 + //cx代表市 + //yz代表区 map.put("areaCode",areaCode); - map.put("cityCode",areaCode.substring(0,areaCode.length()-NumConstant.FOUR)); + map.put("cityCode",areaCode.substring(NumConstant.ZERO,areaCode.length()-NumConstant.FOUR)); + map.put("provinceCode",areaCode.substring(NumConstant.ZERO,areaCode.length()-NumConstant.TWO)); map.put("pageSize",listCustomerGridFormDTO.getPageSize()); map.put("pageNo",listCustomerGridFormDTO.getPageNo()); diff --git a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml index 11744f7f5a..5944b91291 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml +++ b/epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml @@ -30,69 +30,120 @@ + + + + ) - -