From bd18b414c03ef1ff0d80ee3ffc427dd510801e69 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Sat, 12 Feb 2022 17:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/teammember/impl/TeamMemberServiceImpl.java | 8 ++++---- src/main/resources/mybatis/mybatis-config.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cn/com/tenlion/usercenter/service/teammember/impl/TeamMemberServiceImpl.java b/src/main/java/cn/com/tenlion/usercenter/service/teammember/impl/TeamMemberServiceImpl.java index d343d3c..5ba0c06 100644 --- a/src/main/java/cn/com/tenlion/usercenter/service/teammember/impl/TeamMemberServiceImpl.java +++ b/src/main/java/cn/com/tenlion/usercenter/service/teammember/impl/TeamMemberServiceImpl.java @@ -260,7 +260,7 @@ public class TeamMemberServiceImpl extends DefaultBaseService implements ITeamMe @Override public List listAllByAreaCodeAndSort(String areaCode, String sort) { Map params = getHashMap(6); - params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0')); + params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3)); params.put("order", "areaCode"); params.put("sort", StringUtils.isBlank(sort) ? null : sort.toLowerCase()); return list(params); @@ -269,7 +269,7 @@ public class TeamMemberServiceImpl extends DefaultBaseService implements ITeamMe @Override public List listSubByAreaCodeAndSort(String areaCode, String sort) { Map params = getHashMap(8); - params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0')); + params.put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3)); params.put("excludeAreaCode", areaCode); params.put("order", "areaCode"); params.put("sort", StringUtils.isBlank(sort) ? null : sort.toLowerCase()); @@ -286,7 +286,7 @@ public class TeamMemberServiceImpl extends DefaultBaseService implements ITeamMe @Override public SuccessResultList> listPageAllByAreaCodeAndSort(String areaCode, String sort, ListPage page) { - page.getParams().put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0')); + page.getParams().put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3)); page.getParams().put("order", "areaCode"); page.getParams().put("sort", StringUtils.isBlank(sort) ? null : sort.toLowerCase()); return listPage(page); @@ -294,7 +294,7 @@ public class TeamMemberServiceImpl extends DefaultBaseService implements ITeamMe @Override public SuccessResultList> listPageSubByAreaCodeAndSort(String areaCode, String sort, ListPage page) { - page.getParams().put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0')); + page.getParams().put("areaCodeLike", WStringUtil.cutContinuityRepeatCharDesc(areaCode, '0', 3)); page.getParams().put("excludeAreaCode", areaCode); page.getParams().put("order", "areaCode"); page.getParams().put("sort", StringUtils.isBlank(sort) ? null : sort.toLowerCase()); diff --git a/src/main/resources/mybatis/mybatis-config.xml b/src/main/resources/mybatis/mybatis-config.xml index aadce54..07503f1 100644 --- a/src/main/resources/mybatis/mybatis-config.xml +++ b/src/main/resources/mybatis/mybatis-config.xml @@ -3,7 +3,7 @@ - +