|
@@ -760,6 +760,12 @@ public class SyncExamDataCloudServiceProvider extends ControllerSupport implemen
|
|
|
List<ExamCaptureCameraInfoEntity> olds=examCaptureCameraInfoRepo.findByExamRecordDataIdAndPidAndVidAndName(examCaptureEntity.getExamRecordDataId(),ci.getPid(),ci.getVid(),ci.getName());
|
|
|
if(CollectionUtils.isEmpty(olds)) {
|
|
|
examCaptureCameraInfoRepo.saveAndFlush(ci);
|
|
|
+ }else {
|
|
|
+ ExamCaptureCameraInfoEntity old=olds.get(0);
|
|
|
+ if(!StringUtils.equals(old.getDetail(), ci.getDetail())) {
|
|
|
+ old.setDetail(ci.getDetail());
|
|
|
+ examCaptureCameraInfoRepo.saveAndFlush(old);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|