zoujiajian преди 11 месеца
родител
ревизия
964e8fabbb
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  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 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())