INSERT INTO sys_user_cash_account_detail (user_id_,trans_no_,type_,amount_,balance_,description_,comment_,create_time_,update_time_,attribute1_,channel_,platform_account_no_) VALUES(#{userId},#{transNo},#{type,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_,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.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}, attribu1_ = #{attribu}, channel_ = #{channel}, platform_account_no_ = #{platformAccountNo}, WHERE id_ = #{id} DELETE FROM sys_user_cash_account_detail WHERE id_ = #{id}