setter
parent
0f196e30d7
commit
7af9877af4
|
@ -94,7 +94,9 @@ class Coupon extends Base
|
||||||
|
|
||||||
$res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){
|
$res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){
|
||||||
return $q->with([
|
return $q->with([
|
||||||
"couponMain",
|
"couponMain" => function ($q) {
|
||||||
|
$q->field("id,name,image_url,type_name");
|
||||||
|
},
|
||||||
"scoreModel",
|
"scoreModel",
|
||||||
"business" => function ($q) {
|
"business" => function ($q) {
|
||||||
$q->field("code,id,business_name,business_subtitle");
|
$q->field("code,id,business_name,business_subtitle");
|
||||||
|
|
Loading…
Reference in New Issue