|
@@ -234,6 +234,7 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
LambdaQueryWrapper<ZEngineeringNode> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getCivliId()), ZEngineeringNode::getCivliId, bo.getCivliId());
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getType()), ZEngineeringNode::getType, bo.getType());
|
|
|
+ lqw.orderByAsc(ZEngineeringNode::getUpdateTime);
|
|
|
return lqw;
|
|
|
}
|
|
|
|
|
@@ -525,10 +526,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3);
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3)).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3)).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3)).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3)).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3);
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3);
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3);
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|
|
@@ -762,10 +773,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3.getDictValue());
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3.getDictValue());
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|
|
@@ -826,10 +847,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3.getDictValue());
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3.getDictValue());
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|
|
@@ -887,10 +918,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3.getDictValue());
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3.getDictValue());
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|
|
@@ -974,10 +1015,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type",item3.getDictValue());
|
|
|
map.put("state",nodeTypeList.stream().anyMatch(y->y.getEngInfoId().equals(nodeList.stream().filter(x->x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId()))?nodeTypeList.stream().filter(y->y.getEngInfoId().equals(nodeList.stream().filter(x->x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus():"0");
|
|
|
map.put("content",nodeTypeList.stream().anyMatch(y->y.getEngInfoId().equals(nodeList.stream().filter(x->x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId()))?nodeTypeList.stream().filter(y->y.getEngInfoId().equals(nodeList.stream().filter(x->x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent():"暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
}else {
|
|
|
map.put("Type",item3.getDictValue());
|
|
|
- map.put("state","0");
|
|
|
- map.put("content","暂未审核");
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);;
|
|
@@ -1029,10 +1080,20 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3.getDictValue());
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3.getDictValue());
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ if(!ObjectUtils.isEmpty(nodeTypeList)){
|
|
|
+ LambdaQueryWrapper<ZEngineeringInfo> lqw3 = Wrappers.lambdaQuery();
|
|
|
+ lqw3.eq(StringUtils.isNotBlank(nodeTypeList.get(0).getId()), ZEngineeringInfo::getEngInfoId, nodeTypeList.get(0).getId());
|
|
|
+ List<ZEngineeringInfo> info= zEngineeringInfoMapper.selectList(lqw3);
|
|
|
+ if(!ObjectUtils.isEmpty(info)){
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","-1");
|
|
|
+ map.put("content","无数据");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|
|
@@ -1092,10 +1153,10 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
map.put("Type", item3.getDictValue());
|
|
|
map.put("state", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewStatus() : "0");
|
|
|
map.put("content", nodeTypeList.stream().anyMatch(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())) ? nodeTypeList.stream().filter(y -> y.getEngInfoId().equals(nodeList.stream().filter(x -> x.getType().equals(item3.getDictValue())).collect(Collectors.toList()).get(0).getId())).collect(Collectors.toList()).get(0).getReviewContent() : "暂未审核");
|
|
|
- } else {
|
|
|
- map.put("Type", item3.getDictValue());
|
|
|
- map.put("state", "0");
|
|
|
- map.put("content", "暂未审核");
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ map.put("content","暂未审核");
|
|
|
}
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);
|