Commit f4a96444 by 杨树贤

最后上传时间

parent 8b4d2b56
...@@ -30,6 +30,9 @@ class SupplierTransformer ...@@ -30,6 +30,9 @@ class SupplierTransformer
$viewData = $viewCheckService->checkSupplierView($supplierIds); $viewData = $viewCheckService->checkSupplierView($supplierIds);
$adminUserService = new AdminUserService(); $adminUserService = new AdminUserService();
//获取基石上传记录情况,展示第一次上传时间和最后一次上传时间
$lastUploadSkuTimes = SkuService::getUploadTimeBySupplierCodes(array_column($list, 'supplier_code'), 'last');
foreach ($list as &$supplier) { foreach ($list as &$supplier) {
$supplier['viewed'] = array_get($viewData, $supplier['supplier_id'], false); $supplier['viewed'] = array_get($viewData, $supplier['supplier_id'], false);
$supplier = $this->getStockupType($supplier); $supplier = $this->getStockupType($supplier);
...@@ -63,6 +66,9 @@ class SupplierTransformer ...@@ -63,6 +66,9 @@ class SupplierTransformer
$supplier['create_name'] = array_get($userInfo, 'name'); $supplier['create_name'] = array_get($userInfo, 'name');
} }
$supplier['last_upload_sku_time'] = array_get($lastUploadSkuTimes,$supplier['supplier_code']) ? date('Y-m-d H:i:s',
$lastUploadSkuTimes[$supplier['supplier_code']]) : '';
//获取最新修改人以及下级审核员 //获取最新修改人以及下级审核员
$log = LogModel::getLastLog($supplier['supplier_id']); $log = LogModel::getLastLog($supplier['supplier_id']);
$supplier['last_update_name'] = $log ? $log['admin_name'] : ''; $supplier['last_update_name'] = $log ? $log['admin_name'] : '';
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
{field: 'supplier_type_name', title: '供应商类别', align: 'center', width: 110}, {field: 'supplier_type_name', title: '供应商类别', align: 'center', width: 110},
{field: 'create_time', title: '创建时间', align: 'center', width: 145}, {field: 'create_time', title: '创建时间', align: 'center', width: 145},
{field: 'sku_create_time', title: '首次上传sku时间', align: 'center', width: 145}, {field: 'sku_create_time', title: '首次上传sku时间', align: 'center', width: 145},
{field: 'sku_update_time', title: '最新上传sku时间', align: 'center', width: 145}, {field: 'last_upload_sku_time', title: '最新上传sku时间', align: 'center', width: 145},
]; ];
cols.push( cols.push(
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment