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