Commit e5c71efe by 徐高华

导购查询

parent 68da3340
...@@ -1769,6 +1769,9 @@ public class WxStaffController extends WebBaseController { ...@@ -1769,6 +1769,9 @@ public class WxStaffController extends WebBaseController {
resultList = EntityUtil.changeEntityListByJSON(ClerkListVO.class, clerkList); resultList = EntityUtil.changeEntityListByJSON(ClerkListVO.class, clerkList);
List<String> clerkIdList = resultList.stream().map(dto->dto.getClerkId()).collect(Collectors.toList()) ; List<String> clerkIdList = resultList.stream().map(dto->dto.getClerkId()).collect(Collectors.toList()) ;
List<StaffClerkRelationDTO> relationList = this.staffClerkRelationApiService.listByClerkIdsWxEnterpriseId(clerkIdList, wxEnterpriseId) ; List<StaffClerkRelationDTO> relationList = this.staffClerkRelationApiService.listByClerkIdsWxEnterpriseId(clerkIdList, wxEnterpriseId) ;
if(CollectionUtils.isEmpty(relationList)) {
return RestResponse.failure("-1", "无导购");
}
List<String> retlationIdList = relationList.stream().map(dto->dto.getClerkId()).collect(Collectors.toList()) ; List<String> retlationIdList = relationList.stream().map(dto->dto.getClerkId()).collect(Collectors.toList()) ;
resultList.removeIf(item->{ resultList.removeIf(item->{
return !retlationIdList.contains(item.getClerkId()) ; return !retlationIdList.contains(item.getClerkId()) ;
......
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