<?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.nuvole.four.mapper.ChannelOrgConfigMapper" >
|
<resultMap id="BaseResultMap" type="com.nuvole.four.domain.ChannelOrgConfig" >
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="org_id" property="orgId" jdbcType="BIGINT" />
|
<result column="org_name" property="orgName" jdbcType="VARCHAR" />
|
<result column="p_org_name" property="pOrgName" jdbcType="VARCHAR" />
|
<result column="channel_info_id" property="channelInfoId" jdbcType="BIGINT" />
|
<result column="default_or_not" property="defaultOrNot" jdbcType="INTEGER" />
|
<result column="status" property="status" jdbcType="INTEGER" />
|
<result column="create_by" property="createBy" jdbcType="BIGINT" />
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
<result column="update_by" property="updateBy" jdbcType="BIGINT" />
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
id, org_id, org_name, p_org_name, channel_info_id, default_or_not, status, create_by, create_time, update_by, update_time
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
select
|
<include refid="Base_Column_List" />
|
from channel_org_config
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
delete from channel_org_config
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.nuvole.four.domain.ChannelOrgConfig" >
|
insert into channel_org_config (
|
id,
|
org_id,
|
org_name,
|
p_org_name,
|
channel_info_id,
|
default_or_not,
|
status,
|
create_by,
|
create_time,
|
update_by,
|
update_time
|
)
|
values (
|
#{id,jdbcType=BIGINT},
|
#{orgId,jdbcType=BIGINT},
|
#{orgName,jdbcType=VARCHAR},
|
#{pOrgName,jdbcType=VARCHAR},
|
#{channelInfoId,jdbcType=BIGINT},
|
#{defaultOrNot,jdbcType=INTEGER},
|
#{status,jdbcType=INTEGER},
|
#{createBy,jdbcType=BIGINT},
|
#{createTime,jdbcType=TIMESTAMP},
|
#{updateBy,jdbcType=BIGINT},
|
#{updateTime,jdbcType=TIMESTAMP}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.nuvole.four.domain.ChannelOrgConfig" >
|
insert into channel_org_config
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
id,
|
</if>
|
<if test="orgId != null" >
|
org_id,
|
</if>
|
<if test="orgName != null" >
|
org_name,
|
</if>
|
<if test="pOrgName != null" >
|
p_org_name,
|
</if>
|
<if test="channelInfoId != null" >
|
channel_info_id,
|
</if>
|
<if test="defaultOrNot != null" >
|
default_or_not,
|
</if>
|
<if test="status != null" >
|
status,
|
</if>
|
<if test="createBy != null" >
|
create_by,
|
</if>
|
<if test="createTime != null" >
|
create_time,
|
</if>
|
<if test="updateBy != null" >
|
update_by,
|
</if>
|
<if test="updateTime != null" >
|
update_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
#{id,jdbcType=BIGINT},
|
</if>
|
<if test="orgId != null" >
|
#{orgId,jdbcType=BIGINT},
|
</if>
|
<if test="orgName != null" >
|
#{orgName,jdbcType=VARCHAR},
|
</if>
|
<if test="pOrgName != null" >
|
#{pOrgName,jdbcType=VARCHAR},
|
</if>
|
<if test="channelInfoId != null" >
|
#{channelInfoId,jdbcType=BIGINT},
|
</if>
|
<if test="defaultOrNot != null" >
|
#{defaultOrNot,jdbcType=INTEGER},
|
</if>
|
<if test="status != null" >
|
#{status,jdbcType=INTEGER},
|
</if>
|
<if test="createBy != null" >
|
#{createBy,jdbcType=BIGINT},
|
</if>
|
<if test="createTime != null" >
|
#{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null" >
|
#{updateBy,jdbcType=BIGINT},
|
</if>
|
<if test="updateTime != null" >
|
#{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ChannelOrgConfig" >
|
update channel_org_config
|
<set >
|
<if test="orgId != null" >
|
org_id = #{orgId,jdbcType=BIGINT},
|
</if>
|
<if test="orgName != null" >
|
org_name = #{orgName,jdbcType=VARCHAR},
|
</if>
|
<if test="pOrgName != null" >
|
p_org_name = #{pOrgName,jdbcType=VARCHAR},
|
</if>
|
<if test="channelInfoId != null" >
|
channel_info_id = #{channelInfoId,jdbcType=BIGINT},
|
</if>
|
<if test="defaultOrNot != null" >
|
default_or_not = #{defaultOrNot,jdbcType=INTEGER},
|
</if>
|
<if test="status != null" >
|
status = #{status,jdbcType=INTEGER},
|
</if>
|
<if test="createBy != null" >
|
create_by = #{createBy,jdbcType=BIGINT},
|
</if>
|
<if test="createTime != null" >
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null" >
|
update_by = #{updateBy,jdbcType=BIGINT},
|
</if>
|
<if test="updateTime != null" >
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ChannelOrgConfig" >
|
update channel_org_config
|
set
|
org_id = #{orgId,jdbcType=BIGINT},
|
org_name = #{orgName,jdbcType=VARCHAR},
|
p_org_name = #{pOrgName,jdbcType=VARCHAR},
|
channel_info_id = #{channelInfoId,jdbcType=BIGINT},
|
default_or_not = #{defaultOrNot,jdbcType=INTEGER},
|
status = #{status,jdbcType=INTEGER},
|
create_by = #{createBy,jdbcType=BIGINT},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
update_by = #{updateBy,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|