|
|
@@ -166,8 +166,10 @@ public class ResumptionServiceImpl implements ResumptionService {
|
|
|
data.setAreaId(check.getAreaId());
|
|
|
data.setCheckId(point.getCheckId());
|
|
|
data.setItemId(point.getPointId());
|
|
|
- data.setRectificationDeadline(point.getRectificationDeadline());
|
|
|
- data.setResRemark(point.getResRemark());
|
|
|
+ if(ObjectUtil.equal(point.getResValue(),1)){
|
|
|
+ data.setRectificationDeadline(point.getRectificationDeadline());
|
|
|
+ data.setResRemark(point.getResRemark());
|
|
|
+ }
|
|
|
data.setResValue(point.getResValue());
|
|
|
data.setSubmitTime(new Date());
|
|
|
data.setResTime(new Date());
|
|
|
@@ -222,14 +224,19 @@ public class ResumptionServiceImpl implements ResumptionService {
|
|
|
if (ObjectUtil.equal(point.getResValue(), 1)) {
|
|
|
exceptionCount++;
|
|
|
}
|
|
|
- List<AppResumptionDataRemarkimg> imgs = point.getImgs();
|
|
|
- for (AppResumptionDataRemarkimg img : imgs) {
|
|
|
- img.setResumptionDataId(pointId);
|
|
|
- img.setResumptionId(taskId);
|
|
|
- img.setId(IdWorker.getId(img));
|
|
|
- //appResumptionDataRemarkimgMapper.insert(img);
|
|
|
+
|
|
|
+ if(ObjectUtil.equal(point.getResValue(), 1) && ObjectUtil.isNotNull(point.getImgs())){
|
|
|
+ //有异常时才保存图片
|
|
|
+ List<AppResumptionDataRemarkimg> imgs = point.getImgs();
|
|
|
+ for (AppResumptionDataRemarkimg img : imgs) {
|
|
|
+ img.setResumptionDataId(pointId);
|
|
|
+ img.setResumptionId(taskId);
|
|
|
+ img.setId(IdWorker.getId(img));
|
|
|
+ //appResumptionDataRemarkimgMapper.insert(img);
|
|
|
+ }
|
|
|
+ adImgs.addAll(imgs);
|
|
|
}
|
|
|
- adImgs.addAll(imgs);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
sysResumption.setExceptionCount(exceptionCount);
|