问题修改

This commit is contained in:
方亮 2025-10-20 10:07:22 +08:00
parent 46ac46b659
commit 663fd6e29a
2 changed files with 5 additions and 3 deletions

View File

@ -37,9 +37,11 @@ public class SjProjectSafetyServiceImpl implements SjProjectSafetyService {
List<SjProjectSafety> sjProjectSafeties = mapper.selectProSafetyVideo(o);
sjProjectSafeties.forEach(data -> {
Result<SysFile> result= remoteFileService.getFileBast64(data.getImagePath(), SecurityConstants.INNER);
data.setImagePath(result.getData().getUrl());
if(result != null && Result.isSuccess(result)){
data.setImagePath(result.getData().getUrl());
}
});
return mapper.selectProSafetyVideo(o);
return sjProjectSafeties;
}
@Override

View File

@ -41,7 +41,7 @@
tpd.bid_code = #{bidCode}
AND tbd.device_code = #{deviceCode}
AND thdv.create_time IS NOT NULL
AND DATE(thdv.create_time) BETWEEN #{startDate} AND #{startDate}
AND DATE(thdv.create_time) BETWEEN #{startDate} AND #{endDate}
ORDER BY currentDay,`hour`
</select>
</mapper>