关联查询单位相关
This commit is contained in:
parent
6ad936237b
commit
9299f52210
@ -7,6 +7,7 @@ use app\admin\lists\BaseAdminDataLists;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\store_order\StoreOrder;
|
||||
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
||||
use app\common\model\store_product_unit\StoreProductUnit;
|
||||
|
||||
/**
|
||||
* 零售订单列表
|
||||
@ -62,6 +63,9 @@ class OrderList extends BaseAdminDataLists implements ListsSearchInterface
|
||||
if($value['pay_time']){
|
||||
$value['pay_time'] = date('Y-m-d H:i:s',$value['pay_time']);
|
||||
}
|
||||
foreach ($value['goods_list'] as &$vv){
|
||||
$vv['unit'] =StoreProductUnit::where('id',$vv['unit'])->value('name')??'';
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user