zoujiajian vor 1 Jahr
Ursprung
Commit
964e8fabbb
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      netflix-dao/src/main/resources/mapper/CouponRecommendMapper.xml

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

@@ -71,9 +71,7 @@
     </select>
     </select>
 
 
     <select id="getRecommendCouponByGoodsId" resultType="com.cyksj.model.entity.Coupon">
     <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
         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
         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())
         and (cr.up_time is null or cr.up_time &lt;= now()) and (cr.down_time is null or cr.down_time > now())