应付配置的附加费调整
This commit is contained in:
@@ -11,6 +11,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="chargeType" column="charge_type" />
|
||||
<result property="dictValue" column="dict_value" />
|
||||
<result property="chargeValue" column="charge_value" />
|
||||
<result property="lengthCm" column="length_cm" />
|
||||
<result property="widthCm" column="width_cm" />
|
||||
<result property="heightCm" column="height_cm" />
|
||||
<result property="overWeightKg" column="over_weight_kg" />
|
||||
<result property="extraWeightKg" column="extra_weight_kg" />
|
||||
<result property="postcodeText" column="postcode_text" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="roundMode" column="round_mode" />
|
||||
<result property="ssCode" column="ss_code" />
|
||||
@@ -26,7 +32,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPrcSurchargeVo">
|
||||
select sc_id, sc_name, fee_type, charge_type, dict_value, charge_value, currency, round_mode,
|
||||
select sc_id, sc_name, fee_type, charge_type, dict_value, charge_value,
|
||||
length_cm, width_cm, height_cm, over_weight_kg, extra_weight_kg, postcode_text, currency, round_mode,
|
||||
ss_code, is_del, country_code, block_title, sc_note, tms_id, created_by, create_time, updated_by, update_time
|
||||
from prc_surcharge
|
||||
</sql>
|
||||
@@ -92,6 +99,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chargeType != null and chargeType != ''">charge_type,</if>
|
||||
<if test="dictValue != null">dict_value,</if>
|
||||
<if test="chargeValue != null">charge_value,</if>
|
||||
<if test="lengthCm != null">length_cm,</if>
|
||||
<if test="widthCm != null">width_cm,</if>
|
||||
<if test="heightCm != null">height_cm,</if>
|
||||
<if test="overWeightKg != null">over_weight_kg,</if>
|
||||
<if test="extraWeightKg != null">extra_weight_kg,</if>
|
||||
<if test="postcodeText != null">postcode_text,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="roundMode != null and roundMode != ''">round_mode,</if>
|
||||
<if test="ssCode != null and ssCode != ''">ss_code,</if>
|
||||
@@ -108,6 +121,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chargeType != null and chargeType != ''">#{chargeType},</if>
|
||||
<if test="dictValue != null">#{dictValue},</if>
|
||||
<if test="chargeValue != null">#{chargeValue},</if>
|
||||
<if test="lengthCm != null">#{lengthCm},</if>
|
||||
<if test="widthCm != null">#{widthCm},</if>
|
||||
<if test="heightCm != null">#{heightCm},</if>
|
||||
<if test="overWeightKg != null">#{overWeightKg},</if>
|
||||
<if test="extraWeightKg != null">#{extraWeightKg},</if>
|
||||
<if test="postcodeText != null">#{postcodeText},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="roundMode != null and roundMode != ''">#{roundMode},</if>
|
||||
<if test="ssCode != null and ssCode != ''">#{ssCode},</if>
|
||||
@@ -132,4 +151,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="rebindPayConfig">
|
||||
update pay_surcharge
|
||||
set sc_id = #{newScId},
|
||||
fee_name = #{feeName},
|
||||
zone_name = #{zoneName},
|
||||
amount = #{amount},
|
||||
currency = ifnull(#{currency}, currency),
|
||||
fee_desc = #{feeDesc},
|
||||
calc_rule = #{calcRule},
|
||||
charge_text = #{chargeText},
|
||||
price_unit = ifnull(#{priceUnit}, price_unit)
|
||||
where sc_id = #{oldScId}
|
||||
and section_name = '附加费配置'
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user