|
@@ -39,14 +39,14 @@ class ComonOrder extends Base
|
|
|
}
|
|
|
|
|
|
public function list(){
|
|
|
- $post = $this->request->only(["start"=>"","end"=>"","cxCode"=>"","customerNo"=>"","companyNo"=>"",'status'=>'',
|
|
|
+ $post = $this->request->only(["start"=>"","end"=>"","cxCode"=>"","customerNo"=>"","companyNo"=>"",'status'=>[],
|
|
|
'relaComNo'=>'','platform_type'=>'','inv_status'=>'','pay_status'=>'','page'=>1,'size'=>15],"post","trim");
|
|
|
$where=[];
|
|
|
$post['start']==''?:$where[]=["comon_order.addtime",">=",date("Y-m-d 00:00:00",strtotime($post['start']))];
|
|
|
$post['end']==''?:$where[]=["comon_order.addtime","<=",date("Y-m-d 23:59:59",strtotime($post['end']))];
|
|
|
$post['cxCode']==''?:$where[]=["comon_order.cxCode","like","%{$post['cxCode']}%"];
|
|
|
$post['customerNo']==''?:$where[]=["comon_order.customerNo","=",$post['customerNo']];
|
|
|
- $post['status']==''?:$where[]=["comon_order.status","=",$post['status']];
|
|
|
+ empty($post['status'])?:$where[]=['comon_order.status','in',$post['status']];
|
|
|
$post['inv_status']==''?:$where[]=["qrd.inv_status","=",$post['inv_status']];
|
|
|
$post['pay_status']==''?:$where[]=["qrd.pay_status","=",$post['pay_status']];
|
|
|
// $post['status']==''?:$where[]=["comon_order.status","=",$post['status']];
|