Commit 86a15486 by YG8999

消费记录增加查询条件

parent d46d314d
......@@ -30,6 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSConsumptionRecordsList" parameterType="SConsumptionRecords" resultMap="SConsumptionRecordsResult">
<include refid="selectSConsumptionRecordsVo"/>
<where>
<if test="name != null and name != ''"> and name = #{name}</if>
<if test="consumerId != null"> and consumer_id = #{consumerId}</if>
</where>
</select>
......
......@@ -43,26 +43,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSCouponList" parameterType="SCoupon" resultMap="SCouponResult">
<include refid="selectSCouponVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%'),</if>
<if test="startDate != null"> and start_date = #{startDate},</if>
<if test="endDate != null"> and end_date = #{endDate},</if>
<if test="validStartTime != null"> and valid_start_time = #{validStartTime},</if>
<if test="validEndTime != null"> and valid_end_time = #{validEndTime},</if>
<if test="storeType != null"> and store_type = #{storeType},</if>
<if test="roomType != null"> and room_type = #{roomType},</if>
<if test="couponType != null"> and coupon_type = #{couponType},</if>
<if test="duration != null and duration != ''"> and duration = #{duration},</if>
<if test="minDuration != null and minDuration != ''"> and min_duration = #{minDuration},</if>
<if test="maxDuration != null and maxDuration != ''"> and max_duration = #{maxDuration},</if>
<if test="minPrice != null and minPrice != ''"> and min_price = #{minPrice},</if>
<if test="subPrice != null and subPrice != ''"> and sub_price = #{subPrice},</if>
<if test="isOverlay != null"> and is_overlay = #{isOverlay},</if>
<if test="platformType != null"> and platform_type = #{platformType},</if>
<if test="number != null"> and number = #{number},</if>
<if test="createBy != null"> and create_by = #{createBy},</if>
<if test="createTime != null"> and create_time = #{createTime},</if>
<if test="updateBy != null"> and update_by = #{updateBy},</if>
<if test="updateTime != null"> and update_time = #{updateTime},</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="startDate != null"> and start_date = #{startDate}</if>
<if test="endDate != null"> and end_date = #{endDate}</if>
<if test="validStartTime != null"> and valid_start_time = #{validStartTime}</if>
<if test="validEndTime != null"> and valid_end_time = #{validEndTime}</if>
<if test="storeType != null"> and store_type = #{storeType}</if>
<if test="roomType != null"> and room_type = #{roomType}</if>
<if test="couponType != null"> and coupon_type = #{couponType}</if>
<if test="duration != null and duration != ''"> and duration = #{duration}</if>
<if test="minDuration != null and minDuration != ''"> and min_duration = #{minDuration}</if>
<if test="maxDuration != null and maxDuration != ''"> and max_duration = #{maxDuration}</if>
<if test="minPrice != null and minPrice != ''"> and min_price = #{minPrice}</if>
<if test="subPrice != null and subPrice != ''"> and sub_price = #{subPrice}</if>
<if test="isOverlay != null"> and is_overlay = #{isOverlay}</if>
<if test="platformType != null"> and platform_type = #{platformType}</if>
<if test="number != null"> and number = #{number}</if>
<if test="createBy != null"> and create_by = #{createBy}</if>
<if test="createTime != null"> and create_time = #{createTime}</if>
<if test="updateBy != null"> and update_by = #{updateBy}</if>
<if test="updateTime != null"> and update_time = #{updateTime}</if>
</where>
</select>
......
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