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.
490 lines
18 KiB
490 lines
18 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.research.system.persist.mapper.KtsKtGroupMemberAduitMapper">
|
|
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtsKtGroupMemberAduit">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="category" jdbcType="BIGINT" property="category" />
|
|
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
|
<result column="kt_group_intro" jdbcType="VARCHAR" property="ktGroupIntro" />
|
|
<result column="member_birth" jdbcType="VARCHAR" property="memberBirth" />
|
|
<result column="member_email" jdbcType="TINYINT" property="memberEmail" />
|
|
<result column="member_gender" jdbcType="DATE" property="memberGender" />
|
|
<result column="member_name" jdbcType="TINYINT" property="memberName" />
|
|
<result column="member_phone" jdbcType="TINYINT" property="memberPhone" />
|
|
<result column="parent_member_id" jdbcType="INTEGER" property="parentMemberId" />
|
|
<result column="password" jdbcType="INTEGER" property="password" />
|
|
<result column="proj_org_id" jdbcType="INTEGER" property="projOrgId" />
|
|
<result column="role_id_list" jdbcType="VARCHAR" property="roleIdList" />
|
|
<result column="title" jdbcType="TINYINT" property="title" />
|
|
<result column="type" jdbcType="TINYINT" property="type" />
|
|
<result column="user_id" jdbcType="TINYINT" property="userId" />
|
|
<result column="username" jdbcType="TINYINT" property="username" />
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
</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, category, dept_id, kt_group_intro, member_birth, member_email, member_gender,
|
|
member_name, member_phone, parent_member_id, password, proj_org_id, role_id_list,
|
|
title, type, user_id, username, del_flag, create_by, create_time, update_by, update_time,
|
|
remark
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduitExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from kts_kt_group_member_aduit
|
|
<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 kts_kt_group_member_aduit
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from kts_kt_group_member_aduit
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduit">
|
|
insert into kts_kt_group_member_aduit (id, category, dept_id,
|
|
kt_group_intro, member_birth, member_email,
|
|
member_gender, member_name, member_phone,
|
|
parent_member_id, password, proj_org_id,
|
|
role_id_list, title, type,
|
|
user_id, username, del_flag,
|
|
create_by, create_time, update_by,
|
|
update_time, remark)
|
|
values (#{id,jdbcType=BIGINT}, #{category,jdbcType=BIGINT}, #{deptId,jdbcType=BIGINT},
|
|
#{ktGroupIntro,jdbcType=VARCHAR}, #{memberBirth,jdbcType=VARCHAR}, #{memberEmail,jdbcType=TINYINT},
|
|
#{memberGender,jdbcType=DATE}, #{memberName,jdbcType=TINYINT}, #{memberPhone,jdbcType=TINYINT},
|
|
#{parentMemberId,jdbcType=INTEGER}, #{password,jdbcType=INTEGER}, #{projOrgId,jdbcType=INTEGER},
|
|
#{roleIdList,jdbcType=VARCHAR}, #{title,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
|
|
#{userId,jdbcType=TINYINT}, #{username,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT},
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduit">
|
|
insert into kts_kt_group_member_aduit
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="category != null">
|
|
category,
|
|
</if>
|
|
<if test="deptId != null">
|
|
dept_id,
|
|
</if>
|
|
<if test="ktGroupIntro != null">
|
|
kt_group_intro,
|
|
</if>
|
|
<if test="memberBirth != null">
|
|
member_birth,
|
|
</if>
|
|
<if test="memberEmail != null">
|
|
member_email,
|
|
</if>
|
|
<if test="memberGender != null">
|
|
member_gender,
|
|
</if>
|
|
<if test="memberName != null">
|
|
member_name,
|
|
</if>
|
|
<if test="memberPhone != null">
|
|
member_phone,
|
|
</if>
|
|
<if test="parentMemberId != null">
|
|
parent_member_id,
|
|
</if>
|
|
<if test="password != null">
|
|
password,
|
|
</if>
|
|
<if test="projOrgId != null">
|
|
proj_org_id,
|
|
</if>
|
|
<if test="roleIdList != null">
|
|
role_id_list,
|
|
</if>
|
|
<if test="title != null">
|
|
title,
|
|
</if>
|
|
<if test="type != null">
|
|
type,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="username != null">
|
|
username,
|
|
</if>
|
|
<if test="delFlag != null">
|
|
del_flag,
|
|
</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>
|
|
<if test="remark != null">
|
|
remark,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="category != null">
|
|
#{category,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="deptId != null">
|
|
#{deptId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="ktGroupIntro != null">
|
|
#{ktGroupIntro,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="memberBirth != null">
|
|
#{memberBirth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="memberEmail != null">
|
|
#{memberEmail,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="memberGender != null">
|
|
#{memberGender,jdbcType=DATE},
|
|
</if>
|
|
<if test="memberName != null">
|
|
#{memberName,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="memberPhone != null">
|
|
#{memberPhone,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="parentMemberId != null">
|
|
#{parentMemberId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="password != null">
|
|
#{password,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="projOrgId != null">
|
|
#{projOrgId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="roleIdList != null">
|
|
#{roleIdList,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="title != null">
|
|
#{title,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="type != null">
|
|
#{type,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="username != null">
|
|
#{username,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="delFlag != null">
|
|
#{delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
#{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="remark != null">
|
|
#{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduitExample" resultType="java.lang.Long">
|
|
select count(*) from kts_kt_group_member_aduit
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update kts_kt_group_member_aduit
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.category != null">
|
|
category = #{record.category,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.deptId != null">
|
|
dept_id = #{record.deptId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.ktGroupIntro != null">
|
|
kt_group_intro = #{record.ktGroupIntro,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.memberBirth != null">
|
|
member_birth = #{record.memberBirth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.memberEmail != null">
|
|
member_email = #{record.memberEmail,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.memberGender != null">
|
|
member_gender = #{record.memberGender,jdbcType=DATE},
|
|
</if>
|
|
<if test="record.memberName != null">
|
|
member_name = #{record.memberName,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.memberPhone != null">
|
|
member_phone = #{record.memberPhone,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.parentMemberId != null">
|
|
parent_member_id = #{record.parentMemberId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.password != null">
|
|
password = #{record.password,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.projOrgId != null">
|
|
proj_org_id = #{record.projOrgId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.roleIdList != null">
|
|
role_id_list = #{record.roleIdList,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.title != null">
|
|
title = #{record.title,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.type != null">
|
|
type = #{record.type,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.username != null">
|
|
username = #{record.username,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.delFlag != null">
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="record.createBy != null">
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.updateBy != null">
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.updateTime != null">
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.remark != null">
|
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update kts_kt_group_member_aduit
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
category = #{record.category,jdbcType=BIGINT},
|
|
dept_id = #{record.deptId,jdbcType=BIGINT},
|
|
kt_group_intro = #{record.ktGroupIntro,jdbcType=VARCHAR},
|
|
member_birth = #{record.memberBirth,jdbcType=VARCHAR},
|
|
member_email = #{record.memberEmail,jdbcType=TINYINT},
|
|
member_gender = #{record.memberGender,jdbcType=DATE},
|
|
member_name = #{record.memberName,jdbcType=TINYINT},
|
|
member_phone = #{record.memberPhone,jdbcType=TINYINT},
|
|
parent_member_id = #{record.parentMemberId,jdbcType=INTEGER},
|
|
password = #{record.password,jdbcType=INTEGER},
|
|
proj_org_id = #{record.projOrgId,jdbcType=INTEGER},
|
|
role_id_list = #{record.roleIdList,jdbcType=VARCHAR},
|
|
title = #{record.title,jdbcType=TINYINT},
|
|
type = #{record.type,jdbcType=TINYINT},
|
|
user_id = #{record.userId,jdbcType=TINYINT},
|
|
username = #{record.username,jdbcType=TINYINT},
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT},
|
|
create_by = #{record.createBy,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR},
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{record.remark,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduit">
|
|
update kts_kt_group_member_aduit
|
|
<set>
|
|
<if test="category != null">
|
|
category = #{category,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="deptId != null">
|
|
dept_id = #{deptId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="ktGroupIntro != null">
|
|
kt_group_intro = #{ktGroupIntro,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="memberBirth != null">
|
|
member_birth = #{memberBirth,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="memberEmail != null">
|
|
member_email = #{memberEmail,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="memberGender != null">
|
|
member_gender = #{memberGender,jdbcType=DATE},
|
|
</if>
|
|
<if test="memberName != null">
|
|
member_name = #{memberName,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="memberPhone != null">
|
|
member_phone = #{memberPhone,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="parentMemberId != null">
|
|
parent_member_id = #{parentMemberId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="password != null">
|
|
password = #{password,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="projOrgId != null">
|
|
proj_org_id = #{projOrgId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="roleIdList != null">
|
|
role_id_list = #{roleIdList,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="title != null">
|
|
title = #{title,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="type != null">
|
|
type = #{type,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="username != null">
|
|
username = #{username,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="delFlag != null">
|
|
del_flag = #{delFlag,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="createBy != null">
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateBy != null">
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="remark != null">
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtsKtGroupMemberAduit">
|
|
update kts_kt_group_member_aduit
|
|
set category = #{category,jdbcType=BIGINT},
|
|
dept_id = #{deptId,jdbcType=BIGINT},
|
|
kt_group_intro = #{ktGroupIntro,jdbcType=VARCHAR},
|
|
member_birth = #{memberBirth,jdbcType=VARCHAR},
|
|
member_email = #{memberEmail,jdbcType=TINYINT},
|
|
member_gender = #{memberGender,jdbcType=DATE},
|
|
member_name = #{memberName,jdbcType=TINYINT},
|
|
member_phone = #{memberPhone,jdbcType=TINYINT},
|
|
parent_member_id = #{parentMemberId,jdbcType=INTEGER},
|
|
password = #{password,jdbcType=INTEGER},
|
|
proj_org_id = #{projOrgId,jdbcType=INTEGER},
|
|
role_id_list = #{roleIdList,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=TINYINT},
|
|
type = #{type,jdbcType=TINYINT},
|
|
user_id = #{userId,jdbcType=TINYINT},
|
|
username = #{username,jdbcType=TINYINT},
|
|
del_flag = #{delFlag,jdbcType=TINYINT},
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
remark = #{remark,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper>
|