199 lines
7.1 KiB
XML
199 lines
7.1 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.TbRenewalsPayLogMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="pay_type" jdbcType="VARCHAR" property="payType" />
|
|
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
|
|
<result column="order_id" jdbcType="VARCHAR" property="orderId" />
|
|
<result column="open_id" jdbcType="VARCHAR" property="openId" />
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
|
|
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
<result column="attach" jdbcType="VARCHAR" property="attach" />
|
|
<result column="expired_at" jdbcType="BIGINT" property="expiredAt" />
|
|
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
|
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, pay_type, shop_id, order_id, open_id, user_id, transaction_id, amount, status,
|
|
remark, attach, expired_at, created_at, updated_at
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from tb_renewals_pay_log
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from tb_renewals_pay_log
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
|
|
insert into tb_renewals_pay_log (id, pay_type, shop_id,
|
|
order_id, open_id, user_id,
|
|
transaction_id, amount, status,
|
|
remark, attach, expired_at,
|
|
created_at, updated_at)
|
|
values (#{id,jdbcType=INTEGER}, #{payType,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR},
|
|
#{orderId,jdbcType=VARCHAR}, #{openId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
|
|
#{transactionId,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT},
|
|
#{remark,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{expiredAt,jdbcType=BIGINT},
|
|
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
|
|
insert into tb_renewals_pay_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="payType != null">
|
|
pay_type,
|
|
</if>
|
|
<if test="shopId != null">
|
|
shop_id,
|
|
</if>
|
|
<if test="orderId != null">
|
|
order_id,
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="transactionId != null">
|
|
transaction_id,
|
|
</if>
|
|
<if test="amount != null">
|
|
amount,
|
|
</if>
|
|
<if test="status != null">
|
|
status,
|
|
</if>
|
|
<if test="remark != null">
|
|
remark,
|
|
</if>
|
|
<if test="attach != null">
|
|
attach,
|
|
</if>
|
|
<if test="expiredAt != null">
|
|
expired_at,
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at,
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="payType != null">
|
|
#{payType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="shopId != null">
|
|
#{shopId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="orderId != null">
|
|
#{orderId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="openId != null">
|
|
#{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="transactionId != null">
|
|
#{transactionId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="amount != null">
|
|
#{amount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="status != null">
|
|
#{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="remark != null">
|
|
#{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="attach != null">
|
|
#{attach,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="expiredAt != null">
|
|
#{expiredAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
#{createdAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
#{updatedAt,jdbcType=BIGINT},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
|
|
update tb_renewals_pay_log
|
|
<set>
|
|
<if test="payType != null">
|
|
pay_type = #{payType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="shopId != null">
|
|
shop_id = #{shopId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="orderId != null">
|
|
order_id = #{orderId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="transactionId != null">
|
|
transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="amount != null">
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="status != null">
|
|
status = #{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="remark != null">
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="attach != null">
|
|
attach = #{attach,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="expiredAt != null">
|
|
expired_at = #{expiredAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at = #{updatedAt,jdbcType=BIGINT},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
|
|
update tb_renewals_pay_log
|
|
set pay_type = #{payType,jdbcType=VARCHAR},
|
|
shop_id = #{shopId,jdbcType=VARCHAR},
|
|
order_id = #{orderId,jdbcType=VARCHAR},
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
status = #{status,jdbcType=TINYINT},
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
attach = #{attach,jdbcType=VARCHAR},
|
|
expired_at = #{expiredAt,jdbcType=BIGINT},
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
updated_at = #{updatedAt,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |