后台优惠券列表分页展示错误

This commit is contained in:
evoxwht 2023-06-07 14:22:02 +08:00
parent 97e427dfe2
commit 34df5fb11d

View File

@ -23,6 +23,7 @@ use app\services\user\UserServices;
use crmeb\exceptions\AdminException;
use crmeb\exceptions\ApiException;
use crmeb\services\FormBuilder;
use think\facade\Db;
/**
*
@ -64,6 +65,7 @@ class StoreCouponIssueServices extends BaseServices
foreach ($list as &$item) {
$item['use_time'] = date('Y-m-d', $item['start_use_time']) . ' ~ ' . date('Y-m-d', $item['end_use_time']);
}
unset($where['type'], $where['receive_type']);
$count = $this->dao->count($where);
return compact('list', 'count');
}