cr 1 долоо хоног өмнө
parent
commit
ce870b47e4

+ 6 - 6
blade-service/blade-manager/src/main/java/org/springblade/manager/controller/ExcelTabController.java

@@ -5294,7 +5294,7 @@ public class ExcelTabController extends BladeController {
         return R.data(query);
     }
 
-    //@Scheduled(cron = "0 00 02 * * ?")
+    @Scheduled(cron = "0 0 1 ? * SAT")
     @GetMapping("/checkAllNodeDate")
     public void checkAllNodeDate() throws Exception {
         String updateSql="update m_wbs_tree_contract set date_is_complete=1 where is_deleted=0 and type=1";
@@ -5312,11 +5312,11 @@ public class ExcelTabController extends BladeController {
             if(parent==null){
                 continue;
             }
-//            String informationSql="select * from u_information_query where wbs_id="+parent.getPKeyId()+" and contract_id="+parent.getContractId()+" and is_deleted=0";
-//            List<InformationQuery> query = jdbcTemplate.query(informationSql, new BeanPropertyRowMapper<>(InformationQuery.class));
-//            if(query.isEmpty()||query.get(0).getStatus()!=0){
-//                continue;
-//            }
+            String informationSql="select * from u_information_query where wbs_id="+parent.getPKeyId()+" and contract_id="+parent.getContractId()+" and is_deleted=0";
+            List<InformationQuery> query = jdbcTemplate.query(informationSql, new BeanPropertyRowMapper<>(InformationQuery.class));
+            if(query.isEmpty()){
+                continue;
+            }
             List<WbsTreeContract> wbsTreeContractList = entry.getValue();
             boolean flag=true;
             for (WbsTreeContract contract : wbsTreeContractList) {