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