demand: 组树接口市场部-分拨中心可互换
committer: heyu
This commit is contained in:
parent
4acd952916
commit
74f4bd80ba
@ -4140,19 +4140,29 @@ public class EmisBaseService {
|
||||
|
||||
List<EmisTransPlanRule> toAdd = new ArrayList<>();
|
||||
for (EmisTransPlanRule node : topLevelNodes) {
|
||||
// 柯桥市场部
|
||||
//南京市场部
|
||||
if ("25001".equals(node.getStartSiteCode())) {
|
||||
List<EmisTransPlanRule> filterRules = allRules.stream().filter(i -> "25000".equals(i.getStartSiteCode())).collect(Collectors.toList());
|
||||
EmisTransPlanRule copyRule = new EmisTransPlanRule();
|
||||
BeanUtils.copyProperties(node, copyRule);
|
||||
copyRule.setStartSiteCode("25000");
|
||||
copyRule.setStartSiteName("南京分拨中心");
|
||||
if(CollectionUtil.isNotEmpty(filterRules)){
|
||||
copyRule.setManager(filterRules.get(0).getManager());
|
||||
}
|
||||
toAdd.add(copyRule);
|
||||
continue;
|
||||
}
|
||||
// 南京市场部
|
||||
// 柯桥市场部
|
||||
if ("57502".equals(node.getStartSiteCode())) {
|
||||
List<EmisTransPlanRule> filterRules = allRules.stream().filter(i -> "57501".equals(i.getStartSiteCode())).collect(Collectors.toList());
|
||||
EmisTransPlanRule copyRule = new EmisTransPlanRule();
|
||||
BeanUtils.copyProperties(node, copyRule);
|
||||
copyRule.setStartSiteCode("57501");
|
||||
copyRule.setStartSiteName("柯桥分拨中心");
|
||||
if(CollectionUtil.isNotEmpty(filterRules)){
|
||||
copyRule.setManager(filterRules.get(0).getManager());
|
||||
}
|
||||
toAdd.add(copyRule);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user