|
@@ -8,6 +8,8 @@
|
|
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
|
|
<result property="payId" column="payId" jdbcType="INTEGER"/>
|
|
|
<result property="spiltOrderId" column="spiltOrderId" 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"/>
|
|
@@ -33,13 +35,14 @@
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id,payId,spiltOrderId,
|
|
|
- payAmount,retailId,retailName,
|
|
|
- retailAccount,retailAmount,retailRealtimeAmount,
|
|
|
- retailAccountAmount,retailSplitrule,channelId,
|
|
|
- channelName,channelAccount,channelAmount,
|
|
|
- channelRealtimeAmount,channelAccountAmount,channelSplitRule,
|
|
|
- status,createTime,hasRefund,
|
|
|
- refundTotal,refundRetail,refundChannel
|
|
|
+ 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">
|
|
@@ -54,7 +57,6 @@
|
|
|
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}
|
|
@@ -62,23 +64,23 @@
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaSplitrecord" useGeneratedKeys="true">
|
|
|
insert into aska_splitRecord
|
|
|
( id,payId,spiltOrderId
|
|
|
- ,payAmount,retailId,retailName
|
|
|
- ,retailAccount,retailAmount,retailRealtimeAmount
|
|
|
- ,retailAccountAmount,retailSplitrule,channelId
|
|
|
- ,channelName,channelAccount,channelAmount
|
|
|
- ,channelRealtimeAmount,channelAccountAmount,channelSplitRule
|
|
|
- ,status,createTime,hasRefund
|
|
|
- ,refundTotal,refundRetail,refundChannel
|
|
|
- )
|
|
|
+ ,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},#{spiltOrderId,jdbcType=VARCHAR}
|
|
|
- ,#{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}
|
|
|
- )
|
|
|
+ ,#{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
|
|
@@ -86,6 +88,8 @@
|
|
|
<if test="id != null">id,</if>
|
|
|
<if test="payId != null">payId,</if>
|
|
|
<if test="spiltOrderId != null">spiltOrderId,</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>
|
|
@@ -112,6 +116,8 @@
|
|
|
<if test="id != null">#{id,jdbcType=INTEGER},</if>
|
|
|
<if test="payId != null">#{payId,jdbcType=INTEGER},</if>
|
|
|
<if test="spiltOrderId != null">#{spiltOrderId,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>
|
|
@@ -144,6 +150,12 @@
|
|
|
<if test="spiltOrderId != null">
|
|
|
spiltOrderId = #{spiltOrderId,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>
|
|
@@ -215,6 +227,8 @@
|
|
|
set
|
|
|
payId = #{payId,jdbcType=INTEGER},
|
|
|
spiltOrderId = #{spiltOrderId,jdbcType=VARCHAR},
|
|
|
+ recordType = #{recordType,jdbcType=INTEGER},
|
|
|
+ refundOrderId = #{refundOrderId,jdbcType=INTEGER},
|
|
|
payAmount = #{payAmount,jdbcType=INTEGER},
|
|
|
retailId = #{retailId,jdbcType=INTEGER},
|
|
|
retailName = #{retailName,jdbcType=VARCHAR},
|