|
|
|
@ -16,6 +16,7 @@ namespace app\common\repositories\user; |
|
|
|
|
use app\common\dao\user\UserAssetsLogDao; |
|
|
|
|
use app\common\repositories\BaseRepository; |
|
|
|
|
use app\common\repositories\store\order\StoreOrderBaseRepository; |
|
|
|
|
use app\common\repositories\store\order\StoreOrderRepository; |
|
|
|
|
use app\common\repositories\store\product\ProductAssistRepository; |
|
|
|
|
use app\common\repositories\store\product\ProductRepository; |
|
|
|
|
use app\common\repositories\system\groupData\GroupDataRepository; |
|
|
|
@ -761,6 +762,7 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
|
$changeType = $this->getChangeType(); |
|
|
|
|
$assetsType = $this->getAssetType(); |
|
|
|
|
$userRepository = app(UserRepository::class); |
|
|
|
|
$orderRepository = app(StoreOrderRepository::class); |
|
|
|
|
foreach ($data as $item) { |
|
|
|
|
$item['type'] = $changeType[$item['type']] ?? '未知'; |
|
|
|
|
$item['asset_type'] = $assetsType[$item['asset_type']] ?? '未知'; |
|
|
|
@ -778,6 +780,11 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
|
$item['user_nickname'] = '平台'; |
|
|
|
|
$item['user_phone'] = '未知'; |
|
|
|
|
} |
|
|
|
|
$item['order_sn'] = ''; |
|
|
|
|
if($item['order_id']){ |
|
|
|
|
$order = $orderRepository->getDetail($item['order_id']); |
|
|
|
|
$item['order_sn'] = $order['order_sn']; |
|
|
|
|
} |
|
|
|
|
$list[] = $item; |
|
|
|
|
} |
|
|
|
|
return compact('count', 'list'); |
|
|
|
|