作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

后台问卷调查

@@ -62,8 +62,6 @@ class LoadController extends HomeBaseController @@ -62,8 +62,6 @@ class LoadController extends HomeBaseController
62 $where['o.status'] = ['eq',2]; 62 $where['o.status'] = ['eq',2];
63 $whereor = "o.status = 2 or (o.status = 1 and o.order_expire_time < $time and o.order_about_time < ".($time-24*30*60*60).") or (o.status = 3 and o.order_expire_time < $time) or (o.status = 3 and o.order_about_time < ".($time-24*30*60*60).")"; 63 $whereor = "o.status = 2 or (o.status = 1 and o.order_expire_time < $time and o.order_about_time < ".($time-24*30*60*60).") or (o.status = 3 and o.order_expire_time < $time) or (o.status = 3 and o.order_about_time < ".($time-24*30*60*60).")";
64 $data = $orderInfoModel->selectData1($where,$whereor); 64 $data = $orderInfoModel->selectData1($where,$whereor);
65 - dump($data);  
66 - exit();  
67 foreach($data as $key1 => $vo){ 65 foreach($data as $key1 => $vo){
68 //判断是否已经发送 66 //判断是否已经发送
69 $send_vice = Db::name('send_vice')->where(array('order_id'=>$vo['o_id'],'collocation_id'=>$vo['id'],'time'=>$vo['order_about_time'],'type'=>2))->find(); 67 $send_vice = Db::name('send_vice')->where(array('order_id'=>$vo['o_id'],'collocation_id'=>$vo['id'],'time'=>$vo['order_about_time'],'type'=>2))->find();
@@ -41,10 +41,10 @@ class OrderInfoModel extends Model @@ -41,10 +41,10 @@ class OrderInfoModel extends Model
41 ->where($where1) 41 ->where($where1)
42 ->whereOr($whereor) 42 ->whereOr($whereor)
43 ->order('c.create_time','desc') 43 ->order('c.create_time','desc')
44 - ->fetchSql()  
45 - ->select();//->toArray();  
46 - echo $data;  
47 - exit(); 44 +// ->fetchSql()
  45 + ->select()->toArray();
  46 +// echo $data;
  47 +// exit();
48 return $data; 48 return $data;
49 } 49 }
50 public function selectData($where1,$whereor=null){ 50 public function selectData($where1,$whereor=null){