123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.book.dao.cps.mapper.PlatformMapper">
- <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Platform">
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="name" jdbcType="VARCHAR" property="name" />
- <result column="appid" jdbcType="VARCHAR" property="appid" />
- <result column="secret" jdbcType="VARCHAR" property="secret" />
- <result column="token" jdbcType="VARCHAR" property="token" />
- <result column="aes_key" jdbcType="VARCHAR" property="aesKey" />
- <result column="platfile" jdbcType="VARCHAR" property="platfile" />
- <result column="status" jdbcType="OTHER" property="status" />
- <result column="p_desc" jdbcType="VARCHAR" property="pDesc" />
- <result column="isdefault" jdbcType="OTHER" property="isdefault" />
- <result column="createtime" jdbcType="INTEGER" property="createtime" />
- <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
- <result column="authhost" jdbcType="VARCHAR" property="authhost" />
- <result column="proxy_config" jdbcType="VARCHAR" property="proxyConfig" />
- <result column="job_proxy_config" jdbcType="VARCHAR" property="jobProxyConfig" />
- </resultMap>
- <sql id="Base_Column_List">
- id, `name`, appid, secret, token, aes_key, platfile, `status`, p_desc, isdefault,
- createtime, updatetime, authhost, proxy_config, job_proxy_config
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from platform
- where id = #{id,jdbcType=INTEGER}
- </select>
- <select id="selectAll" resultType="com.book.dao.cps.pojo.Platform">
- SELECT * FROM platform;
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from platform
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Platform" useGeneratedKeys="true">
- insert into platform (`name`, appid, secret,
- token, aes_key, platfile,
- `status`, p_desc, isdefault,
- createtime, updatetime, authhost,
- proxy_config, job_proxy_config)
- values (#{name,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, #{secret,jdbcType=VARCHAR},
- #{token,jdbcType=VARCHAR}, #{aesKey,jdbcType=VARCHAR}, #{platfile,jdbcType=VARCHAR},
- #{status,jdbcType=OTHER}, #{pDesc,jdbcType=VARCHAR}, #{isdefault,jdbcType=OTHER},
- #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}, #{authhost,jdbcType=VARCHAR},
- #{proxyConfig,jdbcType=VARCHAR}, #{jobProxyConfig,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Platform" useGeneratedKeys="true">
- insert into platform
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="name != null">
- `name`,
- </if>
- <if test="appid != null">
- appid,
- </if>
- <if test="secret != null">
- secret,
- </if>
- <if test="token != null">
- token,
- </if>
- <if test="aesKey != null">
- aes_key,
- </if>
- <if test="platfile != null">
- platfile,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="pDesc != null">
- p_desc,
- </if>
- <if test="isdefault != null">
- isdefault,
- </if>
- <if test="createtime != null">
- createtime,
- </if>
- <if test="updatetime != null">
- updatetime,
- </if>
- <if test="authhost != null">
- authhost,
- </if>
- <if test="proxyConfig != null">
- proxy_config,
- </if>
- <if test="jobProxyConfig != null">
- job_proxy_config,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="name != null">
- #{name,jdbcType=VARCHAR},
- </if>
- <if test="appid != null">
- #{appid,jdbcType=VARCHAR},
- </if>
- <if test="secret != null">
- #{secret,jdbcType=VARCHAR},
- </if>
- <if test="token != null">
- #{token,jdbcType=VARCHAR},
- </if>
- <if test="aesKey != null">
- #{aesKey,jdbcType=VARCHAR},
- </if>
- <if test="platfile != null">
- #{platfile,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=OTHER},
- </if>
- <if test="pDesc != null">
- #{pDesc,jdbcType=VARCHAR},
- </if>
- <if test="isdefault != null">
- #{isdefault,jdbcType=OTHER},
- </if>
- <if test="createtime != null">
- #{createtime,jdbcType=INTEGER},
- </if>
- <if test="updatetime != null">
- #{updatetime,jdbcType=INTEGER},
- </if>
- <if test="authhost != null">
- #{authhost,jdbcType=VARCHAR},
- </if>
- <if test="proxyConfig != null">
- #{proxyConfig,jdbcType=VARCHAR},
- </if>
- <if test="jobProxyConfig != null">
- #{jobProxyConfig,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Platform">
- update platform
- <set>
- <if test="name != null">
- `name` = #{name,jdbcType=VARCHAR},
- </if>
- <if test="appid != null">
- appid = #{appid,jdbcType=VARCHAR},
- </if>
- <if test="secret != null">
- secret = #{secret,jdbcType=VARCHAR},
- </if>
- <if test="token != null">
- token = #{token,jdbcType=VARCHAR},
- </if>
- <if test="aesKey != null">
- aes_key = #{aesKey,jdbcType=VARCHAR},
- </if>
- <if test="platfile != null">
- platfile = #{platfile,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- `status` = #{status,jdbcType=OTHER},
- </if>
- <if test="pDesc != null">
- p_desc = #{pDesc,jdbcType=VARCHAR},
- </if>
- <if test="isdefault != null">
- isdefault = #{isdefault,jdbcType=OTHER},
- </if>
- <if test="createtime != null">
- createtime = #{createtime,jdbcType=INTEGER},
- </if>
- <if test="updatetime != null">
- updatetime = #{updatetime,jdbcType=INTEGER},
- </if>
- <if test="authhost != null">
- authhost = #{authhost,jdbcType=VARCHAR},
- </if>
- <if test="proxyConfig != null">
- proxy_config = #{proxyConfig,jdbcType=VARCHAR},
- </if>
- <if test="jobProxyConfig != null">
- job_proxy_config = #{jobProxyConfig,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Platform">
- update platform
- set `name` = #{name,jdbcType=VARCHAR},
- appid = #{appid,jdbcType=VARCHAR},
- secret = #{secret,jdbcType=VARCHAR},
- token = #{token,jdbcType=VARCHAR},
- aes_key = #{aesKey,jdbcType=VARCHAR},
- platfile = #{platfile,jdbcType=VARCHAR},
- `status` = #{status,jdbcType=OTHER},
- p_desc = #{pDesc,jdbcType=VARCHAR},
- isdefault = #{isdefault,jdbcType=OTHER},
- createtime = #{createtime,jdbcType=INTEGER},
- updatetime = #{updatetime,jdbcType=INTEGER},
- authhost = #{authhost,jdbcType=VARCHAR},
- proxy_config = #{proxyConfig,jdbcType=VARCHAR},
- job_proxy_config = #{jobProxyConfig,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|