|
|
@ -27,7 +27,7 @@ class OrderSearch extends Order |
|
|
|
{ |
|
|
|
return [ |
|
|
|
[['id', 'user_id', 'status', 'type', 'goods_count', 'goods_amount', 'shipping_amount', 'shipping_type', 'taking_site', 'pay_type', 'pay_at', 'payment_amount', 'receivables', 'discount_amount', 'updated_at', 'created_at'], 'integer'], |
|
|
|
[['order_sn', 'invoice_id', 'consignee', 'phone', 'province', 'city', 'area', 'payment_sn', 'remarks', 'discount_decription'], 'safe'], |
|
|
|
[['order_sn', 'invoice_id', 'consignee', 'phone', 'province', 'city', 'area', 'payment_sn', 'remarks', 'discount_description'], 'safe'], |
|
|
|
['created_at_range','safe'], |
|
|
|
]; |
|
|
|
} |
|
|
@ -75,7 +75,7 @@ class OrderSearch extends Order |
|
|
|
//'receivables',
|
|
|
|
//'remarks',
|
|
|
|
//'discount_amount',
|
|
|
|
//'discount_decription',
|
|
|
|
//'discount_description',
|
|
|
|
//'updated_at',
|
|
|
|
//'created_at',
|
|
|
|
[ |
|
|
@ -171,7 +171,7 @@ class OrderSearch extends Order |
|
|
|
->andFilterWhere(['like', 'area', $this->area]) |
|
|
|
->andFilterWhere(['like', 'payment_sn', $this->payment_sn]) |
|
|
|
->andFilterWhere(['like', 'remarks', $this->remarks]) |
|
|
|
->andFilterWhere(['like', 'discount_decription', $this->discount_decription]); |
|
|
|
->andFilterWhere(['like', 'discount_description', $this->discount_description]); |
|
|
|
if ($this->created_at_range) { |
|
|
|
$arr = explode(' ~ ', $this->created_at_range); |
|
|
|
$start = strtotime($arr[0]); |
|
|
|