INSERT INTO sys_user_cash_account_detail
id_,
user_id_,
trans_no_,
type_,
trans_type_,
status_,
amount_,
balance_,
description_,
comment_,
create_time_,
update_time_,
attribute1_,
channel_,
platform_account_no_,
VALUES
#{id},
#{userId},
#{transNo},
#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
#{transType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
#{amount},
#{balance},
#{description},
#{comment},
NOW(),
NOW(),
#{attribute},
#{channel},
#{platformAccountNo},
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_)
VALUE
(#{sysUserCashAccountDetail.userId},#{sysUserCashAccountDetail.transNo},#{sysUserCashAccountDetail.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{sysUserCashAccountDetail.transType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{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})
UPDATE sys_user_cash_account_detail
status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
user_id_ = #{userId},
balance_ = #{balance},
comment_ = #{comment},
update_time_ = NOW(),
amount_ = #{amount},
description_ = #{description},
trans_no_ = #{transNo},
type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
trans_type_ = #{transType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
attribute1_ = #{attribute},
channel_ = #{channel},
platform_account_no_ = #{platformAccountNo},
WHERE id_ = #{id}
DELETE FROM sys_user_cash_account_detail WHERE id_ = #{id}