|
@@ -74,6 +74,10 @@ public class ZEngineeringGasOpeningServiceImpl implements IZEngineeringGasOpenin
|
|
|
zEngineeringGasOpeningVo.setWindproofCirclePic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("windproofCirclePic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("windproofCirclePic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
zEngineeringGasOpeningVo.setGasEnvironmentPic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("gasEnvironmentPic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("gasEnvironmentPic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
zEngineeringGasOpeningVo.setReceiptFormPic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("receiptFormPic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("receiptFormPic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
+ zEngineeringGasOpeningVo.setFrontPipePic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("frontPipePic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("frontPipePic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
+ zEngineeringGasOpeningVo.setCutOverPipePic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("cutOverPipePic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("cutOverPipePic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
+ zEngineeringGasOpeningVo.setCutUnderPipePic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("cutUnderPipePic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("cutUnderPipePic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
+ zEngineeringGasOpeningVo.setAlarmPositionPic(photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("alarmPositionPic")==null?new ArrayList<>():photoVoList.stream().collect(Collectors.groupingBy(ZEngiineeringPhotoVo::getType)).get("alarmPositionPic").stream().map(s -> s.getPicUrl()).collect(Collectors.toList()));
|
|
|
return zEngineeringGasOpeningVo;
|
|
|
}
|
|
|
|
|
@@ -118,6 +122,7 @@ public class ZEngineeringGasOpeningServiceImpl implements IZEngineeringGasOpenin
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getBuildingId()), ZEngineeringGasOpening::getBuildingId, bo.getBuildingId());
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getUnitId()), ZEngineeringGasOpening::getUnitId, bo.getUnitId());
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getHouseId()), ZEngineeringGasOpening::getHouseId, bo.getHouseId());
|
|
|
+ lqw.eq(StringUtils.isNotBlank(bo.getEngineType()), ZEngineeringGasOpening::getEngineType, bo.getEngineType());
|
|
|
return lqw;
|
|
|
}
|
|
|
|
|
@@ -187,6 +192,14 @@ public class ZEngineeringGasOpeningServiceImpl implements IZEngineeringGasOpenin
|
|
|
batchInsertPic(bo.getWindproofCirclePic(), bo.getId(), "windproofCirclePic");
|
|
|
batchInsertPic(bo.getGasEnvironmentPic(), bo.getId(), "gasEnvironmentPic");
|
|
|
batchInsertPic(bo.getReceiptFormPic(), bo.getId(), "receiptFormPic");
|
|
|
+
|
|
|
+ // 选择老旧改造开栓:原表单信息不动。
|
|
|
+ // 选择报警器、切断阀安装开栓:表单项有
|
|
|
+ // 灶前阀门、气密测试、表前阀前口检测、切断阀上口检测、切断阀下口检测、报警器安装位置
|
|
|
+ batchInsertPic(bo.getFrontPipePic(), bo.getId(), "frontPipePic"); // 表前阀前口检测
|
|
|
+ batchInsertPic(bo.getCutOverPipePic(), bo.getId(), "cutOverPipePic"); // 切断阀上口检测
|
|
|
+ batchInsertPic(bo.getCutUnderPipePic(), bo.getId(), "cutUnderPipePic"); // 切断阀下口检测
|
|
|
+ batchInsertPic(bo.getAlarmPositionPic(), bo.getId(), "alarmPositionPic"); // 报警器安装位置
|
|
|
}
|
|
|
// if (!ObjectUtils.isEmpty(bo.getzEngineeringNodeBo())) {
|
|
|
// bo.getzEngineeringNodeBo().setCivliId(add.getId());
|
|
@@ -208,7 +221,7 @@ public class ZEngineeringGasOpeningServiceImpl implements IZEngineeringGasOpenin
|
|
|
ZEngineeringInfoBo photoBo = new ZEngineeringInfoBo();
|
|
|
photoBo.setCreateTime(bo.getCreateTime());
|
|
|
photoBo.setId(bo.getId());
|
|
|
- photoService.delete(photoBo);
|
|
|
+ photoService.deleteGas(photoBo);
|
|
|
batchInsertPic(bo.getGasCylinderPic(), bo.getId(), "gasCylinderPic");
|
|
|
batchInsertPic(bo.getPressureTestPic(), bo.getId(), "pressureTestPic");
|
|
|
batchInsertPic(bo.getGasMeterPic(), bo.getId(), "gasMeterPic");
|
|
@@ -218,6 +231,10 @@ public class ZEngineeringGasOpeningServiceImpl implements IZEngineeringGasOpenin
|
|
|
batchInsertPic(bo.getWindproofCirclePic(), bo.getId(), "windproofCirclePic");
|
|
|
batchInsertPic(bo.getGasEnvironmentPic(), bo.getId(), "gasEnvironmentPic");
|
|
|
batchInsertPic(bo.getReceiptFormPic(), bo.getId(), "receiptFormPic");
|
|
|
+ batchInsertPic(bo.getFrontPipePic(), bo.getId(), "frontPipePic");
|
|
|
+ batchInsertPic(bo.getCutOverPipePic(), bo.getId(), "cutOverPipePic");
|
|
|
+ batchInsertPic(bo.getCutUnderPipePic(), bo.getId(), "cutUnderPipePic");
|
|
|
+ batchInsertPic(bo.getAlarmPositionPic(), bo.getId(), "alarmPositionPic");
|
|
|
return flag;
|
|
|
}
|
|
|
|