Compare commits

...

2 Commits

Author SHA1 Message Date
yin5th 4f88ec733d setter 2022-01-27 11:21:35 +08:00
yin5th c5bfed1e71 setter 2022-01-27 11:20:01 +08:00
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,8 @@ class Coupon extends Base
'(end_time > NOW()) as sort_weight'];
$whereMap[] = ['consumer_code', '=', $accountCode];
// switch ($type) {
// case 'all':
// // 全部持有优惠券
@ -89,6 +91,7 @@ class Coupon extends Base
// break;
// }
$res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){
return $q->with(["couponMain","scoreModel","business"])
->where(function ($q){