提交
This commit is contained in:
325
src/main/resources/mapper/TbShopCurrencyMapper.xml
Normal file
325
src/main/resources/mapper/TbShopCurrencyMapper.xml
Normal file
@@ -0,0 +1,325 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.chaozhanggui.system.cashierservice.dao.TbShopCurrencyMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbShopCurrency">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
|
||||
<result column="prepare_amount" jdbcType="DECIMAL" property="prepareAmount" />
|
||||
<result column="currency" jdbcType="VARCHAR" property="currency" />
|
||||
<result column="decimals_digits" jdbcType="TINYINT" property="decimalsDigits" />
|
||||
<result column="discount_round" jdbcType="VARCHAR" property="discountRound" />
|
||||
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
||||
<result column="small_change" jdbcType="TINYINT" property="smallChange" />
|
||||
<result column="enable_custom_discount" jdbcType="TINYINT" property="enableCustomDiscount" />
|
||||
<result column="max_discount" jdbcType="DECIMAL" property="maxDiscount" />
|
||||
<result column="max_percent" jdbcType="DOUBLE" property="maxPercent" />
|
||||
<result column="biz_duration" jdbcType="VARCHAR" property="bizDuration" />
|
||||
<result column="allow_web_pay" jdbcType="TINYINT" property="allowWebPay" />
|
||||
<result column="is_auto_to_zero" jdbcType="TINYINT" property="isAutoToZero" />
|
||||
<result column="is_include_tax_price" jdbcType="TINYINT" property="isIncludeTaxPrice" />
|
||||
<result column="tax_number" jdbcType="VARCHAR" property="taxNumber" />
|
||||
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
||||
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
|
||||
<result column="auto_lock_screen" jdbcType="TINYINT" property="autoLockScreen" />
|
||||
<result column="voice_notification" jdbcType="TINYINT" property="voiceNotification" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
|
||||
<result column="discount_configs" jdbcType="LONGVARCHAR" property="discountConfigs" />
|
||||
<result column="service_charge" jdbcType="LONGVARCHAR" property="serviceCharge" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, shop_id, prepare_amount, currency, decimals_digits, discount_round, merchant_id,
|
||||
small_change, enable_custom_discount, max_discount, max_percent, biz_duration, allow_web_pay,
|
||||
is_auto_to_zero, is_include_tax_price, tax_number, created_at, updated_at, auto_lock_screen,
|
||||
voice_notification
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
discount_configs, service_charge
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from tb_shop_currency
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_shop_currency
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
|
||||
insert into tb_shop_currency (id, shop_id, prepare_amount,
|
||||
currency, decimals_digits, discount_round,
|
||||
merchant_id, small_change, enable_custom_discount,
|
||||
max_discount, max_percent, biz_duration,
|
||||
allow_web_pay, is_auto_to_zero, is_include_tax_price,
|
||||
tax_number, created_at, updated_at,
|
||||
auto_lock_screen, voice_notification, discount_configs,
|
||||
service_charge)
|
||||
values (#{id,jdbcType=INTEGER}, #{shopId,jdbcType=VARCHAR}, #{prepareAmount,jdbcType=DECIMAL},
|
||||
#{currency,jdbcType=VARCHAR}, #{decimalsDigits,jdbcType=TINYINT}, #{discountRound,jdbcType=VARCHAR},
|
||||
#{merchantId,jdbcType=VARCHAR}, #{smallChange,jdbcType=TINYINT}, #{enableCustomDiscount,jdbcType=TINYINT},
|
||||
#{maxDiscount,jdbcType=DECIMAL}, #{maxPercent,jdbcType=DOUBLE}, #{bizDuration,jdbcType=VARCHAR},
|
||||
#{allowWebPay,jdbcType=TINYINT}, #{isAutoToZero,jdbcType=TINYINT}, #{isIncludeTaxPrice,jdbcType=TINYINT},
|
||||
#{taxNumber,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
|
||||
#{autoLockScreen,jdbcType=TINYINT}, #{voiceNotification,jdbcType=TINYINT}, #{discountConfigs,jdbcType=LONGVARCHAR},
|
||||
#{serviceCharge,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
|
||||
insert into tb_shop_currency
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id,
|
||||
</if>
|
||||
<if test="prepareAmount != null">
|
||||
prepare_amount,
|
||||
</if>
|
||||
<if test="currency != null">
|
||||
currency,
|
||||
</if>
|
||||
<if test="decimalsDigits != null">
|
||||
decimals_digits,
|
||||
</if>
|
||||
<if test="discountRound != null">
|
||||
discount_round,
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id,
|
||||
</if>
|
||||
<if test="smallChange != null">
|
||||
small_change,
|
||||
</if>
|
||||
<if test="enableCustomDiscount != null">
|
||||
enable_custom_discount,
|
||||
</if>
|
||||
<if test="maxDiscount != null">
|
||||
max_discount,
|
||||
</if>
|
||||
<if test="maxPercent != null">
|
||||
max_percent,
|
||||
</if>
|
||||
<if test="bizDuration != null">
|
||||
biz_duration,
|
||||
</if>
|
||||
<if test="allowWebPay != null">
|
||||
allow_web_pay,
|
||||
</if>
|
||||
<if test="isAutoToZero != null">
|
||||
is_auto_to_zero,
|
||||
</if>
|
||||
<if test="isIncludeTaxPrice != null">
|
||||
is_include_tax_price,
|
||||
</if>
|
||||
<if test="taxNumber != null">
|
||||
tax_number,
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at,
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
updated_at,
|
||||
</if>
|
||||
<if test="autoLockScreen != null">
|
||||
auto_lock_screen,
|
||||
</if>
|
||||
<if test="voiceNotification != null">
|
||||
voice_notification,
|
||||
</if>
|
||||
<if test="discountConfigs != null">
|
||||
discount_configs,
|
||||
</if>
|
||||
<if test="serviceCharge != null">
|
||||
service_charge,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
#{shopId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="prepareAmount != null">
|
||||
#{prepareAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="currency != null">
|
||||
#{currency,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="decimalsDigits != null">
|
||||
#{decimalsDigits,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="discountRound != null">
|
||||
#{discountRound,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
#{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="smallChange != null">
|
||||
#{smallChange,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="enableCustomDiscount != null">
|
||||
#{enableCustomDiscount,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="maxDiscount != null">
|
||||
#{maxDiscount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPercent != null">
|
||||
#{maxPercent,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="bizDuration != null">
|
||||
#{bizDuration,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="allowWebPay != null">
|
||||
#{allowWebPay,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isAutoToZero != null">
|
||||
#{isAutoToZero,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isIncludeTaxPrice != null">
|
||||
#{isIncludeTaxPrice,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="taxNumber != null">
|
||||
#{taxNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
#{createdAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
#{updatedAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="autoLockScreen != null">
|
||||
#{autoLockScreen,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="voiceNotification != null">
|
||||
#{voiceNotification,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="discountConfigs != null">
|
||||
#{discountConfigs,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="serviceCharge != null">
|
||||
#{serviceCharge,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
|
||||
update tb_shop_currency
|
||||
<set>
|
||||
<if test="shopId != null">
|
||||
shop_id = #{shopId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="prepareAmount != null">
|
||||
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="currency != null">
|
||||
currency = #{currency,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="decimalsDigits != null">
|
||||
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="discountRound != null">
|
||||
discount_round = #{discountRound,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="smallChange != null">
|
||||
small_change = #{smallChange,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="enableCustomDiscount != null">
|
||||
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="maxDiscount != null">
|
||||
max_discount = #{maxDiscount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPercent != null">
|
||||
max_percent = #{maxPercent,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="bizDuration != null">
|
||||
biz_duration = #{bizDuration,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="allowWebPay != null">
|
||||
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isAutoToZero != null">
|
||||
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isIncludeTaxPrice != null">
|
||||
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="taxNumber != null">
|
||||
tax_number = #{taxNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="autoLockScreen != null">
|
||||
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="voiceNotification != null">
|
||||
voice_notification = #{voiceNotification,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="discountConfigs != null">
|
||||
discount_configs = #{discountConfigs,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="serviceCharge != null">
|
||||
service_charge = #{serviceCharge,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
|
||||
update tb_shop_currency
|
||||
set shop_id = #{shopId,jdbcType=VARCHAR},
|
||||
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
|
||||
currency = #{currency,jdbcType=VARCHAR},
|
||||
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
|
||||
discount_round = #{discountRound,jdbcType=VARCHAR},
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
small_change = #{smallChange,jdbcType=TINYINT},
|
||||
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
|
||||
max_discount = #{maxDiscount,jdbcType=DECIMAL},
|
||||
max_percent = #{maxPercent,jdbcType=DOUBLE},
|
||||
biz_duration = #{bizDuration,jdbcType=VARCHAR},
|
||||
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
|
||||
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
|
||||
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
|
||||
tax_number = #{taxNumber,jdbcType=VARCHAR},
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
|
||||
voice_notification = #{voiceNotification,jdbcType=TINYINT},
|
||||
discount_configs = #{discountConfigs,jdbcType=LONGVARCHAR},
|
||||
service_charge = #{serviceCharge,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrency">
|
||||
update tb_shop_currency
|
||||
set shop_id = #{shopId,jdbcType=VARCHAR},
|
||||
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
|
||||
currency = #{currency,jdbcType=VARCHAR},
|
||||
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
|
||||
discount_round = #{discountRound,jdbcType=VARCHAR},
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
small_change = #{smallChange,jdbcType=TINYINT},
|
||||
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
|
||||
max_discount = #{maxDiscount,jdbcType=DECIMAL},
|
||||
max_percent = #{maxPercent,jdbcType=DOUBLE},
|
||||
biz_duration = #{bizDuration,jdbcType=VARCHAR},
|
||||
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
|
||||
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
|
||||
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
|
||||
tax_number = #{taxNumber,jdbcType=VARCHAR},
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
|
||||
voice_notification = #{voiceNotification,jdbcType=TINYINT}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user