|
|
@ -39,12 +39,12 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into sec_sinopec_config (app_id, app_secret, ", |
|
|
|
"insert into sec_sinopec_config (`name`, app_secret, ", |
|
|
|
"code, create_time, ", |
|
|
|
"code, create_time, ", |
|
|
|
"SignKey)", |
|
|
|
"SignKey, app_id)", |
|
|
|
"values (#{appId,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{name,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ", |
|
|
|
"#{code,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{code,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{signkey,jdbcType=VARCHAR})" |
|
|
|
"#{signkey,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(SecSinopecConfig record); |
|
|
|
int insert(SecSinopecConfig record); |
|
|
@ -56,27 +56,29 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR) |
|
|
|
}) |
|
|
|
}) |
|
|
|
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example); |
|
|
|
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example); |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, app_id, app_secret, code, create_time, SignKey", |
|
|
|
"id, `name`, app_secret, code, create_time, SignKey, app_id", |
|
|
|
"from sec_sinopec_config", |
|
|
|
"from sec_sinopec_config", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR) |
|
|
|
}) |
|
|
|
}) |
|
|
|
SecSinopecConfig selectByPrimaryKey(Integer id); |
|
|
|
SecSinopecConfig selectByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
|
@ -91,11 +93,12 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update sec_sinopec_config", |
|
|
|
"update sec_sinopec_config", |
|
|
|
"set app_id = #{appId,jdbcType=VARCHAR},", |
|
|
|
"set `name` = #{name,jdbcType=VARCHAR},", |
|
|
|
"app_secret = #{appSecret,jdbcType=VARCHAR},", |
|
|
|
"app_secret = #{appSecret,jdbcType=VARCHAR},", |
|
|
|
"code = #{code,jdbcType=VARCHAR},", |
|
|
|
"code = #{code,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"SignKey = #{signkey,jdbcType=VARCHAR}", |
|
|
|
"SignKey = #{signkey,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"app_id = #{appId,jdbcType=VARCHAR}", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
int updateByPrimaryKey(SecSinopecConfig record); |
|
|
|
int updateByPrimaryKey(SecSinopecConfig record); |
|
|
|