|
@@ -20,10 +20,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="printSetting" column="print_setting" />
|
|
<result property="printSetting" column="print_setting" />
|
|
<result property="discountSetting" column="discount_setting" />
|
|
<result property="discountSetting" column="discount_setting" />
|
|
<result property="isNoOil" column="is_no_oil" />
|
|
<result property="isNoOil" column="is_no_oil" />
|
|
|
|
+ <result property="notice" column="notice" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectStationPayVo">
|
|
<sql id="selectStationPayVo">
|
|
- select pay_id, pay_mode, station_id, station_name, image_photos_flag, card_enabled_flag, activity_pic, preferential_way_share_flag, other_preferential_way, pay_print_num, pay_callback_page, ws_print_flag, print_setting, discount_setting, is_no_oil from station_pay
|
|
|
|
|
|
+ select pay_id, pay_mode, station_id, station_name, image_photos_flag, card_enabled_flag, activity_pic, preferential_way_share_flag, other_preferential_way, pay_print_num, pay_callback_page, ws_print_flag, print_setting, discount_setting, is_no_oil,notice from station_pay
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectStationPayList" parameterType="StationPay" resultMap="StationPayResult">
|
|
<select id="selectStationPayList" parameterType="StationPay" resultMap="StationPayResult">
|
|
@@ -43,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="printSetting != null and printSetting != ''"> and print_setting = #{printSetting}</if>
|
|
<if test="printSetting != null and printSetting != ''"> and print_setting = #{printSetting}</if>
|
|
<if test="discountSetting != null and discountSetting != ''"> and discount_setting = #{discountSetting}</if>
|
|
<if test="discountSetting != null and discountSetting != ''"> and discount_setting = #{discountSetting}</if>
|
|
<if test="isNoOil != null and isNoOil != ''"> and is_no_oil = #{isNoOil}</if>
|
|
<if test="isNoOil != null and isNoOil != ''"> and is_no_oil = #{isNoOil}</if>
|
|
|
|
+ <if test="notice != null and notice != ''"> and notice = #{notice}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="printSetting != null">print_setting,</if>
|
|
<if test="printSetting != null">print_setting,</if>
|
|
<if test="discountSetting != null">discount_setting,</if>
|
|
<if test="discountSetting != null">discount_setting,</if>
|
|
<if test="isNoOil != null">is_no_oil,</if>
|
|
<if test="isNoOil != null">is_no_oil,</if>
|
|
|
|
+ <if test="notice != null">notice,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="payMode != null">#{payMode},</if>
|
|
<if test="payMode != null">#{payMode},</if>
|
|
@@ -84,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="printSetting != null">#{printSetting},</if>
|
|
<if test="printSetting != null">#{printSetting},</if>
|
|
<if test="discountSetting != null">#{discountSetting},</if>
|
|
<if test="discountSetting != null">#{discountSetting},</if>
|
|
<if test="isNoOil != null">#{isNoOil},</if>
|
|
<if test="isNoOil != null">#{isNoOil},</if>
|
|
|
|
+ <if test="notice != null">#{notice},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -104,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="printSetting != null">print_setting = #{printSetting},</if>
|
|
<if test="printSetting != null">print_setting = #{printSetting},</if>
|
|
<if test="discountSetting != null">discount_setting = #{discountSetting},</if>
|
|
<if test="discountSetting != null">discount_setting = #{discountSetting},</if>
|
|
<if test="isNoOil != null">is_no_oil = #{isNoOil},</if>
|
|
<if test="isNoOil != null">is_no_oil = #{isNoOil},</if>
|
|
|
|
+ <if test="notice != null">notice = #{notice},</if>
|
|
</trim>
|
|
</trim>
|
|
where pay_id = #{payId}
|
|
where pay_id = #{payId}
|
|
</update>
|
|
</update>
|