LingxinMeng 8 сар өмнө
parent
commit
bde0de29ca

+ 1 - 1
simulation-resource-monitor/src/main/java/com/css/simulation/resource/monitor/infra/scheduler/MinioCleanScheduler.java

@@ -28,7 +28,7 @@ public class MinioCleanScheduler {
 
 
     /**
-     * 每天清理一次,清理30天之前被删除的数据
+     * 每小时一次,清理被删除的数据
      */
     @Scheduled(fixedDelay = 24 * 60 * 60 * 1000)
     @SneakyThrows

+ 1 - 1
simulation-resource-monitor/src/main/resources/mysql/mapper/SimulationManualProjectMapper.xml

@@ -6,7 +6,7 @@
     <select id="selectIds" resultType="java.lang.String">
         select *
         from simulation.simulation_manual_project
-        where is_deleted = '0' or (is_deleted = '1' and modify_time >= DATE_SUB(CURDATE(), INTERVAL 30 DAY));
+        where is_deleted = '0';
     </select>
 
 </mapper>