Authored by chenchao

fix shipfee not find

@@ -98,7 +98,9 @@ @@ -98,7 +98,9 @@
98 SELECT DISTINCT cpn.id FROM coupon cpn 98 SELECT DISTINCT cpn.id FROM coupon cpn
99 LEFT JOIN `coupon_product_limit` cpl ON cpl.`coupon_id` = cpn.id 99 LEFT JOIN `coupon_product_limit` cpl ON cpl.`coupon_id` = cpn.id
100 WHERE coupon_type = #{couponType} 100 WHERE coupon_type = #{couponType}
101 - and use_limit_type = #{useLimitType} 101 + <if test="useLimitType != null">
  102 + and use_limit_type = #{useLimitType}
  103 + </if>
102 and ((cpn.`product_limit_type` = 1 AND cpl.`product_id` = #{productId}) OR (cpn.`product_limit_type` = 3 AND cpl.`product_id` != #{productId}) OR cpn.`product_limit_type` =2) 104 and ((cpn.`product_limit_type` = 1 AND cpl.`product_id` = #{productId}) OR (cpn.`product_limit_type` = 3 AND cpl.`product_id` != #{productId}) OR cpn.`product_limit_type` =2)
103 </sql> 105 </sql>
104 106