Browse Source

计划任务修改

lizhen_gitee 5 months ago
parent
commit
985c9b87d4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      application/index/controller/Plantask.php

+ 3 - 1
application/index/controller/Plantask.php

@@ -452,7 +452,7 @@ class Plantask extends Controller
         $check = Db::name('lesson_slot')->where('starttime','BETWEEN',[$starttime,$endtime])->find();
         if($check){
             echo '下周有数据了';
-            exit;
+//            exit;
         }
 
         echo '准备复制';
@@ -471,11 +471,13 @@ class Plantask extends Controller
             unset($val['id']);
             $val['starttime'] = $val['starttime'] + 86400*14;
             $val['endtime']   = $val['endtime'] + 86400*14;
+            $val['bookednum'] = 0;
             $val['status'] = 0;
             $val['notice_status'] = 0;
             $val['finishtime'] = 0;
             $val['cancel_reason'] = '';
             $val['cancel_time'] = 0;
+            $val['cancel_notice_status'] = 0;
         }
 
         Db::name('lesson_slot')->insertAll($list);