|
|
@@ -151,12 +151,15 @@ public class VideoIntegrityCheckServiceImpl extends ServiceImpl<VideoIntegrityCh
|
|
|
MediatorVideoIntegrityCheckLog logData = integrityCheckLogService.findByOrgIdAndEquipmentCodeAndChannelCode(videoIntegrityCheck.getOrgId(), videoIntegrityCheck.getEquipmentCode(), videoIntegrityCheck.getChannelCode(), videoIntegrityCheck.getRecordDate());
|
|
|
if (logData != null) {
|
|
|
BeanUtils.copyProperties(videoIntegrityCheck, logData, "id");
|
|
|
+ logData.setUpdateTime(new Date());
|
|
|
integrityCheckLogService.updateById(logData);
|
|
|
return;
|
|
|
}
|
|
|
BeanUtils.copyProperties(videoIntegrityCheck, newLog);
|
|
|
newLog.setId(IdWorker.getId());
|
|
|
newLog.setVideoIntegrityCheckId(videoIntegrityCheck.getId());
|
|
|
+ newLog.setCreateTime(new Date());
|
|
|
+ newLog.setUpdateTime(new Date());
|
|
|
integrityCheckLogService.save(newLog);
|
|
|
|
|
|
}
|