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.
 
 

370 lines
14 KiB

<?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.ccsens.tall.persist.mapper.SysDomainMapper">
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysDomain">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="domain_name" jdbcType="VARCHAR" property="domainName" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
<result column="system_name" jdbcType="VARCHAR" property="systemName" />
<result column="backdrop_url" jdbcType="VARCHAR" property="backdropUrl" />
<result column="show_calendar" jdbcType="TINYINT" property="showCalendar" />
<result column="show_project_id" jdbcType="BIGINT" property="showProjectId" />
<result column="caption" jdbcType="VARCHAR" property="caption" />
<result column="headline" jdbcType="VARCHAR" property="headline" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
<result column="forever_project_id" jdbcType="VARCHAR" property="foreverProjectId" />
<result column="navigation_bar" jdbcType="TINYINT" property="navigationBar" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, domain_name, logo, company_name, system_name, backdrop_url, show_calendar, show_project_id,
caption, headline, created_at, updated_at, rec_status, forever_project_id, navigation_bar
</sql>
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysDomainExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_sys_domain
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_sys_domain
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_sys_domain
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysDomainExample">
delete from t_sys_domain
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysDomain">
insert into t_sys_domain (id, domain_name, logo,
company_name, system_name, backdrop_url,
show_calendar, show_project_id, caption,
headline, created_at, updated_at,
rec_status, forever_project_id, navigation_bar
)
values (#{id,jdbcType=BIGINT}, #{domainName,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
#{companyName,jdbcType=VARCHAR}, #{systemName,jdbcType=VARCHAR}, #{backdropUrl,jdbcType=VARCHAR},
#{showCalendar,jdbcType=TINYINT}, #{showProjectId,jdbcType=BIGINT}, #{caption,jdbcType=VARCHAR},
#{headline,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}, #{foreverProjectId,jdbcType=VARCHAR}, #{navigationBar,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysDomain">
insert into t_sys_domain
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="domainName != null">
domain_name,
</if>
<if test="logo != null">
logo,
</if>
<if test="companyName != null">
company_name,
</if>
<if test="systemName != null">
system_name,
</if>
<if test="backdropUrl != null">
backdrop_url,
</if>
<if test="showCalendar != null">
show_calendar,
</if>
<if test="showProjectId != null">
show_project_id,
</if>
<if test="caption != null">
caption,
</if>
<if test="headline != null">
headline,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="recStatus != null">
rec_status,
</if>
<if test="foreverProjectId != null">
forever_project_id,
</if>
<if test="navigationBar != null">
navigation_bar,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="domainName != null">
#{domainName,jdbcType=VARCHAR},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
#{companyName,jdbcType=VARCHAR},
</if>
<if test="systemName != null">
#{systemName,jdbcType=VARCHAR},
</if>
<if test="backdropUrl != null">
#{backdropUrl,jdbcType=VARCHAR},
</if>
<if test="showCalendar != null">
#{showCalendar,jdbcType=TINYINT},
</if>
<if test="showProjectId != null">
#{showProjectId,jdbcType=BIGINT},
</if>
<if test="caption != null">
#{caption,jdbcType=VARCHAR},
</if>
<if test="headline != null">
#{headline,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
<if test="foreverProjectId != null">
#{foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="navigationBar != null">
#{navigationBar,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysDomainExample" resultType="java.lang.Long">
select count(*) from t_sys_domain
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_sys_domain
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.domainName != null">
domain_name = #{record.domainName,jdbcType=VARCHAR},
</if>
<if test="record.logo != null">
logo = #{record.logo,jdbcType=VARCHAR},
</if>
<if test="record.companyName != null">
company_name = #{record.companyName,jdbcType=VARCHAR},
</if>
<if test="record.systemName != null">
system_name = #{record.systemName,jdbcType=VARCHAR},
</if>
<if test="record.backdropUrl != null">
backdrop_url = #{record.backdropUrl,jdbcType=VARCHAR},
</if>
<if test="record.showCalendar != null">
show_calendar = #{record.showCalendar,jdbcType=TINYINT},
</if>
<if test="record.showProjectId != null">
show_project_id = #{record.showProjectId,jdbcType=BIGINT},
</if>
<if test="record.caption != null">
caption = #{record.caption,jdbcType=VARCHAR},
</if>
<if test="record.headline != null">
headline = #{record.headline,jdbcType=VARCHAR},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedAt != null">
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
<if test="record.foreverProjectId != null">
forever_project_id = #{record.foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="record.navigationBar != null">
navigation_bar = #{record.navigationBar,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_sys_domain
set id = #{record.id,jdbcType=BIGINT},
domain_name = #{record.domainName,jdbcType=VARCHAR},
logo = #{record.logo,jdbcType=VARCHAR},
company_name = #{record.companyName,jdbcType=VARCHAR},
system_name = #{record.systemName,jdbcType=VARCHAR},
backdrop_url = #{record.backdropUrl,jdbcType=VARCHAR},
show_calendar = #{record.showCalendar,jdbcType=TINYINT},
show_project_id = #{record.showProjectId,jdbcType=BIGINT},
caption = #{record.caption,jdbcType=VARCHAR},
headline = #{record.headline,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT},
forever_project_id = #{record.foreverProjectId,jdbcType=VARCHAR},
navigation_bar = #{record.navigationBar,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysDomain">
update t_sys_domain
<set>
<if test="domainName != null">
domain_name = #{domainName,jdbcType=VARCHAR},
</if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="companyName != null">
company_name = #{companyName,jdbcType=VARCHAR},
</if>
<if test="systemName != null">
system_name = #{systemName,jdbcType=VARCHAR},
</if>
<if test="backdropUrl != null">
backdrop_url = #{backdropUrl,jdbcType=VARCHAR},
</if>
<if test="showCalendar != null">
show_calendar = #{showCalendar,jdbcType=TINYINT},
</if>
<if test="showProjectId != null">
show_project_id = #{showProjectId,jdbcType=BIGINT},
</if>
<if test="caption != null">
caption = #{caption,jdbcType=VARCHAR},
</if>
<if test="headline != null">
headline = #{headline,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
<if test="foreverProjectId != null">
forever_project_id = #{foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="navigationBar != null">
navigation_bar = #{navigationBar,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysDomain">
update t_sys_domain
set domain_name = #{domainName,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
company_name = #{companyName,jdbcType=VARCHAR},
system_name = #{systemName,jdbcType=VARCHAR},
backdrop_url = #{backdropUrl,jdbcType=VARCHAR},
show_calendar = #{showCalendar,jdbcType=TINYINT},
show_project_id = #{showProjectId,jdbcType=BIGINT},
caption = #{caption,jdbcType=VARCHAR},
headline = #{headline,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT},
forever_project_id = #{foreverProjectId,jdbcType=VARCHAR},
navigation_bar = #{navigationBar,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>