小程序预约商品提货记录
This commit is contained in:
parent
281e6d567f
commit
6196e08f81
@ -28,6 +28,7 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
|||||||
public function setSearch(): array
|
public function setSearch(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
'=' => ['uid', 'oid', 'product_id','status'],
|
||||||
'between_time' => ['create_time'],
|
'between_time' => ['create_time'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -45,7 +46,7 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
|||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
return UserProductStorageLog::where($this->searchWhere)
|
return UserProductStorageLog::where($this->searchWhere)
|
||||||
->field(['id', 'oid', 'uid', 'product_id', 'store_id', 'financial_pm', 'nums'])
|
->field(['id', 'oid', 'uid', 'product_id', 'store_id', 'financial_pm', 'nums','times','update_time'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()->each(function($item){
|
->select()->each(function($item){
|
||||||
@ -58,6 +59,9 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
|||||||
}else{
|
}else{
|
||||||
$item['financial_pm']='减少';
|
$item['financial_pm']='减少';
|
||||||
}
|
}
|
||||||
|
if($item['times']){
|
||||||
|
$item['times']=date('Y-m-d H:i:s',$item['times']);
|
||||||
|
}
|
||||||
return $item;
|
return $item;
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\api\controller\user_product_storage_log;
|
||||||
|
|
||||||
|
|
||||||
|
use app\admin\lists\user_product_storage_log\UserProductStorageLogLists;
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户商品储存控制器
|
||||||
|
* Class UserProductStorageLogController
|
||||||
|
* @package app\admin\controller\user_product_storage_log
|
||||||
|
*/
|
||||||
|
class UserProductStorageLogController extends BaseApiController
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @notes 获取用户商品日志列表
|
||||||
|
* @return
|
||||||
|
* @author admin
|
||||||
|
* @date 2024/06/28 11:05
|
||||||
|
*/
|
||||||
|
public function lists()
|
||||||
|
{
|
||||||
|
return $this->dataLists(new UserProductStorageLogLists());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user