master
wangxinglong 2022-02-08 10:30:13 +08:00
parent 0f196e30d7
commit 7af9877af4
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ class Coupon extends Base
$res = CouponRepository::getInstance()->findList($whereMap, $fields, $page, $size,function ($q){
return $q->with([
"couponMain",
"couponMain" => function ($q) {
$q->field("id,name,image_url,type_name");
},
"scoreModel",
"business" => function ($q) {
$q->field("code,id,business_name,business_subtitle");