|
@@ -102,6 +102,25 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
zEngineeringInfoBo1.setInferiorSulcus(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.inferiorSulcus.name()));
|
|
|
zEngineeringInfoBo1.setConstructionRecords(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.constructionRecords.name()));
|
|
|
zEngineeringInfoBo1.setOnTheDitch(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.onTheDitch.name()));
|
|
|
+ // 市政施工 start
|
|
|
+ /*
|
|
|
+ // 市政施工-沟上施工 焊接
|
|
|
+ welding,
|
|
|
+ // 市政施工-沟上施工 防腐
|
|
|
+ aczoiling,
|
|
|
+ // 市政施工-沟下施工 管道下沟
|
|
|
+ piping,
|
|
|
+ // 市政施工-沟下施工 警示带铺设
|
|
|
+ warning,
|
|
|
+ // 市政施工-沟下施工 回填
|
|
|
+ backfilling
|
|
|
+ */
|
|
|
+ zEngineeringInfoBo1.setWelding(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.welding.name()));
|
|
|
+ zEngineeringInfoBo1.setAczoiling(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.aczoiling.name()));
|
|
|
+ zEngineeringInfoBo1.setPiping(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.piping.name()));
|
|
|
+ zEngineeringInfoBo1.setWarning(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.warning.name()));
|
|
|
+ zEngineeringInfoBo1.setBackfilling(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.backfilling.name()));
|
|
|
+ // 市政施工 end
|
|
|
// bo.setId(item.getId());
|
|
|
ZEngineeringReviewBo zEngineeringReviewbo = izEngineeringReviewService.query(bo);
|
|
|
zEngineeringInfoBo1.setzEngineeringReviewBo(zEngineeringReviewbo);
|
|
@@ -395,6 +414,77 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
});
|
|
|
|
|
|
}
|
|
|
+ // 市政施工 start
|
|
|
+ /*
|
|
|
+ // 市政施工-沟上施工 焊接
|
|
|
+ welding,
|
|
|
+ // 市政施工-沟上施工 防腐
|
|
|
+ aczoiling,
|
|
|
+ // 市政施工-沟下施工 管道下沟
|
|
|
+ piping,
|
|
|
+ // 市政施工-沟下施工 警示带铺设
|
|
|
+ warning,
|
|
|
+ // 市政施工-沟下施工 回填
|
|
|
+ backfilling
|
|
|
+ */
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getWelding())) {
|
|
|
+ bo.getWelding().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.welding.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getAczoiling())) {
|
|
|
+ bo.getAczoiling().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.aczoiling.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getPiping())) {
|
|
|
+ bo.getPiping().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.piping.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getWarning())) {
|
|
|
+ bo.getWarning().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.warning.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getBackfilling())) {
|
|
|
+ bo.getBackfilling().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.backfilling.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // 市政施工 end
|
|
|
+
|
|
|
+
|
|
|
if (!photoList.isEmpty()) {
|
|
|
izEngiineeringPhotoService.insertBatch(photoList);
|
|
|
}
|