|
@@ -40,7 +40,7 @@ class ComonOrder extends Base
|
|
|
|
|
|
public function list(){
|
|
|
$post = $this->request->only(["start"=>"","end"=>"","cxCode"=>"","customerNo"=>"","companyNo"=>"",'status'=>[],
|
|
|
- 'relaComNo'=>'','platform_type'=>'','inv_status'=>'','pay_status'=>'','page'=>1,'size'=>15],"post","trim");
|
|
|
+ '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']))];
|
|
@@ -49,13 +49,11 @@ class ComonOrder extends Base
|
|
|
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']];
|
|
|
$post['platform_type']==''?:$where[]=["comon_order.platform_type","=",$post['platform_type']];
|
|
|
$post['companyNo']==''?:$where[]=["comon_order.companyNo|comon_order.supplierNo","=",$post['companyNo']];
|
|
|
$post['relaComNo']==''?:$where[]=["comon_order.companyNo|comon_order.supplierNo|comon_order.customerNo","=",
|
|
|
$post['relaComNo']];
|
|
|
- $list=$this->model->withJoin(["qrd","cgd"],"left")->where($where)->order("id desc")->paginate
|
|
|
- (["page"=>$post['page'],"list_rows"=>$post['size']]);
|
|
|
+ $list=$this->model->withJoin(["qrd","cgd"],"left")->where($where)->order("id desc")->paginate (["page"=>$post['page'],"list_rows"=>$post['size']]);
|
|
|
$this->success("0",["list"=>$list->items(),"count"=>$list->total()]);
|
|
|
}
|
|
|
//通用订单创建对账单
|