嗨森逛服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-server/hai-service/src/main/java/com/hai/dao/SecSinopecConfigMapper.java

106 lines
4.6 KiB

4 years ago
package com.hai.dao;
import com.hai.entity.SecSinopecConfig;
import com.hai.entity.SecSinopecConfigExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
/**
*
* 代码由工具生成,请勿修改!!!
* 如果需要扩展请在其父类进行扩展
*
**/
@Repository
public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt {
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="countByExample")
long countByExample(SecSinopecConfigExample example);
@DeleteProvider(type=SecSinopecConfigSqlProvider.class, method="deleteByExample")
int deleteByExample(SecSinopecConfigExample example);
@Delete({
"delete from sec_sinopec_config",
"where id = #{id,jdbcType=INTEGER}"
})
int deleteByPrimaryKey(Integer id);
@Insert({
4 years ago
"insert into sec_sinopec_config (`name`, app_secret, ",
4 years ago
"code, create_time, ",
4 years ago
"SignKey, app_id)",
"values (#{name,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ",
4 years ago
"#{code,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
4 years ago
"#{signkey,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR})"
4 years ago
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(SecSinopecConfig record);
@InsertProvider(type=SecSinopecConfigSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="id")
int insertSelective(SecSinopecConfig record);
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
4 years ago
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR),
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR)
4 years ago
})
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example);
@Select({
"select",
4 years ago
"id, `name`, app_secret, code, create_time, SignKey, app_id",
4 years ago
"from sec_sinopec_config",
"where id = #{id,jdbcType=INTEGER}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
4 years ago
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR),
4 years ago
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
4 years ago
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR),
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR)
4 years ago
})
SecSinopecConfig selectByPrimaryKey(Integer id);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") SecSinopecConfig record, @Param("example") SecSinopecConfigExample example);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") SecSinopecConfig record, @Param("example") SecSinopecConfigExample example);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(SecSinopecConfig record);
@Update({
"update sec_sinopec_config",
4 years ago
"set `name` = #{name,jdbcType=VARCHAR},",
4 years ago
"app_secret = #{appSecret,jdbcType=VARCHAR},",
4 years ago
"code = #{code,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
4 years ago
"SignKey = #{signkey,jdbcType=VARCHAR},",
"app_id = #{appId,jdbcType=VARCHAR}",
4 years ago
"where id = #{id,jdbcType=INTEGER}"
})
int updateByPrimaryKey(SecSinopecConfig record);
2 years ago
}