|
@@ -1357,7 +1357,7 @@ public R<Object> batchTask(@RequestBody StartTaskVO startTaskVO) {
|
|
|
Map<Long, Long> mapKey = new HashMap<>();
|
|
|
if (queryList.size() == 0) {
|
|
|
//试验填报数据
|
|
|
- queryList = new ArrayList<>(this.informationQueryService.list(Wrappers.<InformationQuery>lambdaQuery().in(InformationQuery::getWbsId, Arrays.asList(ids))));
|
|
|
+ queryList = new ArrayList<>(this.informationQueryService.list(Wrappers.<InformationQuery>lambdaQuery().in(InformationQuery::getWbsId, Arrays.asList(ids)).eq(InformationQuery::getContractId,startTaskVO.getContractId())));
|
|
|
//重新绑定trialSelfInspectionRecordId使用map
|
|
|
if (appType == 1L) { // 试验上报
|
|
|
for (InformationQuery informationQuery : queryList) {
|
|
@@ -4091,7 +4091,11 @@ public R<Object> customAddContractNode(@RequestBody CustomAddContractNodeDTO dto
|
|
|
obj.setNodeType(parentNode.getNodeType().equals(6) ? 6 : dto.getNodeType());
|
|
|
}
|
|
|
}
|
|
|
- obj.setPartitionCode(dto.getPartitionCode());
|
|
|
+ if(dto.getNewPartitionCode()!=null&&!dto.getNewPartitionCode().equals("")){
|
|
|
+ obj.setPartitionCode(dto.getNewPartitionCode());
|
|
|
+ }else {
|
|
|
+ obj.setPartitionCode(dto.getPartitionCode());
|
|
|
+ }
|
|
|
obj.setParentId(parentNode.getId());
|
|
|
obj.setAncestors(parentNode.getAncestors() + "," + parentNode.getId());
|
|
|
obj.setType(1);
|