|
|
|
@ -39,18 +39,18 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_gas_channel_config (gas_channel_type, channel_type, ", |
|
|
|
|
"channel_mer_no, channel_mer_key, ", |
|
|
|
|
"ledger_account_flag, ledger_account_data, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{gasChannelType,jdbcType=INTEGER}, #{channelType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{channelMerNo,jdbcType=VARCHAR}, #{channelMerKey,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ledgerAccountFlag,jdbcType=BIT}, #{ledgerAccountData,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into bs_gas_channel_config (gas_channel_type, trade_status, ", |
|
|
|
|
"channel_type, channel_mer_no, ", |
|
|
|
|
"channel_mer_key, ledger_account_flag, ", |
|
|
|
|
"ledger_account_data, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{gasChannelType,jdbcType=INTEGER}, #{tradeStatus,jdbcType=BIT}, ", |
|
|
|
|
"#{channelType,jdbcType=INTEGER}, #{channelMerNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{channelMerKey,jdbcType=VARCHAR}, #{ledgerAccountFlag,jdbcType=BIT}, ", |
|
|
|
|
"#{ledgerAccountData,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsGasChannelConfig record); |
|
|
|
@ -63,6 +63,7 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt { |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="trade_status", property="tradeStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -79,14 +80,16 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, gas_channel_type, channel_type, channel_mer_no, channel_mer_key, ledger_account_flag, ", |
|
|
|
|
"ledger_account_data, create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"id, gas_channel_type, trade_status, channel_type, channel_mer_no, channel_mer_key, ", |
|
|
|
|
"ledger_account_flag, ledger_account_data, create_time, update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_gas_channel_config", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="gas_channel_type", property="gasChannelType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="trade_status", property="tradeStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="channel_type", property="channelType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="channel_mer_no", property="channelMerNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="channel_mer_key", property="channelMerKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -113,6 +116,7 @@ public interface BsGasChannelConfigMapper extends BsGasChannelConfigMapperExt { |
|
|
|
|
@Update({ |
|
|
|
|
"update bs_gas_channel_config", |
|
|
|
|
"set gas_channel_type = #{gasChannelType,jdbcType=INTEGER},", |
|
|
|
|
"trade_status = #{tradeStatus,jdbcType=BIT},", |
|
|
|
|
"channel_type = #{channelType,jdbcType=INTEGER},", |
|
|
|
|
"channel_mer_no = #{channelMerNo,jdbcType=VARCHAR},", |
|
|
|
|
"channel_mer_key = #{channelMerKey,jdbcType=VARCHAR},", |
|
|
|
|