|
@@ -149,6 +149,7 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
//删除节点用
|
|
|
@Override
|
|
|
public List<QueryProcessDataVO> queryProcessDataByParentIdAndContractId2(String parentId, Integer classify, String contractId) {
|
|
@@ -812,14 +813,14 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
|
|
|
if (contractIds.size() > 0) {
|
|
|
if (StringUtils.isNotEmpty(parentId)) {
|
|
|
//子节点
|
|
|
- rootTreeNode = this.queryContractTreeSupervision(contractIds, parentId, Integer.parseInt(classifyType));
|
|
|
+ rootTreeNode = this.queryContractTreeSupervision(contractIds, parentId, classifyType != null && ObjectUtil.isNotEmpty(classifyType) ? Integer.parseInt(classifyType) : null);
|
|
|
} else {
|
|
|
//根节点
|
|
|
- rootTreeNode = this.queryContractTreeSupervision(contractIds, "0", Integer.parseInt(classifyType));
|
|
|
+ rootTreeNode = this.queryContractTreeSupervision(contractIds, "0", classifyType != null && ObjectUtil.isNotEmpty(classifyType) ? Integer.parseInt(classifyType) : null);
|
|
|
|
|
|
//设置根节点数量统计
|
|
|
for (WbsTreeContractTreeVOS root : rootTreeNode) {
|
|
|
- List<WbsTreeContractTreeVOS> rootZi = this.queryContractTreeSupervision(Func.toStrList(root.getContractIdRelation()), root.getId().toString(), Integer.parseInt(classifyType));
|
|
|
+ List<WbsTreeContractTreeVOS> rootZi = this.queryContractTreeSupervision(Func.toStrList(root.getContractIdRelation()), root.getId().toString(), classifyType != null && ObjectUtil.isNotEmpty(classifyType) ? Integer.parseInt(classifyType) : null);
|
|
|
List<Long> collect = rootZi.stream().map(WbsTreeContractTreeVOS::getSubmitCounts).collect(Collectors.toList());
|
|
|
Long reduce = collect.stream().reduce(0L, Long::sum);
|
|
|
root.setSubmitCounts(reduce);
|
|
@@ -885,8 +886,8 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<QueryProcessDataVO> getNodeChildTabColsWithValueByTabName(String initTabName,String pKeyId) {
|
|
|
- return baseMapper.getNodeChildTabColsWithValueByTabName(initTabName,pKeyId);
|
|
|
+ public List<QueryProcessDataVO> getNodeChildTabColsWithValueByTabName(String initTabName, String pKeyId) {
|
|
|
+ return baseMapper.getNodeChildTabColsWithValueByTabName(initTabName, pKeyId);
|
|
|
}
|
|
|
|
|
|
@Override
|