关闭缓存

This commit is contained in:
wanggeng 2022-02-12 17:01:26 +08:00
parent 14c7b09358
commit bd18b414c0
2 changed files with 5 additions and 5 deletions

View File

@ -260,7 +260,7 @@ public class TeamMemberServiceImpl extends DefaultBaseService implements ITeamMe
@Override
public List<TeamMemberDTO> listAllByAreaCodeAndSort(String areaCode, String sort) {
Map<String, Object> 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<TeamMemberDTO> listSubByAreaCodeAndSort(String areaCode, String sort) {
Map<String, Object> 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<List<TeamMemberDTO>> 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<List<TeamMemberDTO>> 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());

View File

@ -3,7 +3,7 @@
<configuration>
<settings>
<!-- 二级缓存默认false -->
<setting name="cacheEnabled" value="true"/>
<setting name="cacheEnabled" value="false"/>
</settings>
<typeAliases>
<typeAlias type="java.util.Map" alias="map"/>