|
|
@ -43,16 +43,16 @@ public interface BsOrderSettleMapper extends BsOrderSettleMapperExt { |
|
|
|
"settle_mer_no, settle_mer_key, ", |
|
|
|
"settle_mer_no, settle_mer_key, ", |
|
|
|
"settle_amount, ledger_flag, ", |
|
|
|
"settle_amount, ledger_flag, ", |
|
|
|
"ledger_order_no, ledger_amount, ", |
|
|
|
"ledger_order_no, ledger_amount, ", |
|
|
|
"ledger_status, create_time, ", |
|
|
|
"ledger_status, revoke_order_no, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{merNo,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{merNo,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{settleMerNo,jdbcType=VARCHAR}, #{settleMerKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{settleMerNo,jdbcType=VARCHAR}, #{settleMerKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{settleAmount,jdbcType=DECIMAL}, #{ledgerFlag,jdbcType=BIT}, ", |
|
|
|
"#{settleAmount,jdbcType=DECIMAL}, #{ledgerFlag,jdbcType=BIT}, ", |
|
|
|
"#{ledgerOrderNo,jdbcType=VARCHAR}, #{ledgerAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{ledgerOrderNo,jdbcType=VARCHAR}, #{ledgerAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{ledgerStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ledgerStatus,jdbcType=INTEGER}, #{revokeOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsOrderSettle record); |
|
|
|
int insert(BsOrderSettle record); |
|
|
@ -73,6 +73,7 @@ public interface BsOrderSettleMapper extends BsOrderSettleMapperExt { |
|
|
|
@Result(column="ledger_order_no", property="ledgerOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ledger_order_no", property="ledgerOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ledger_amount", property="ledgerAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="ledger_amount", property="ledgerAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="ledger_status", property="ledgerStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ledger_status", property="ledgerStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="revoke_order_no", property="revokeOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -84,8 +85,8 @@ public interface BsOrderSettleMapper extends BsOrderSettleMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, mer_no, order_no, settle_mer_no, settle_mer_key, settle_amount, ledger_flag, ", |
|
|
|
"id, mer_no, order_no, settle_mer_no, settle_mer_key, settle_amount, ledger_flag, ", |
|
|
|
"ledger_order_no, ledger_amount, ledger_status, create_time, update_time, ext_1, ", |
|
|
|
"ledger_order_no, ledger_amount, ledger_status, revoke_order_no, create_time, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
"from bs_order_settle", |
|
|
|
"from bs_order_settle", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -100,6 +101,7 @@ public interface BsOrderSettleMapper extends BsOrderSettleMapperExt { |
|
|
|
@Result(column="ledger_order_no", property="ledgerOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ledger_order_no", property="ledgerOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ledger_amount", property="ledgerAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="ledger_amount", property="ledgerAmount", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="ledger_status", property="ledgerStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ledger_status", property="ledgerStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="revoke_order_no", property="revokeOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -128,6 +130,7 @@ public interface BsOrderSettleMapper extends BsOrderSettleMapperExt { |
|
|
|
"ledger_order_no = #{ledgerOrderNo,jdbcType=VARCHAR},", |
|
|
|
"ledger_order_no = #{ledgerOrderNo,jdbcType=VARCHAR},", |
|
|
|
"ledger_amount = #{ledgerAmount,jdbcType=DECIMAL},", |
|
|
|
"ledger_amount = #{ledgerAmount,jdbcType=DECIMAL},", |
|
|
|
"ledger_status = #{ledgerStatus,jdbcType=INTEGER},", |
|
|
|
"ledger_status = #{ledgerStatus,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"revoke_order_no = #{revokeOrderNo,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|