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