|
@@ -54,9 +54,13 @@ class Purchin extends Base
|
|
|
if($end !=""){
|
|
|
$where[]= ["a.sendtime",'<=',$end];
|
|
|
}
|
|
|
- $order_type=isset($this->post['order_type']) && $this->post['order_type']!==""? intval($this->post['order_type']):"";
|
|
|
- if($order_type !=""){
|
|
|
- $where[]= ["b.order_type",'=',$order_type];
|
|
|
+ $order_type = isset($this->post['order_type']) && $this->post['order_type'] !== "" ? intval($this->post['order_type']) : "";
|
|
|
+ if ($order_type != "") {
|
|
|
+ $where[] = ["b.order_type", '=', $order_type];
|
|
|
+ }
|
|
|
+ $order_source = isset($this->post['order_source']) && $this->post['order_source'] !== "" ? intval($this->post['order_source']) : "";
|
|
|
+ if ($order_source != "") {
|
|
|
+ $where[] = ["b.order_source", '=', $order_source];
|
|
|
}
|
|
|
$good_type_code=isset($this->post['good_type_code']) && $this->post['good_type_code']!==""? trim($this->post['good_type_code']):"";
|
|
|
if($good_type_code !=""){
|