|
|
@ -40,9 +40,11 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into sec_sinopec_config (app_id, app_secret, ", |
|
|
|
"insert into sec_sinopec_config (app_id, app_secret, ", |
|
|
|
"code)", |
|
|
|
"code, create_time, ", |
|
|
|
|
|
|
|
"SignKey)", |
|
|
|
"values (#{appId,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{appId,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ", |
|
|
|
"#{code,jdbcType=VARCHAR})" |
|
|
|
"#{code,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{signkey,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(SecSinopecConfig record); |
|
|
|
int insert(SecSinopecConfig record); |
|
|
@ -56,13 +58,15 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
@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="app_id", property="appId", 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="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR) |
|
|
|
}) |
|
|
|
}) |
|
|
|
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example); |
|
|
|
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example); |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, app_id, app_secret, code", |
|
|
|
"id, app_id, app_secret, code, create_time, SignKey", |
|
|
|
"from sec_sinopec_config", |
|
|
|
"from sec_sinopec_config", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -70,7 +74,9 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
@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="app_id", property="appId", 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="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR) |
|
|
|
}) |
|
|
|
}) |
|
|
|
SecSinopecConfig selectByPrimaryKey(Integer id); |
|
|
|
SecSinopecConfig selectByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
|
@ -87,7 +93,9 @@ public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt { |
|
|
|
"update sec_sinopec_config", |
|
|
|
"update sec_sinopec_config", |
|
|
|
"set app_id = #{appId,jdbcType=VARCHAR},", |
|
|
|
"set app_id = #{appId,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},", |
|
|
|
|
|
|
|
"SignKey = #{signkey,jdbcType=VARCHAR}", |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
int updateByPrimaryKey(SecSinopecConfig record); |
|
|
|
int updateByPrimaryKey(SecSinopecConfig record); |
|
|
|