|
@@ -79,15 +79,15 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
zEngineeringInfoBo1.setConstructPhone(sysUser.getPhonenumber());
|
|
|
}
|
|
|
List<String> photoList = izEngiineeringPhotoService.queryList(zEngineeringInfoBo1);
|
|
|
-
|
|
|
List<ZEngineeringMaterialBo> zEngineeringMaterialBo = izEngineeringMaterialService.query(zEngineeringInfoBo1);
|
|
|
zEngineeringInfoBo1.setzEngiineeringPhotoBoList(photoList);
|
|
|
zEngineeringInfoBo1.setzEngineeringMaterialBo(zEngineeringMaterialBo);
|
|
|
zEngineeringInfoBo1.setPhotosAfter(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.photosAfter.name()));
|
|
|
zEngineeringInfoBo1.setStonePowder(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.stonePowder.name()));
|
|
|
zEngineeringInfoBo1.setDuctalEpithelium(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.ductalEpithelium.name()));
|
|
|
- zEngineeringInfoBo1.setTrenchProspect(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.trenchProspect.name()));
|
|
|
+ zEngineeringInfoBo1.setWarningtTape(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.warningtTape.name()));
|
|
|
zEngineeringInfoBo1.setVideo(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.Video.name()));
|
|
|
+ zEngineeringInfoBo1.setTrenchProspect(izEngiineeringPhotoService.queryTypeList(zEngineeringInfoBo1,photoType.trenchProspect.name()));
|
|
|
// bo.setId(item.getId());
|
|
|
ZEngineeringReviewBo zEngineeringReviewbo = izEngineeringReviewService.query(bo);
|
|
|
zEngineeringInfoBo1.setzEngineeringReviewBo(zEngineeringReviewbo);
|
|
@@ -175,12 +175,12 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
izEngineeringMaterialService.insert(item);
|
|
|
});
|
|
|
}
|
|
|
+ List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
if (!ObjectUtils.isEmpty(bo.getPhotosAfter()))
|
|
|
{
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
bo.getPhotosAfter().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
|
zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
zEngiineeringPhoto.setUpdateTime(new Date());
|
|
@@ -188,12 +188,14 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- } else if (!ObjectUtils.isEmpty(bo.getVideo()))
|
|
|
+
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getVideo()))
|
|
|
{
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+
|
|
|
+ bo.getVideo().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
|
zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
zEngiineeringPhoto.setUpdateTime(new Date());
|
|
@@ -201,12 +203,14 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getDuctalEpithelium()))
|
|
|
+
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getDuctalEpithelium()))
|
|
|
{
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+
|
|
|
+ bo.getDuctalEpithelium().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
|
zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
zEngiineeringPhoto.setUpdateTime(new Date());
|
|
@@ -214,12 +218,14 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getStonePowder()))
|
|
|
+
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getStonePowder()))
|
|
|
{
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+
|
|
|
+ bo.getStonePowder().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
|
zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
zEngiineeringPhoto.setUpdateTime(new Date());
|
|
@@ -227,34 +233,47 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getTrenchProspect()))
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getTrenchProspect()))
|
|
|
{
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+
|
|
|
+ bo.getTrenchProspect().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
|
zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
zEngiineeringPhoto.setType(photoType.trenchProspect.name().toString());
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getWarningtTape()))
|
|
|
+ {
|
|
|
|
|
|
+ bo.getWarningtTape().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ zEngiineeringPhoto.setType(photoType.warningtTape.name().toString());
|
|
|
+ photoList.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
}
|
|
|
- List<ZEngiineeringPhoto> photoList = new ArrayList<>();
|
|
|
- bo.getzEngiineeringPhotoBoList().forEach(item -> {
|
|
|
- ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
- zEngiineeringPhoto.setParentId(add.getId());
|
|
|
- zEngiineeringPhoto.setPicUrl(item);
|
|
|
- zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
- zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getzEngiineeringPhotoBoList())) {
|
|
|
+ bo.getzEngiineeringPhotoBoList().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(bo.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setUpdateTime(new Date());
|
|
|
photoList.add(zEngiineeringPhoto);
|
|
|
- });
|
|
|
+ });
|
|
|
|
|
|
+ }
|
|
|
if (!photoList.isEmpty()) {
|
|
|
izEngiineeringPhotoService.insertBatch(photoList);
|
|
|
}
|
|
|
-
|
|
|
return add;
|
|
|
}
|
|
|
|
|
@@ -300,10 +319,24 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList2.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- } else if (!ObjectUtils.isEmpty(bo.getVideo()))
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getWarningtTape()))
|
|
|
{
|
|
|
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+ bo.getWarningtTape().forEach(item -> {
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
+ zEngiineeringPhoto.setParentId(update.getId());
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
+ zEngiineeringPhoto.setType(photoType.warningtTape.name().toString());
|
|
|
+ photoList2.add(zEngiineeringPhoto);
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getVideo()))
|
|
|
+ {
|
|
|
+
|
|
|
+ bo.getVideo().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
zEngiineeringPhoto.setParentId(update.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
@@ -313,10 +346,11 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList2.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getDuctalEpithelium()))
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getDuctalEpithelium()))
|
|
|
{
|
|
|
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+ bo.getDuctalEpithelium().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
zEngiineeringPhoto.setParentId(update.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
@@ -326,10 +360,11 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList2.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getStonePowder()))
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getStonePowder()))
|
|
|
{
|
|
|
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+ bo.getStonePowder().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
zEngiineeringPhoto.setParentId(update.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|
|
@@ -339,10 +374,11 @@ public class ZEngineeringInfoServiceImpl implements IZEngineeringInfoService {
|
|
|
photoList2.add(zEngiineeringPhoto);
|
|
|
});
|
|
|
|
|
|
- }else if (!ObjectUtils.isEmpty(bo.getTrenchProspect()))
|
|
|
+ }
|
|
|
+ if (!ObjectUtils.isEmpty(bo.getTrenchProspect()))
|
|
|
{
|
|
|
|
|
|
- bo.getPhotosAfter().forEach(item -> {
|
|
|
+ bo.getTrenchProspect().forEach(item -> {
|
|
|
ZEngiineeringPhoto zEngiineeringPhoto = new ZEngiineeringPhoto();
|
|
|
zEngiineeringPhoto.setParentId(update.getId());
|
|
|
zEngiineeringPhoto.setPicUrl(item);
|