<?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.ks.app.mapper.AppWXInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.ks.app.entity.AppWXInfo" >
|
<id column="app_id" property="appId" jdbcType="BIGINT" />
|
<result column="wx_app_id" property="wxAppId" jdbcType="VARCHAR" />
|
<result column="wx_app_secret" property="wxAppSecret" jdbcType="VARCHAR" />
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
app_id, wx_app_id, wx_app_secret, create_time, update_time
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
select
|
<include refid="Base_Column_List" />
|
from app_wx_info
|
where app_id = #{appId,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
delete from app_wx_info
|
where app_id = #{appId,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.ks.app.entity.AppWXInfo" >
|
insert into app_wx_info (app_id, wx_app_id, wx_app_secret,
|
create_time, update_time)
|
values (#{appId,jdbcType=BIGINT}, #{wxAppId,jdbcType=VARCHAR}, #{wxAppSecret,jdbcType=VARCHAR},
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
</insert>
|
<insert id="insertSelective" parameterType="com.ks.app.entity.AppWXInfo" >
|
insert into app_wx_info
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="appId != null" >
|
app_id,
|
</if>
|
<if test="wxAppId != null" >
|
wx_app_id,
|
</if>
|
<if test="wxAppSecret != null" >
|
wx_app_secret,
|
</if>
|
<if test="createTime != null" >
|
create_time,
|
</if>
|
<if test="updateTime != null" >
|
update_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="appId != null" >
|
#{appId,jdbcType=BIGINT},
|
</if>
|
<if test="wxAppId != null" >
|
#{wxAppId,jdbcType=VARCHAR},
|
</if>
|
<if test="wxAppSecret != null" >
|
#{wxAppSecret,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null" >
|
#{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateTime != null" >
|
#{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.ks.app.entity.AppWXInfo" >
|
update app_wx_info
|
<set >
|
<if test="wxAppId != null" >
|
wx_app_id = #{wxAppId,jdbcType=VARCHAR},
|
</if>
|
<if test="wxAppSecret != null" >
|
wx_app_secret = #{wxAppSecret,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null" >
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateTime != null" >
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</set>
|
where app_id = #{appId,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.ks.app.entity.AppWXInfo" >
|
update app_wx_info
|
set wx_app_id = #{wxAppId,jdbcType=VARCHAR},
|
wx_app_secret = #{wxAppSecret,jdbcType=VARCHAR},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
where app_id = #{appId,jdbcType=BIGINT}
|
</update>
|
</mapper>
|