Compare commits
2 Commits
7cf6e9efda
...
4f88ec733d
Author | SHA1 | Date |
---|---|---|
|
4f88ec733d | |
|
c5bfed1e71 |
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue