123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <?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.mofangchuxing.aska.dao.mapper.AskaSplitrecordMapper">
- <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="payId" column="payId" jdbcType="INTEGER"/>
- <result property="splitOrderId" column="splitOrderId" jdbcType="VARCHAR"/>
- <result property="recordType" column="recordType" jdbcType="INTEGER"/>
- <result property="refundOrderId" column="refundOrderId" jdbcType="INTEGER"/>
- <result property="payAmount" column="payAmount" jdbcType="INTEGER"/>
- <result property="retailId" column="retailId" jdbcType="INTEGER"/>
- <result property="retailName" column="retailName" jdbcType="VARCHAR"/>
- <result property="retailAccount" column="retailAccount" jdbcType="VARCHAR"/>
- <result property="retailAmount" column="retailAmount" jdbcType="VARCHAR"/>
- <result property="retailRealtimeAmount" column="retailRealtimeAmount" jdbcType="INTEGER"/>
- <result property="retailAccountAmount" column="retailAccountAmount" jdbcType="INTEGER"/>
- <result property="retailSplitrule" column="retailSplitrule" jdbcType="VARCHAR"/>
- <result property="channelId" column="channelId" jdbcType="INTEGER"/>
- <result property="channelName" column="channelName" jdbcType="VARCHAR"/>
- <result property="channelAccount" column="channelAccount" jdbcType="VARCHAR"/>
- <result property="channelAmount" column="channelAmount" jdbcType="VARCHAR"/>
- <result property="channelRealtimeAmount" column="channelRealtimeAmount" jdbcType="INTEGER"/>
- <result property="channelAccountAmount" column="channelAccountAmount" jdbcType="INTEGER"/>
- <result property="channelSplitRule" column="channelSplitRule" jdbcType="VARCHAR"/>
- <result property="status" column="status" jdbcType="INTEGER"/>
- <result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
- <result property="hasRefund" column="hasRefund" jdbcType="INTEGER"/>
- <result property="refundTotal" column="refundTotal" jdbcType="INTEGER"/>
- <result property="refundRetail" column="refundRetail" jdbcType="INTEGER"/>
- <result property="refundChannel" column="refundChannel" jdbcType="INTEGER"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,payId,splitOrderId,
- recordType,refundOrderId,payAmount,
- retailId,retailName,retailAccount,
- retailAmount,retailRealtimeAmount,retailAccountAmount,
- retailSplitrule,channelId,channelName,
- channelAccount,channelAmount,channelRealtimeAmount,
- channelAccountAmount,channelSplitRule,status,
- createTime,hasRefund,refundTotal,
- refundRetail,refundChannel
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from aska_splitRecord
- where id = #{id,jdbcType=INTEGER}
- </select>
- <select id="selectAllByPayId" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from aska_splitRecord
- where payId = #{payId} limit 1
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from aska_splitRecord
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord" useGeneratedKeys="true">
- insert into aska_splitRecord
- ( id,payId,splitOrderId
- ,recordType,refundOrderId,payAmount
- ,retailId,retailName,retailAccount
- ,retailAmount,retailRealtimeAmount,retailAccountAmount
- ,retailSplitrule,channelId,channelName
- ,channelAccount,channelAmount,channelRealtimeAmount
- ,channelAccountAmount,channelSplitRule,status
- ,createTime,hasRefund,refundTotal
- ,refundRetail,refundChannel)
- values (#{id,jdbcType=INTEGER},#{payId,jdbcType=INTEGER},#{splitOrderId,jdbcType=VARCHAR}
- ,#{recordType,jdbcType=INTEGER},#{refundOrderId,jdbcType=INTEGER},#{payAmount,jdbcType=INTEGER}
- ,#{retailId,jdbcType=INTEGER},#{retailName,jdbcType=VARCHAR},#{retailAccount,jdbcType=VARCHAR}
- ,#{retailAmount,jdbcType=VARCHAR},#{retailRealtimeAmount,jdbcType=INTEGER},#{retailAccountAmount,jdbcType=INTEGER}
- ,#{retailSplitrule,jdbcType=VARCHAR},#{channelId,jdbcType=INTEGER},#{channelName,jdbcType=VARCHAR}
- ,#{channelAccount,jdbcType=VARCHAR},#{channelAmount,jdbcType=VARCHAR},#{channelRealtimeAmount,jdbcType=INTEGER}
- ,#{channelAccountAmount,jdbcType=INTEGER},#{channelSplitRule,jdbcType=VARCHAR},#{status,jdbcType=INTEGER}
- ,#{createTime,jdbcType=TIMESTAMP},#{hasRefund,jdbcType=INTEGER},#{refundTotal,jdbcType=INTEGER}
- ,#{refundRetail,jdbcType=INTEGER},#{refundChannel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord" useGeneratedKeys="true">
- insert into aska_splitRecord
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="payId != null">payId,</if>
- <if test="splitOrderId != null">splitOrderId,</if>
- <if test="recordType != null">recordType,</if>
- <if test="refundOrderId != null">refundOrderId,</if>
- <if test="payAmount != null">payAmount,</if>
- <if test="retailId != null">retailId,</if>
- <if test="retailName != null">retailName,</if>
- <if test="retailAccount != null">retailAccount,</if>
- <if test="retailAmount != null">retailAmount,</if>
- <if test="retailRealtimeAmount != null">retailRealtimeAmount,</if>
- <if test="retailAccountAmount != null">retailAccountAmount,</if>
- <if test="retailSplitrule != null">retailSplitrule,</if>
- <if test="channelId != null">channelId,</if>
- <if test="channelName != null">channelName,</if>
- <if test="channelAccount != null">channelAccount,</if>
- <if test="channelAmount != null">channelAmount,</if>
- <if test="channelRealtimeAmount != null">channelRealtimeAmount,</if>
- <if test="channelAccountAmount != null">channelAccountAmount,</if>
- <if test="channelSplitRule != null">channelSplitRule,</if>
- <if test="status != null">status,</if>
- <if test="createTime != null">createTime,</if>
- <if test="hasRefund != null">hasRefund,</if>
- <if test="refundTotal != null">refundTotal,</if>
- <if test="refundRetail != null">refundRetail,</if>
- <if test="refundChannel != null">refundChannel,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id,jdbcType=INTEGER},</if>
- <if test="payId != null">#{payId,jdbcType=INTEGER},</if>
- <if test="splitOrderId != null">#{splitOrderId,jdbcType=VARCHAR},</if>
- <if test="recordType != null">#{recordType,jdbcType=INTEGER},</if>
- <if test="refundOrderId != null">#{refundOrderId,jdbcType=INTEGER},</if>
- <if test="payAmount != null">#{payAmount,jdbcType=INTEGER},</if>
- <if test="retailId != null">#{retailId,jdbcType=INTEGER},</if>
- <if test="retailName != null">#{retailName,jdbcType=VARCHAR},</if>
- <if test="retailAccount != null">#{retailAccount,jdbcType=VARCHAR},</if>
- <if test="retailAmount != null">#{retailAmount,jdbcType=VARCHAR},</if>
- <if test="retailRealtimeAmount != null">#{retailRealtimeAmount,jdbcType=INTEGER},</if>
- <if test="retailAccountAmount != null">#{retailAccountAmount,jdbcType=INTEGER},</if>
- <if test="retailSplitrule != null">#{retailSplitrule,jdbcType=VARCHAR},</if>
- <if test="channelId != null">#{channelId,jdbcType=INTEGER},</if>
- <if test="channelName != null">#{channelName,jdbcType=VARCHAR},</if>
- <if test="channelAccount != null">#{channelAccount,jdbcType=VARCHAR},</if>
- <if test="channelAmount != null">#{channelAmount,jdbcType=VARCHAR},</if>
- <if test="channelRealtimeAmount != null">#{channelRealtimeAmount,jdbcType=INTEGER},</if>
- <if test="channelAccountAmount != null">#{channelAccountAmount,jdbcType=INTEGER},</if>
- <if test="channelSplitRule != null">#{channelSplitRule,jdbcType=VARCHAR},</if>
- <if test="status != null">#{status,jdbcType=INTEGER},</if>
- <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
- <if test="hasRefund != null">#{hasRefund,jdbcType=INTEGER},</if>
- <if test="refundTotal != null">#{refundTotal,jdbcType=INTEGER},</if>
- <if test="refundRetail != null">#{refundRetail,jdbcType=INTEGER},</if>
- <if test="refundChannel != null">#{refundChannel,jdbcType=INTEGER},</if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
- update aska_splitRecord
- <set>
- <if test="payId != null">
- payId = #{payId,jdbcType=INTEGER},
- </if>
- <if test="splitOrderId != null">
- splitOrderId = #{splitOrderId,jdbcType=VARCHAR},
- </if>
- <if test="recordType != null">
- recordType = #{recordType,jdbcType=INTEGER},
- </if>
- <if test="refundOrderId != null">
- refundOrderId = #{refundOrderId,jdbcType=INTEGER},
- </if>
- <if test="payAmount != null">
- payAmount = #{payAmount,jdbcType=INTEGER},
- </if>
- <if test="retailId != null">
- retailId = #{retailId,jdbcType=INTEGER},
- </if>
- <if test="retailName != null">
- retailName = #{retailName,jdbcType=VARCHAR},
- </if>
- <if test="retailAccount != null">
- retailAccount = #{retailAccount,jdbcType=VARCHAR},
- </if>
- <if test="retailAmount != null">
- retailAmount = #{retailAmount,jdbcType=VARCHAR},
- </if>
- <if test="retailRealtimeAmount != null">
- retailRealtimeAmount = #{retailRealtimeAmount,jdbcType=INTEGER},
- </if>
- <if test="retailAccountAmount != null">
- retailAccountAmount = #{retailAccountAmount,jdbcType=INTEGER},
- </if>
- <if test="retailSplitrule != null">
- retailSplitrule = #{retailSplitrule,jdbcType=VARCHAR},
- </if>
- <if test="channelId != null">
- channelId = #{channelId,jdbcType=INTEGER},
- </if>
- <if test="channelName != null">
- channelName = #{channelName,jdbcType=VARCHAR},
- </if>
- <if test="channelAccount != null">
- channelAccount = #{channelAccount,jdbcType=VARCHAR},
- </if>
- <if test="channelAmount != null">
- channelAmount = #{channelAmount,jdbcType=VARCHAR},
- </if>
- <if test="channelRealtimeAmount != null">
- channelRealtimeAmount = #{channelRealtimeAmount,jdbcType=INTEGER},
- </if>
- <if test="channelAccountAmount != null">
- channelAccountAmount = #{channelAccountAmount,jdbcType=INTEGER},
- </if>
- <if test="channelSplitRule != null">
- channelSplitRule = #{channelSplitRule,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- createTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="hasRefund != null">
- hasRefund = #{hasRefund,jdbcType=INTEGER},
- </if>
- <if test="refundTotal != null">
- refundTotal = #{refundTotal,jdbcType=INTEGER},
- </if>
- <if test="refundRetail != null">
- refundRetail = #{refundRetail,jdbcType=INTEGER},
- </if>
- <if test="refundChannel != null">
- refundChannel = #{refundChannel,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord">
- update aska_splitRecord
- set
- payId = #{payId,jdbcType=INTEGER},
- splitOrderId = #{splitOrderId,jdbcType=VARCHAR},
- recordType = #{recordType,jdbcType=INTEGER},
- refundOrderId = #{refundOrderId,jdbcType=INTEGER},
- payAmount = #{payAmount,jdbcType=INTEGER},
- retailId = #{retailId,jdbcType=INTEGER},
- retailName = #{retailName,jdbcType=VARCHAR},
- retailAccount = #{retailAccount,jdbcType=VARCHAR},
- retailAmount = #{retailAmount,jdbcType=VARCHAR},
- retailRealtimeAmount = #{retailRealtimeAmount,jdbcType=INTEGER},
- retailAccountAmount = #{retailAccountAmount,jdbcType=INTEGER},
- retailSplitrule = #{retailSplitrule,jdbcType=VARCHAR},
- channelId = #{channelId,jdbcType=INTEGER},
- channelName = #{channelName,jdbcType=VARCHAR},
- channelAccount = #{channelAccount,jdbcType=VARCHAR},
- channelAmount = #{channelAmount,jdbcType=VARCHAR},
- channelRealtimeAmount = #{channelRealtimeAmount,jdbcType=INTEGER},
- channelAccountAmount = #{channelAccountAmount,jdbcType=INTEGER},
- channelSplitRule = #{channelSplitRule,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- createTime = #{createTime,jdbcType=TIMESTAMP},
- hasRefund = #{hasRefund,jdbcType=INTEGER},
- refundTotal = #{refundTotal,jdbcType=INTEGER},
- refundRetail = #{refundRetail,jdbcType=INTEGER},
- refundChannel = #{refundChannel,jdbcType=INTEGER}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|