wurui преди 1 месец
родител
ревизия
408b0b125f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/service/TargetDemandService.java

+ 2 - 1
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/service/TargetDemandService.java

@@ -89,7 +89,8 @@ public class TargetDemandService extends ServiceImpl<TargetDemandMapper, TargetD
             return false;
         }
         List<TargetDemand> relations = getTargetRelations(request, targets, request.stream().map(QueryTargetRelationAddDTO::getParentId).collect(Collectors.toList()));
-        targetDemandMapper.batch(relations);
+        this.saveBatch(relations);
+        /*targetDemandMapper.batch(relations);*/
         return true;
     }