162 lines
6.3 KiB
XML
162 lines
6.3 KiB
XML
<?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.TbMerchantThirdApplyMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="app_id" jdbcType="VARCHAR" property="appId" />
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
<result column="pay_password" jdbcType="VARCHAR" property="payPassword" />
|
|
<result column="applyment_state" jdbcType="VARCHAR" property="applymentState" />
|
|
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
|
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
|
|
<result column="small_appid" jdbcType="VARCHAR" property="smallAppid" />
|
|
<result column="alipay_small_appid" jdbcType="VARCHAR" property="alipaySmallAppid" />
|
|
<result column="store_id" jdbcType="VARCHAR" property="storeId" />
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
<result column="app_token" jdbcType="LONGVARCHAR" property="appToken" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, type, app_id, status, pay_password, applyment_state, created_at, updated_at,small_appid,alipay_small_appid,store_id
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
app_token
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from tb_merchant_third_apply
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from tb_merchant_third_apply
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
insert into tb_merchant_third_apply (id, type, app_id,
|
|
status, pay_password, applyment_state,
|
|
created_at, updated_at, app_token
|
|
)
|
|
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
|
|
#{status,jdbcType=TINYINT}, #{payPassword,jdbcType=VARCHAR}, #{applymentState,jdbcType=VARCHAR},
|
|
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{appToken,jdbcType=LONGVARCHAR}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
insert into tb_merchant_third_apply
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="type != null">
|
|
type,
|
|
</if>
|
|
<if test="appId != null">
|
|
app_id,
|
|
</if>
|
|
<if test="status != null">
|
|
status,
|
|
</if>
|
|
<if test="payPassword != null">
|
|
pay_password,
|
|
</if>
|
|
<if test="applymentState != null">
|
|
applyment_state,
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at,
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at,
|
|
</if>
|
|
<if test="appToken != null">
|
|
app_token,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="type != null">
|
|
#{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="appId != null">
|
|
#{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="status != null">
|
|
#{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="payPassword != null">
|
|
#{payPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="applymentState != null">
|
|
#{applymentState,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
#{createdAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
#{updatedAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="appToken != null">
|
|
#{appToken,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
update tb_merchant_third_apply
|
|
<set>
|
|
<if test="type != null">
|
|
type = #{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="appId != null">
|
|
app_id = #{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="status != null">
|
|
status = #{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="payPassword != null">
|
|
pay_password = #{payPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="applymentState != null">
|
|
applyment_state = #{applymentState,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="appToken != null">
|
|
app_token = #{appToken,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
update tb_merchant_third_apply
|
|
set type = #{type,jdbcType=VARCHAR},
|
|
app_id = #{appId,jdbcType=VARCHAR},
|
|
status = #{status,jdbcType=TINYINT},
|
|
pay_password = #{payPassword,jdbcType=VARCHAR},
|
|
applyment_state = #{applymentState,jdbcType=VARCHAR},
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
updated_at = #{updatedAt,jdbcType=BIGINT},
|
|
app_token = #{appToken,jdbcType=LONGVARCHAR}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply">
|
|
update tb_merchant_third_apply
|
|
set type = #{type,jdbcType=VARCHAR},
|
|
app_id = #{appId,jdbcType=VARCHAR},
|
|
status = #{status,jdbcType=TINYINT},
|
|
pay_password = #{payPassword,jdbcType=VARCHAR},
|
|
applyment_state = #{applymentState,jdbcType=VARCHAR},
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
updated_at = #{updatedAt,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |