Commit 7229d0e0 by 阮思源

Merge branch 'feat-1001923' into 'master'

修改标签bug

See merge request rays/pcloud-book!258
parents f6c47323 77af442a
......@@ -3491,16 +3491,19 @@ public class BookGroupBizImpl implements BookGroupBiz {
if (!agentIds.contains(selfBookGroupStDTO.getAgentId())){
agentIds.add(selfBookGroupStDTO.getAgentId());
}
if (!labelIds.contains(selfBookGroupStDTO.getDepLabelId())){
if (!labelIds.contains(selfBookGroupStDTO.getDepLabelId()) && selfBookGroupStDTO.getDepLabelId() != null) {
labelIds.add(selfBookGroupStDTO.getDepLabelId());
}
if (!labelIds.contains(selfBookGroupStDTO.getPurLabelId())){
if (!labelIds.contains(selfBookGroupStDTO.getPurLabelId()) && selfBookGroupStDTO.getPurLabelId() != null) {
labelIds.add(selfBookGroupStDTO.getPurLabelId());
}
}
Map<Long, String> adviserNamesMap = adviserConsr.getNames(adviserIds);
Map<Long, String> agentNamesMap = agentConsr.getNames(agentIds);
Map<Long, String> labelMap = ResponseHandleUtil.parseMap(labelService.getLabelName(labelIds), Long.class, String.class);
Map<Long, String> labelMap = new HashMap<>();
if (!ListUtils.isEmpty(labelIds)) {
labelMap = ResponseHandleUtil.parseMap(labelService.getLabelName(labelIds), Long.class, String.class);
}
for (SelfBookGroupStDTO selfBookGroupStDTO:list){
selfBookGroupStDTO.setAdviserName(adviserNamesMap.get(selfBookGroupStDTO.getAdviserId()));
selfBookGroupStDTO.setAgentName(agentNamesMap.get(selfBookGroupStDTO.getAgentId()));
......
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