修改限制查询
This commit is contained in:
parent
4de5aef537
commit
511380c0e4
@ -46,6 +46,15 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
$store_id = $this->request->get('store_id','');
|
||||
$order_sn = $this->request->get('order_sn','');
|
||||
$order = StoreOrder::where('store_id',$store_id)
|
||||
->where('order_id','like','%'.$order_sn.'%')->column('id');
|
||||
if($order){
|
||||
$where[]=['oid','in',$order];
|
||||
$this->searchWhere[]=$where;
|
||||
}
|
||||
|
||||
return UserProductStorageLog::where($this->searchWhere)
|
||||
->field(['id', 'oid', 'uid', 'product_id', 'store_id', 'financial_pm', 'nums','times','update_time'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
@ -63,6 +72,10 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
||||
$order = StoreOrder::where('id',$item['oid'])->withTrashed()->field('order_id,verify_code')->find();
|
||||
$item['verify_code'] = $order['verify_code']??'';
|
||||
$item['order_id'] = $order['order_id']??'';
|
||||
$item['verify_img'] = '';
|
||||
if($order['verify_img']){
|
||||
$item['verify_img'] = 'https://'.$this->request->host(true).$order['verify_img'];
|
||||
}
|
||||
if($item['financial_pm']==1){
|
||||
$item['financial_pm']='增加';
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user