zoujiajian 11 mesi fa
parent
commit
964e8fabbb

+ 1 - 3
netflix-dao/src/main/resources/mapper/CouponRecommendMapper.xml

@@ -71,9 +71,7 @@
     </select>
 
     <select id="getRecommendCouponByGoodsId" resultType="com.cyksj.model.entity.Coupon">
-        select c.id,
-        c.scope,
-        cr.id as recommendId
+        select c.*
         from coupon_recommend cr inner join coupon c on c.id = cr.coupon_id
         where cr.deleted is true and c.deleted is true and cr.status is true
         and (cr.up_time is null or cr.up_time &lt;= now()) and (cr.down_time is null or cr.down_time > now())