AI优化
This commit is contained in:
parent
c0c506f709
commit
ea442ecd04
@ -644,7 +644,9 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
|
|||||||
String relativePath = projectInfoBySn.getProjectName() + "/AI预警列表/" + DateUtil.today();
|
String relativePath = projectInfoBySn.getProjectName() + "/AI预警列表/" + DateUtil.today();
|
||||||
String dir = PathUtil.getBasePath() + "/" + relativePath;
|
String dir = PathUtil.getBasePath() + "/" + relativePath;
|
||||||
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getImageUrl(), dir + "/" + FileUtil.getName(record.getImageUrl()), true);
|
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getImageUrl(), dir + "/" + FileUtil.getName(record.getImageUrl()), true);
|
||||||
|
if (StringUtils.isNotBlank(record.getAlarmVideo())) {
|
||||||
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getAlarmVideo(), dir + "/" + FileUtil.getName(record.getAlarmVideo()), true);
|
FileUtil.copy(PathUtil.getBasePath() + "/" + record.getAlarmVideo(), dir + "/" + FileUtil.getName(record.getAlarmVideo()), true);
|
||||||
|
}
|
||||||
baseMapper.updateById(record);
|
baseMapper.updateById(record);
|
||||||
|
|
||||||
UserInfo user = SecurityUtils.getUser();
|
UserInfo user = SecurityUtils.getUser();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user