|
@@ -288,7 +288,8 @@ public class ZEngineeringDangerousServiceImpl implements IZEngineeringDangerousS
|
|
newPhoto.setPicUrl(pic.getPicUrl());
|
|
newPhoto.setPicUrl(pic.getPicUrl());
|
|
newPhoto.setFileName(pic.getFileName());
|
|
newPhoto.setFileName(pic.getFileName());
|
|
newPhoto.setCreateBy(String.valueOf(LoginHelper.getUserId()));
|
|
newPhoto.setCreateBy(String.valueOf(LoginHelper.getUserId()));
|
|
- newPhoto.setCreateTime(new Date());
|
|
|
|
|
|
+ newPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ newPhoto.setUpdateTime(new Date());
|
|
list.add(newPhoto);
|
|
list.add(newPhoto);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -299,7 +300,10 @@ public class ZEngineeringDangerousServiceImpl implements IZEngineeringDangerousS
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
if (!photosToDelete.isEmpty()) {
|
|
if (!photosToDelete.isEmpty()) {
|
|
photosToDelete.forEach(item -> {
|
|
photosToDelete.forEach(item -> {
|
|
- photoService.deleteWithValidByurls(item);
|
|
|
|
|
|
+ ZEngiineeringPhoto zEngiineeringPhoto=new ZEngiineeringPhoto();
|
|
|
|
+ zEngiineeringPhoto.setPicUrl(item);
|
|
|
|
+ zEngiineeringPhoto.setCreateTime(bo.getCreateTime());
|
|
|
|
+ photoService.deleteWithValid(zEngiineeringPhoto);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|