|
|
@ -40,19 +40,21 @@ public interface BsUserSpreadAccountRecordMapper extends BsUserSpreadAccountReco |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_user_spread_account_record (user_spread_account_id, user_id, ", |
|
|
|
"insert into bs_user_spread_account_record (user_spread_account_id, user_id, ", |
|
|
|
"`type`, transaction_amount, ", |
|
|
|
"user_phone, `type`, ", |
|
|
|
"before_amount, after_amount, ", |
|
|
|
"transaction_amount, before_amount, ", |
|
|
|
"source_type, source_id, ", |
|
|
|
"after_amount, source_type, ", |
|
|
|
"source_order_no, source_content, ", |
|
|
|
"source_id, source_order_no, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"source_content, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"create_time, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{userSpreadAccountId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{userSpreadAccountId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{transactionAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, ", |
|
|
|
"#{beforeAmount,jdbcType=DECIMAL}, #{afterAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{transactionAmount,jdbcType=DECIMAL}, #{beforeAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{sourceType,jdbcType=INTEGER}, #{sourceId,jdbcType=BIGINT}, ", |
|
|
|
"#{afterAmount,jdbcType=DECIMAL}, #{sourceType,jdbcType=INTEGER}, ", |
|
|
|
"#{sourceOrderNo,jdbcType=VARCHAR}, #{sourceContent,jdbcType=VARCHAR}, ", |
|
|
|
"#{sourceId,jdbcType=BIGINT}, #{sourceOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{sourceContent,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsUserSpreadAccountRecord record); |
|
|
|
int insert(BsUserSpreadAccountRecord record); |
|
|
@ -66,6 +68,7 @@ public interface BsUserSpreadAccountRecordMapper extends BsUserSpreadAccountReco |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_spread_account_id", property="userSpreadAccountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_spread_account_id", property="userSpreadAccountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="transaction_amount", property="transactionAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="transaction_amount", property="transactionAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="before_amount", property="beforeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="before_amount", property="beforeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
@ -84,9 +87,9 @@ public interface BsUserSpreadAccountRecordMapper extends BsUserSpreadAccountReco |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_spread_account_id, user_id, `type`, transaction_amount, before_amount, ", |
|
|
|
"id, user_spread_account_id, user_id, user_phone, `type`, transaction_amount, ", |
|
|
|
"after_amount, source_type, source_id, source_order_no, source_content, `status`, ", |
|
|
|
"before_amount, after_amount, source_type, source_id, source_order_no, source_content, ", |
|
|
|
"create_time, ext_1, ext_2, ext_3", |
|
|
|
"`status`, create_time, ext_1, ext_2, ext_3", |
|
|
|
"from bs_user_spread_account_record", |
|
|
|
"from bs_user_spread_account_record", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -94,6 +97,7 @@ public interface BsUserSpreadAccountRecordMapper extends BsUserSpreadAccountReco |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="user_spread_account_id", property="userSpreadAccountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_spread_account_id", property="userSpreadAccountId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="transaction_amount", property="transactionAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="transaction_amount", property="transactionAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="before_amount", property="beforeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="before_amount", property="beforeAmount", jdbcType=JdbcType.DECIMAL), |
|
|
@ -123,6 +127,7 @@ public interface BsUserSpreadAccountRecordMapper extends BsUserSpreadAccountReco |
|
|
|
"update bs_user_spread_account_record", |
|
|
|
"update bs_user_spread_account_record", |
|
|
|
"set user_spread_account_id = #{userSpreadAccountId,jdbcType=BIGINT},", |
|
|
|
"set user_spread_account_id = #{userSpreadAccountId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"transaction_amount = #{transactionAmount,jdbcType=DECIMAL},", |
|
|
|
"transaction_amount = #{transactionAmount,jdbcType=DECIMAL},", |
|
|
|
"before_amount = #{beforeAmount,jdbcType=DECIMAL},", |
|
|
|
"before_amount = #{beforeAmount,jdbcType=DECIMAL},", |
|
|
|