|
@@ -133,14 +133,12 @@ public class IotDvrHardDiskDetectionServiceImpl extends ServiceImpl<IotDvrHardDi
|
|
|
videoRecorderHardDiskDetection.setEquipmentCode(videoRecorderHardDiskDetectionEditDto.getEquipmentCode());
|
|
videoRecorderHardDiskDetection.setEquipmentCode(videoRecorderHardDiskDetectionEditDto.getEquipmentCode());
|
|
|
IotDvrHardDiskDetection old = this.findTopByEquipmentCodeAndOrgId(videoRecorderHardDiskDetectionEditDto.getEquipmentCode(), org.getId());
|
|
IotDvrHardDiskDetection old = this.findTopByEquipmentCodeAndOrgId(videoRecorderHardDiskDetectionEditDto.getEquipmentCode(), org.getId());
|
|
|
if (old != null) {
|
|
if (old != null) {
|
|
|
- if (ObjectUtil.notEqual(old.getCheckStatus(), videoRecorderHardDiskDetectionEditDto.getCheckStatus())) {
|
|
|
|
|
- videoRecorderHardDiskDetection.setStateUpdateTime(LocalDateTime.now());
|
|
|
|
|
- }
|
|
|
|
|
videoRecorderHardDiskDetection = old;
|
|
videoRecorderHardDiskDetection = old;
|
|
|
} else {
|
|
} else {
|
|
|
videoRecorderHardDiskDetection.setId(IDHelper.id());
|
|
videoRecorderHardDiskDetection.setId(IDHelper.id());
|
|
|
videoRecorderHardDiskDetection.setCreateTime(LocalDateTime.now());
|
|
videoRecorderHardDiskDetection.setCreateTime(LocalDateTime.now());
|
|
|
}
|
|
}
|
|
|
|
|
+ videoRecorderHardDiskDetection.setStateUpdateTime(LocalDateTime.now());
|
|
|
videoRecorderHardDiskDetection.setEquipmentName(videoRecorderHardDiskDetectionEditDto.getEquipmentName());
|
|
videoRecorderHardDiskDetection.setEquipmentName(videoRecorderHardDiskDetectionEditDto.getEquipmentName());
|
|
|
videoRecorderHardDiskDetection.setCheckTime(DateUtils.toLocalDateTime(videoRecorderHardDiskDetectionEditDto.getCheckTime()));
|
|
videoRecorderHardDiskDetection.setCheckTime(DateUtils.toLocalDateTime(videoRecorderHardDiskDetectionEditDto.getCheckTime()));
|
|
|
videoRecorderHardDiskDetection.setCheckStatus(videoRecorderHardDiskDetectionEditDto.getCheckStatus());
|
|
videoRecorderHardDiskDetection.setCheckStatus(videoRecorderHardDiskDetectionEditDto.getCheckStatus());
|