|
@@ -21,10 +21,14 @@ import com.ruoyi.zdsz.domain.bo.*;
|
|
|
import com.ruoyi.zdsz.domain.vo.ZEngineeringCivilVo;
|
|
|
import com.ruoyi.zdsz.domain.vo.ZEngineeringNodeVo;
|
|
|
import com.ruoyi.zdsz.domain.vo.areaMessageVo;
|
|
|
+import com.ruoyi.zdsz.mapper.ZComprehensiveMapper;
|
|
|
import com.ruoyi.zdsz.mapper.ZEngineeringCivilMapper;
|
|
|
import com.ruoyi.zdsz.mapper.ZEngineeringNodeMapper;
|
|
|
import com.ruoyi.zdsz.mapper.ZEngineeringReviewMapper;
|
|
|
-import com.ruoyi.zdsz.service.*;
|
|
|
+import com.ruoyi.zdsz.service.IZEngiineeringPhotoService;
|
|
|
+import com.ruoyi.zdsz.service.IZEngineeringInfoService;
|
|
|
+import com.ruoyi.zdsz.service.IZEngineeringNodeService;
|
|
|
+import com.ruoyi.zdsz.service.IZEngineeringReviewService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -67,6 +71,8 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
private ZEngineeringCivilMapper zEngineeringCivilMapper;
|
|
|
@Resource
|
|
|
private ZEngineeringReviewMapper zEngineeringReviewMapper;
|
|
|
+ @Resource
|
|
|
+ private ZComprehensiveMapper zComprehensiveMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -666,18 +672,22 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
List stateList=new ArrayList();
|
|
|
sysDictMap.get(item.getEnginType()+"_"+item.getEnginClassification()).stream().forEach(item3 -> {
|
|
|
Map<String,Object> map=new HashMap<>();
|
|
|
- if (nodeList.size()>0&&nodeList.stream().anyMatch(x->x.getType().equals(item3.getDictValue())))
|
|
|
- {
|
|
|
- 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");
|
|
|
- }
|
|
|
- else {
|
|
|
- map.put("Type",item3.getDictValue());
|
|
|
- map.put("state","0");
|
|
|
- }
|
|
|
+ if (nodeList.size()>0&&nodeList.stream().anyMatch(x->x.getType().equals(item3.getDictValue()))){
|
|
|
+ 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");
|
|
|
+ }else {
|
|
|
+ map.put("Type",item3.getDictValue());
|
|
|
+ map.put("state","0");
|
|
|
+ }
|
|
|
stateList.add(map);
|
|
|
ReViewStateMap.set(stateList);;
|
|
|
});
|
|
|
+ if(item.getEnginClassification().contains("indoor_engin")){
|
|
|
+ Map<String,Object> map=new HashMap<>();
|
|
|
+ map.put("Type","开栓");
|
|
|
+ map.put("state",zComprehensiveMapper.getIsQualifiedString(item.getHouseId()));
|
|
|
+ ReViewStateMap.get().add(map);
|
|
|
+ }
|
|
|
statemap.put(item.getId(),ReViewStateMap.get());
|
|
|
MonthTableNameHandler.removeData();
|
|
|
|