|
|
@ -39,20 +39,22 @@ public interface BsMerLedgerMapper extends BsMerLedgerMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_mer_ledger (mer_id, platform_type, ", |
|
|
|
"insert into bs_mer_ledger (mer_id, mer_name, ", |
|
|
|
"platform_no, cup_no, ", |
|
|
|
"platform_type, platform_no, ", |
|
|
|
"receiver_no, split_lowest_ratio, ", |
|
|
|
"cup_no, receiver_no, ", |
|
|
|
"split_entrust_file_name, split_entrust_file_path, ", |
|
|
|
"split_lowest_ratio, split_entrust_file_name, ", |
|
|
|
"`status`, reject_reason, ", |
|
|
|
"split_entrust_file_path, `status`, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"reject_reason, create_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"values (#{merId,jdbcType=BIGINT}, #{platformType,jdbcType=INTEGER}, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"#{platformNo,jdbcType=VARCHAR}, #{cupNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, ", |
|
|
|
"#{receiverNo,jdbcType=VARCHAR}, #{splitLowestRatio,jdbcType=DECIMAL}, ", |
|
|
|
"#{platformType,jdbcType=INTEGER}, #{platformNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{splitEntrustFileName,jdbcType=VARCHAR}, #{splitEntrustFilePath,jdbcType=VARCHAR}, ", |
|
|
|
"#{cupNo,jdbcType=VARCHAR}, #{receiverNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{rejectReason,jdbcType=VARCHAR}, ", |
|
|
|
"#{splitLowestRatio,jdbcType=DECIMAL}, #{splitEntrustFileName,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{splitEntrustFilePath,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{rejectReason,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsMerLedger record); |
|
|
|
int insert(BsMerLedger record); |
|
|
@ -65,6 +67,7 @@ public interface BsMerLedgerMapper extends BsMerLedgerMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="cup_no", property="cupNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="cup_no", property="cupNo", jdbcType=JdbcType.VARCHAR), |
|
|
@ -84,7 +87,7 @@ public interface BsMerLedgerMapper extends BsMerLedgerMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, mer_id, platform_type, platform_no, cup_no, receiver_no, split_lowest_ratio, ", |
|
|
|
"id, mer_id, mer_name, platform_type, platform_no, cup_no, receiver_no, split_lowest_ratio, ", |
|
|
|
"split_entrust_file_name, split_entrust_file_path, `status`, reject_reason, create_time, ", |
|
|
|
"split_entrust_file_name, split_entrust_file_path, `status`, reject_reason, create_time, ", |
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
"from bs_mer_ledger", |
|
|
|
"from bs_mer_ledger", |
|
|
@ -93,6 +96,7 @@ public interface BsMerLedgerMapper extends BsMerLedgerMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="platform_type", property="platformType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="platform_no", property="platformNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="cup_no", property="cupNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="cup_no", property="cupNo", jdbcType=JdbcType.VARCHAR), |
|
|
@ -122,6 +126,7 @@ public interface BsMerLedgerMapper extends BsMerLedgerMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update bs_mer_ledger", |
|
|
|
"update bs_mer_ledger", |
|
|
|
"set mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
"set mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"mer_name = #{merName,jdbcType=VARCHAR},", |
|
|
|
"platform_type = #{platformType,jdbcType=INTEGER},", |
|
|
|
"platform_type = #{platformType,jdbcType=INTEGER},", |
|
|
|
"platform_no = #{platformNo,jdbcType=VARCHAR},", |
|
|
|
"platform_no = #{platformNo,jdbcType=VARCHAR},", |
|
|
|
"cup_no = #{cupNo,jdbcType=VARCHAR},", |
|
|
|
"cup_no = #{cupNo,jdbcType=VARCHAR},", |
|
|
|