Commit 7df1d836 by 王祖波

修改查询staffId

parent cc12f1e2
...@@ -284,7 +284,7 @@ public class JoinRuleManager { ...@@ -284,7 +284,7 @@ public class JoinRuleManager {
// 获取导购ID列表 // 获取导购ID列表
List<String> clerkIdList = clerkList.stream().map(ClerkDTO::getClerkId).collect(Collectors.toList()); List<String> clerkIdList = clerkList.stream().map(ClerkDTO::getClerkId).collect(Collectors.toList());
// 通过导购id查询staffId // 通过导购id查询staffId
List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listBindCode(wxEnterpriseId, enterpriseId, new HashSet<>(clerkIdList)); List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listByClerkIds(clerkIdList);
if (CollectionUtils.isEmpty(relationDTOList)) { if (CollectionUtils.isEmpty(relationDTOList)) {
logger.info("导购staff关联不存在"); logger.info("导购staff关联不存在");
return new ArrayList<>(); return new ArrayList<>();
...@@ -329,7 +329,7 @@ public class JoinRuleManager { ...@@ -329,7 +329,7 @@ public class JoinRuleManager {
} }
List<String> clerkIdList = clerkList.stream().map(ClerkDTO::getClerkId).collect(Collectors.toList()); List<String> clerkIdList = clerkList.stream().map(ClerkDTO::getClerkId).collect(Collectors.toList());
//通过导购id查询staffId //通过导购id查询staffId
List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listBindCode(wxEnterpriseId, enterpriseId, new HashSet<>(clerkIdList)); List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listByClerkIds(clerkIdList);
if (CollectionUtils.isEmpty(relationDTOList)) { if (CollectionUtils.isEmpty(relationDTOList)) {
logger.info("导购staff关联不存在"); logger.info("导购staff关联不存在");
return new HashMap<>(); return new HashMap<>();
......
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