更新日期

This commit is contained in:
mkm 2023-11-27 14:54:03 +08:00
parent af3c2bae70
commit ae2f9a1c26
2 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,9 @@ class StoreOrderDao extends BaseDao
->when(isset($where['date']) && $where['date'] !== '', function ($query) use ($where) {
getModelTime($query, $where['date'], 'StoreOrder.create_time');
})
->when(isset($where['pay_time']) && $where['pay_time'] !== '', function ($query) use ($where) {
getModelTime($query, $where['pay_time'], 'StoreOrder.pay_time');
})
->when(isset($where['verify_date']) && $where['verify_date'] !== '', function ($query) use ($where) {
getModelTime($query, $where['verify_date'], 'verify_time');
})

View File

@ -70,6 +70,7 @@ class StoreOrder extends BaseController
{
[$page, $limit] = $this->getPage();
$where['status'] = $this->request->param('status');
$where['pay_time'] = $this->request->param('pay_time');
$where['product_type'] = $this->request->param('product_type',0);
if ($where['product_type']==0){
unset($where['product_type']);