yangys
2025-09-20 6b7db6b11ebcc2e8e1eff86443e77fe63e5d8080
blade-service/blade-mdm/src/main/java/org/springblade/mdm/task/ReceiveDirCheckTask.java
@@ -46,23 +46,28 @@
   private ParamService paramService;
   @Autowired
   private ReceiveFileCheckService receiveFileCheckService;
   /**
    * 文件默认保存小时数,0不限制
    */
   private static final int DEFAULT_HOUR = 0;
   @Autowired
   private ReceiveDirMoveService receiveDirMoveService;
   // 每5秒执行一次
   //@Scheduled(fixedRate = 1000000)
   //@Scheduled(cron = "0 1 0 * * ?") // 每天上午0点1分执行
   //@Scheduled(cron = "0 */3 * * * ?")
   //@Scheduled(cron = "0 15 19 * * ?") //test
   //@Scheduled(cron = "${task.cron.machine_file_scan}")
   @Scheduled(cron = "${task.cron.machine_rec_check:0 */10 * * * ?}")
   @Scheduled(cron = "${task.cron.machine_rec_check:0 */11 * * * ?}")
   public void execute() {
      String networkType = paramService.getParamValue(ParamService.NETWORK_TYPE,ParamService.NETWORK_TYPE_SHEMI);
      if(!ParamService.NETWORK_TYPE_SHEMI.equals(networkType)){
         //非涉密网,才扫描目录文件
         log.info("reccheckfile start");
         checkFiles();
         //检查完成,直接移动无异常的文件
         receiveDirMoveService.moveValidateFiles();
         log.info("reccheckfile end");
      }
   }