木垒违章推送bug修改
This commit is contained in:
parent
2d9c2dd636
commit
5726c721ac
@ -644,7 +644,10 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
|
||||
String relativePath = projectInfoBySn.getProjectName() + "/AI预警列表/" + DateUtil.today();
|
||||
String dir = PathUtil.getBasePath() + "/" + relativePath;
|
||||
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getImageUrl(), dir + "/" + FileUtil.getName(record.getImageUrl()), true);
|
||||
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getAlarmVideo(), dir + "/" + FileUtil.getName(record.getAlarmVideo()), true);
|
||||
String alarmVideo = record.getAlarmVideo();
|
||||
if (StrUtil.isNotBlank(alarmVideo)) {
|
||||
FileUtil.copy(PathUtil.getBasePath() + "/" + alarmVideo, dir + "/" + FileUtil.getName(alarmVideo), true);
|
||||
}
|
||||
baseMapper.updateById(record);
|
||||
|
||||
UserInfo user = SecurityUtils.getUser();
|
||||
@ -664,7 +667,10 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
|
||||
}
|
||||
baseMapper.deleteById(id);
|
||||
FileUtil.del(PathUtil.getBasePath() + "/" + record.getImageUrl());
|
||||
FileUtil.del(PathUtil.getBasePath() + "/" + record.getAlarmVideo());
|
||||
String alarmVideo = record.getAlarmVideo();
|
||||
if (StrUtil.isNotBlank(alarmVideo)) {
|
||||
FileUtil.del(PathUtil.getBasePath() + "/" + alarmVideo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user