|
@@ -16,6 +16,7 @@
|
|
*/
|
|
*/
|
|
package com.qunzhixinxi.hnqz.admin.service.impl;
|
|
package com.qunzhixinxi.hnqz.admin.service.impl;
|
|
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
@@ -755,6 +756,17 @@ public class WmScorePackageServiceImpl extends ServiceImpl<WmScorePackageMapper,
|
|
}
|
|
}
|
|
if (type.getChildren() != null || type.getChildren().size() > 0) {
|
|
if (type.getChildren() != null || type.getChildren().size() > 0) {
|
|
List<WmTaskTypeTree> childtasktypeList = type.getChildren();
|
|
List<WmTaskTypeTree> childtasktypeList = type.getChildren();
|
|
|
|
+ // 如果存在taskTypeId=39 则同时增加应收账款回款-A类、B类、C类任务类型(39/40/41)
|
|
|
|
+ if (childtasktypeList.stream().anyMatch(wmTaskTypeTree -> "39".equals(wmTaskTypeTree.getTaskTypeId()))) {
|
|
|
|
+ WmTaskTypeTree addTaskTypeTree40 = new WmTaskTypeTree();
|
|
|
|
+ addTaskTypeTree40.setTaskTypeId("40");
|
|
|
|
+ addTaskTypeTree40.setTaskTypeName("应收账款回款-B类");
|
|
|
|
+ WmTaskTypeTree addTaskTypeTree41 = new WmTaskTypeTree();
|
|
|
|
+ addTaskTypeTree41.setTaskTypeId("41");
|
|
|
|
+ addTaskTypeTree41.setTaskTypeName("应收账款回款-C类");
|
|
|
|
+ childtasktypeList.add(addTaskTypeTree40);
|
|
|
|
+ childtasktypeList.add(addTaskTypeTree41);
|
|
|
|
+ }
|
|
for (WmTaskTypeTree type1 : childtasktypeList) {
|
|
for (WmTaskTypeTree type1 : childtasktypeList) {
|
|
WmScoreTaskType wmScoreTaskType1 = new WmScoreTaskType();
|
|
WmScoreTaskType wmScoreTaskType1 = new WmScoreTaskType();
|
|
wmScoreTaskType1.setScoreId(wmScorePackage.getId());
|
|
wmScoreTaskType1.setScoreId(wmScorePackage.getId());
|