Commit d0a1b9b9 by fudahua

gic 企业过期停用

parent 0f8c6940
...@@ -408,6 +408,21 @@ public class ClerkController extends WebBaseController{ ...@@ -408,6 +408,21 @@ public class ClerkController extends WebBaseController{
} }
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
//获取门店详情
public boolean isEnterpriseOver(String eid) {
EnterpriseDTO enterprise = enterpriseService.getEnterpriseByEid(eid);
if(enterprise == null || enterprise.getExpireTime() == null){
return false;
}
if(enterprise.getExpireTime().getTime() > System.currentTimeMillis()){
return false;
}
return true;
}
//精确查,根据手机号或者code,查找 //精确查,根据手机号或者code,查找
@RequestMapping("query-clerk-list-by-code") @RequestMapping("query-clerk-list-by-code")
public HaobanResponse queryClerkListByCode(String keyword,String wxEnterpriseId){ public HaobanResponse queryClerkListByCode(String keyword,String wxEnterpriseId){
...@@ -418,7 +433,10 @@ public class ClerkController extends WebBaseController{ ...@@ -418,7 +433,10 @@ public class ClerkController extends WebBaseController{
if(list == null || list.isEmpty()){ if(list == null || list.isEmpty()){
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
List<String> enterpriseIdList = list.stream().map(s->s.getEnterpriseId()).collect(Collectors.toList()); List<String> enterpriseIdList = list.stream().filter(s->{
boolean over = isEnterpriseOver(s.getEnterpriseId());
return !over;
}).map(s->s.getEnterpriseId()).collect(Collectors.toList());
List<ClerkDTO> clerkList = clerkNewService.listClerkByEnterpriseIdAndSearch(enterpriseIdList, keyword); List<ClerkDTO> clerkList = clerkNewService.listClerkByEnterpriseIdAndSearch(enterpriseIdList, keyword);
List<ClerkStoreVO> clerkStoreList = new ArrayList<>(); List<ClerkStoreVO> clerkStoreList = new ArrayList<>();
if(CollectionUtil.isEmpty(clerkList)){ if(CollectionUtil.isEmpty(clerkList)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment