|
@@ -28,6 +28,7 @@
|
|
|
<result column="channel_" property="channel"/>
|
|
|
<result column="organ_name_" property="organName"/>
|
|
|
<result column="platform_account_no_" property="platformAccountNo"/>
|
|
|
+ <result column="group_id_" property="groupId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -48,6 +49,7 @@
|
|
|
INSERT INTO sys_user_cash_account_detail
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id!=null">id_,</if>
|
|
|
+ <if test="groupId!=null">group_id_,</if>
|
|
|
<if test="userId!=null">user_id_,</if>
|
|
|
<if test="transNo!=null">trans_no_,</if>
|
|
|
<if test="type!=null">type_,</if>
|
|
@@ -68,6 +70,7 @@
|
|
|
VALUES
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id!=null">#{id},</if>
|
|
|
+ <if test="groupId!=null">#{groupId},</if>
|
|
|
<if test="userId!=null">#{userId},</if>
|
|
|
<if test="transNo!=null">#{transNo},</if>
|
|
|
<if test="type!=null">#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},</if>
|
|
@@ -91,7 +94,7 @@
|
|
|
keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO sys_user_cash_account_detail
|
|
|
(user_id_,trans_no_,type_,trans_type_,status_,amount_,balance_,description_,comment_,
|
|
|
- create_time_,update_time_,attribute1_,channel_,platform_account_no_)
|
|
|
+ create_time_,update_time_,attribute1_,channel_,platform_account_no_,group_id_)
|
|
|
VALUE
|
|
|
<foreach collection="sysUserCashAccountDetails" item="sysUserCashAccountDetail" separator=",">
|
|
|
(#{sysUserCashAccountDetail.userId},#{sysUserCashAccountDetail.transNo},
|
|
@@ -100,7 +103,7 @@
|
|
|
#{sysUserCashAccountDetail.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{sysUserCashAccountDetail.amount},#{sysUserCashAccountDetail.balance},#{sysUserCashAccountDetail.description},
|
|
|
#{sysUserCashAccountDetail.comment},now(),now(),#{sysUserCashAccountDetail.attribute},#{sysUserCashAccountDetail.channel},
|
|
|
- #{sysUserCashAccountDetail.platformAccountNo})
|
|
|
+ #{sysUserCashAccountDetail.platformAccountNo},#{sysUserCashAccountDetail.groupId})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|