|
@@ -37,7 +37,7 @@ class GoodsController extends Curd{
|
|
|
|
|
|
$order = $request->get('order', 'desc');
|
|
|
$field = $field ?? 'order_addtimes';
|
|
|
- $where['pay_detail.pay_category'] = 'GOODS';
|
|
|
+ // $where['pay_detail.pay_category'] = 'GOODS';
|
|
|
if (!empty($where['order_status_system']) && in_array($where['order_status_system'], ['PENDING', 'WAITING', 'SENDING', 'RECVING', 'SIGNED', 'CONFIRM'])) {
|
|
|
$where['order_is_complete'] = 'N';
|
|
|
}
|
|
@@ -50,9 +50,9 @@ class GoodsController extends Curd{
|
|
|
// if ($request->get('return')){
|
|
|
// $where['order_return.order_return_status'] = $request->get('return');
|
|
|
// }
|
|
|
- if ($request->get('goods_classify') || $request->get('goods_name')){
|
|
|
+ // if ($request->get('goods_classify') || $request->get('goods_name')){
|
|
|
$where['order_id'] = '';
|
|
|
- $goodsClassify = $request->get('goods_classify','');
|
|
|
+ $goodsClassify = 'GOODS';
|
|
|
$goodsName = $request->get('goods_name','');
|
|
|
if (!empty($goodsName) && empty($goodsClassify)){
|
|
|
$goodsIds = Goods::where('goods_name','like','%'.$request->get('goods_name').'%')->pluck('goods_id')->toArray();
|
|
@@ -75,7 +75,7 @@ class GoodsController extends Curd{
|
|
|
$where['order_id'] = ['in',implode(',',$orderIds)];
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
$query = $this->doSelect($where, $field, $order);
|
|
|
return $this->doFormat($query, $format, $limit);
|