|
@@ -147,7 +147,7 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="UserCoupon_Base_Column_List">
|
|
<sql id="UserCoupon_Base_Column_List">
|
|
- T1.coupon_id, T2.id, T2.station_id, T2.coupon_name, T2.coupon_type, T2.coupon_threshold_amt, T2.oil_name, T2.oil_type, T2.coupon_amt, T2.effective_time_type,
|
|
|
|
|
|
+ T1.id, T1.coupon_is_used, T1.coupon_no, T2.id AS coupon_id, T2.station_id, T2.coupon_name, T2.coupon_type, T2.coupon_threshold_amt, T2.oil_name, T2.oil_type, T2.coupon_amt, T2.effective_time_type,
|
|
T2.effective_time_start, T2.effective_time_end, T2.effective_day_num, T2.coupon_cumulative_num, T2.coupon_use_num,
|
|
T2.effective_time_start, T2.effective_time_end, T2.effective_day_num, T2.coupon_cumulative_num, T2.coupon_use_num,
|
|
T2.open_platform, T2.status, T2.create_by, T2.create_time, T2.update_by, T2.update_time, T2.del_flag, T2.coupon_details, T2.verification,
|
|
T2.open_platform, T2.status, T2.create_by, T2.create_time, T2.update_by, T2.update_time, T2.del_flag, T2.coupon_details, T2.verification,
|
|
T2.is_card_flag, T2.is_grade_flag, T2.is_market_flag, T2.edit_flag, T2.available_control, T2.appointed_days, T2.cycle_days
|
|
T2.is_card_flag, T2.is_grade_flag, T2.is_market_flag, T2.edit_flag, T2.available_control, T2.appointed_days, T2.cycle_days
|
|
@@ -354,9 +354,6 @@
|
|
<if test="stationId !=null">
|
|
<if test="stationId !=null">
|
|
AND station_id = #{stationId}
|
|
AND station_id = #{stationId}
|
|
</if>
|
|
</if>
|
|
- <if test="couponIsUsed !=null and couponIsUsed !=''">
|
|
|
|
- AND coupon_is_used = #{couponIsUsed}
|
|
|
|
- </if>
|
|
|
|
<if test="couponNo !=null and couponNo !=''">
|
|
<if test="couponNo !=null and couponNo !=''">
|
|
AND coupon_no = #{couponNo}
|
|
AND coupon_no = #{couponNo}
|
|
</if>
|
|
</if>
|
|
@@ -451,7 +448,7 @@
|
|
T1.id = #{id}
|
|
T1.id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="couponNo !=null">
|
|
<if test="couponNo !=null">
|
|
- T1.coupon_no = #{couponNo}
|
|
|
|
|
|
+ AND T1.coupon_no = #{couponNo}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|