Esempio n. 1
0
 /**
  * 定时从new_tao表拷贝交易表的交易流拍记录和卖家取消的记录到new_trans_history表
  * 拷贝成功后删除原new_tao表对应的原始记录,若删除失败直接输入对应记录id
  *
  *
  */
 public function cpActToHistoryAction()
 {
     $status = \core\Config::item('transStaCode');
     $status = array($status->failure, $status->sellerCancel);
     $newTaoModel = new NewTaoModel();
     $res = $newTaoModel->getDatasByStatus($status);
     $newTransHistoryModel = new NewTransHistoryModel();
     foreach ($res as $value) {
         $ins = $newTransHistoryModel->setTransHistory((array) $value);
         if ($ins === false) {
             echo $value->t_id . PHP_EOL;
         }
     }
 }