|
@@ -93,6 +93,7 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
zEngineeringInfoBo1.setBeforeBottom(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.beforeBottom.name()));
|
|
zEngineeringInfoBo1.setBeforeBottom(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.beforeBottom.name()));
|
|
zEngineeringInfoBo1.setLegBackfilling(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.legBackfilling.name()));
|
|
zEngineeringInfoBo1.setLegBackfilling(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.legBackfilling.name()));
|
|
zEngineeringInfoBo1.setInferiorSulcus(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.inferiorSulcus.name()));
|
|
zEngineeringInfoBo1.setInferiorSulcus(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.inferiorSulcus.name()));
|
|
|
|
+ zEngineeringInfoBo1.setConstructionRecords(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.constructionRecords.name()));
|
|
// bo.setId(item.getId());
|
|
// bo.setId(item.getId());
|
|
ZEngineeringReviewBo zEngineeringReviewbo = izEngineeringReviewService.query(bo);
|
|
ZEngineeringReviewBo zEngineeringReviewbo = izEngineeringReviewService.query(bo);
|
|
zEngineeringInfoBo1.setzEngineeringReviewBo(zEngineeringReviewbo);
|
|
zEngineeringInfoBo1.setzEngineeringReviewBo(zEngineeringReviewbo);
|
|
@@ -209,6 +210,21 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getConstructionRecords()))
|
|
|
|
+ {
|
|
|
|
+ bo.getConstructionRecords().forEach(item -> {
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
|
+ zEngiineeringPhoto.setType(photoType.constructionRecords.name().toString());
|
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!ObjectUtils.isEmpty(bo.getLegBackfilling()))
|
|
if (!ObjectUtils.isEmpty(bo.getLegBackfilling()))
|
|
{
|
|
{
|
|
bo.getLegBackfilling().forEach(item -> {
|
|
bo.getLegBackfilling().forEach(item -> {
|
|
@@ -354,6 +370,48 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
izEngiineeringPhotoService.updateBatch(photoList);
|
|
izEngiineeringPhotoService.updateBatch(photoList);
|
|
}
|
|
}
|
|
List<ZEngiineeringPhoto> photoList2 = new ArrayList<>();
|
|
List<ZEngiineeringPhoto> photoList2 = new ArrayList<>();
|
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getConstructionRecords()))
|
|
|
|
+ {
|
|
|
|
+ bo.getConstructionRecords().forEach(item -> {
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
|
+ zEngiineeringPhoto.setType(photoType.constructionRecords.name().toString());
|
|
|
|
+ photoList2.add(zEngiineeringPhoto);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getInferiorSulcus()))
|
|
|
|
+ {
|
|
|
|
+ bo.getInferiorSulcus().forEach(item -> {
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
|
+ zEngiineeringPhoto.setType(photoType.inferiorSulcus.name().toString());
|
|
|
|
+ photoList2.add(zEngiineeringPhoto);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getLegBackfilling()))
|
|
|
|
+ {
|
|
|
|
+ bo.getLegBackfilling().forEach(item -> {
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
|
+ zEngiineeringPhoto.setType(photoType.legBackfilling.name().toString());
|
|
|
|
+ photoList2.add(zEngiineeringPhoto);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
if (!ObjectUtils.isEmpty(bo.getPhotosAfter()))
|
|
if (!ObjectUtils.isEmpty(bo.getPhotosAfter()))
|
|
{
|
|
{
|
|
|
|
|
|
@@ -436,6 +494,20 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
});
|
|
});
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getBeforeBottom()))
|
|
|
|
+ {
|
|
|
|
+ bo.getBeforeBottom().forEach(item -> {
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
|
+ zEngiineeringPhoto.setType(photoType.beforeBottom.name().toString());
|
|
|
|
+ photoList2.add(zEngiineeringPhoto);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
if (photoList2.size() > 0 ) {
|
|
if (photoList2.size() > 0 ) {
|
|
izEngiineeringPhotoService.updateBatch(photoList2);
|
|
izEngiineeringPhotoService.updateBatch(photoList2);
|
|
}
|
|
}
|