From e9aeb7eca2a848997343bad2d612bcf2b71119d4 Mon Sep 17 00:00:00 2001 From: xhxu Date: Mon, 28 Feb 2022 14:02:36 +0800 Subject: [PATCH] =?UTF-8?q?/=E3=80=82=20countByFilter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxCUserBasicInfoServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java index 155e9d4b2..8083c1430 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java @@ -536,7 +536,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc @Override public long countByFilter(TenantEntity tenantEntity, List filterList) { WxCUserBasicInfoDto wxCUserBasicInfoDto = filtersToDto(tenantEntity, filterList); - if(wxCUserBasicInfoDto.getId() == -999l){ + if(wxCUserBasicInfoDto.getId() != null && wxCUserBasicInfoDto.getId() == -999l){ return 0l; } wxCUserBasicInfoDto.setTenantId(tenantEntity.getFinalTenantId()); @@ -547,7 +547,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc @Override public List listByFilter(TenantEntity tenantEntity, List filterList) { WxCUserBasicInfoDto wxCUserBasicInfoDto = filtersToDto(tenantEntity, filterList); - if(wxCUserBasicInfoDto.getId() == -999l){ + if(wxCUserBasicInfoDto.getId() != null && wxCUserBasicInfoDto.getId() == -999l){ return new ArrayList(); } wxCUserBasicInfoDto.setTenantId(tenantEntity.getFinalTenantId()); @@ -558,7 +558,7 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc @Override public List findIdByFilter(TenantEntity tenantEntity, List filterList) { WxCUserBasicInfoDto wxCUserBasicInfoDto = filtersToDto(tenantEntity, filterList); - if(wxCUserBasicInfoDto.getId() == -999l){ + if(wxCUserBasicInfoDto.getId() != null && wxCUserBasicInfoDto.getId() == -999l){ return new ArrayList(); } wxCUserBasicInfoDto.updateTenantInfo(tenantEntity);