Commit 9a681d57 by 吕明尚

时长劵增加查询条件

parent 7844b983
...@@ -102,7 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -102,7 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectSCouponVo"/> <include refid="selectSCouponVo"/>
where 1=1 and coupon_type = #{couponType} where 1=1 and coupon_type = #{couponType}
<if test="endDate != null">and end_date >= NOW()</if> <if test="endDate != null">and end_date >= NOW()</if>
<if test="orderType != null">and order_type = #{orderType}</if>
<if test="packageId != null">and package_id = #{packageId}</if>
</select> </select>
<select id="selectSCouponByDealgroupId" resultMap="SCouponResult"> <select id="selectSCouponByDealgroupId" resultMap="SCouponResult">
<include refid="selectSCouponVo"/> <include refid="selectSCouponVo"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment