feat: 添加系统店铺名称查询功能
This commit is contained in:
parent
643e1894e7
commit
0138c13069
@ -7,6 +7,7 @@ use app\admin\lists\BaseAdminDataLists;
|
||||
use app\common\model\user_product_storage\UserProductStorage;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\store_product\StoreProduct;
|
||||
use app\common\model\system_store\SystemStore;
|
||||
use app\common\model\user\User;
|
||||
|
||||
/**
|
||||
@ -52,6 +53,12 @@ class UserProductStorageLists extends BaseAdminDataLists implements ListsSearchI
|
||||
$user=User::where('id',$item['uid'])->field('nickname,real_name')->find();
|
||||
$item['nickname']=$user['real_name']?$user['real_name'].'|'.$item['uid']:$user['nickname'].'|'.$item['uid'];
|
||||
$item['store_name']=StoreProduct::where('id',$item['product_id'])->value('store_name');
|
||||
$item['system_store_name']=SystemStore::where('id',$item['store_id'])->value('name');
|
||||
if($item['status']==1){
|
||||
$item['status_name']='正常';
|
||||
}else{
|
||||
$item['status_name']='已出库完';
|
||||
}
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user