|
@@ -93,10 +93,19 @@ public class MaterialProgressController extends BladeController {
|
|
|
} else {
|
|
|
//找到根节点
|
|
|
List<WbsTreeContractTreeVOS> nodeResult = this.wbsTreeContractClient.queryContractWbsTreeByContractIdAndType(contractId, 1, StringUtils.isNotEmpty(parentId) ? parentId : "0");
|
|
|
- if(nodeResult != null && nodeResult.size() > 0){
|
|
|
-
|
|
|
- //找到当前节点下的所有填报节点
|
|
|
- List<QueryProcessDataVO> queryDataResult = this.informationQueryService.queryProcessDataByParentIdAndContractId(parentId, new Integer(classifyType), contractId);
|
|
|
+ if(nodeResult != null && nodeResult.size() > 0) {
|
|
|
+ List<QueryProcessDataVO> queryDataResult = new ArrayList<>();
|
|
|
+ if (StringUtils.isEmpty(parentId)) {
|
|
|
+ //找到当前节点下的所有填报节点
|
|
|
+ queryDataResult = this.informationQueryService.queryProcessDataByParentIdAndContractIdThree("", new Integer(classifyType), contractId);
|
|
|
+ } else{
|
|
|
+ WbsTreeContract node = this.wbsTreeContractClient.getContractWbsTreeByContractIdAndId(Long.valueOf(parentId), Long.valueOf(contractId));
|
|
|
+ if (node.getParentId() == 0){
|
|
|
+ queryDataResult = this.informationQueryService.queryProcessDataByParentIdAndContractIdThree("", new Integer(classifyType), contractId);
|
|
|
+ }else {
|
|
|
+ queryDataResult = this.informationQueryService.queryProcessDataByParentIdAndContractIdThree(parentId, new Integer(classifyType), contractId);
|
|
|
+ }
|
|
|
+ }
|
|
|
//统计
|
|
|
this.countAmount(nodeResult, queryDataResult, contractId, reVO);
|
|
|
|