Ejemplo n.º 1
0
 public function actionFilecount()
 {
     //$this->call("start_process",NULL);
     $this->call("merge_newborncare", NULL);
     $sql = "truncate sys_count_all";
     $this->exec_sql($sql);
     $month = \backend\models\SysMonth::find()->all();
     foreach ($month as $m) {
         if ($m->month <= date('Ym')) {
             $this->run_sys_count_all($m->month);
         }
     }
     //$this->call("end_process",NULL);
 }
Ejemplo n.º 2
0
 public function actionProcessdata()
 {
     $this->call("truncate_table", NULL);
     $running = SysProcessRunning::find()->one();
     $running = $running->running;
     if ($running === 'false') {
         $this->call("start_process", NULL);
         $month = SysMonth::find()->all();
         foreach ($month as $vm) {
             if ($vm->month <= date('Ym')) {
                 $sql = "call cal_sys_count_all({$vm->month},{$vm->selyear})";
                 $this->execute_sql($sql);
             }
         }
         $this->call("end_process", NULL);
     }
 }