|
|
@ -4,6 +4,7 @@ |
|
|
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
<resultMap id="BaseResultMap" type="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
|
|
<result column="proj_org_id" jdbcType="BIGINT" property="projOrgId" /> |
|
|
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" /> |
|
|
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" /> |
|
|
<result column="parent_member_id" jdbcType="VARCHAR" property="parentMemberId" /> |
|
|
<result column="parent_member_id" jdbcType="VARCHAR" property="parentMemberId" /> |
|
|
<result column="member_name" jdbcType="VARCHAR" property="memberName" /> |
|
|
<result column="member_name" jdbcType="VARCHAR" property="memberName" /> |
|
|
@ -88,10 +89,10 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, user_id, kt_group_id, parent_member_id, member_name, member_phone, member_email, |
|
|
id, user_id, proj_org_id, kt_group_id, parent_member_id, member_name, member_phone, |
|
|
member_gender, member_birth, type, category, qualification, title, sort, intro, audit_status, |
|
|
member_email, member_gender, member_birth, type, category, qualification, title, |
|
|
member_status, del_flag, create_by, create_time, update_by, update_time, remark, |
|
|
sort, intro, audit_status, member_status, del_flag, create_by, create_time, update_by, |
|
|
enroll_time, graduation_time, reading_status |
|
|
update_time, remark, enroll_time, graduation_time, reading_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -118,24 +119,26 @@ |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
<insert id="insert" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
insert into kts_kt_group_member (id, user_id, kt_group_id, |
|
|
insert into kts_kt_group_member (id, user_id, proj_org_id, |
|
|
parent_member_id, member_name, member_phone, |
|
|
kt_group_id, parent_member_id, member_name, |
|
|
member_email, member_gender, member_birth, |
|
|
member_phone, member_email, member_gender, |
|
|
type, category, qualification, |
|
|
member_birth, type, category, |
|
|
title, sort, intro, |
|
|
qualification, title, sort, |
|
|
audit_status, member_status, del_flag, |
|
|
intro, audit_status, member_status, |
|
|
create_by, create_time, update_by, |
|
|
del_flag, create_by, create_time, |
|
|
update_time, remark, enroll_time, |
|
|
update_by, update_time, remark, |
|
|
graduation_time, reading_status) |
|
|
enroll_time, graduation_time, reading_status |
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{ktGroupId,jdbcType=BIGINT}, |
|
|
) |
|
|
#{parentMemberId,jdbcType=VARCHAR}, #{memberName,jdbcType=VARCHAR}, #{memberPhone,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT}, |
|
|
#{memberEmail,jdbcType=VARCHAR}, #{memberGender,jdbcType=TINYINT}, #{memberBirth,jdbcType=DATE}, |
|
|
#{ktGroupId,jdbcType=BIGINT}, #{parentMemberId,jdbcType=VARCHAR}, #{memberName,jdbcType=VARCHAR}, |
|
|
#{type,jdbcType=VARCHAR}, #{category,jdbcType=TINYINT}, #{qualification,jdbcType=INTEGER}, |
|
|
#{memberPhone,jdbcType=VARCHAR}, #{memberEmail,jdbcType=VARCHAR}, #{memberGender,jdbcType=TINYINT}, |
|
|
#{title,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{intro,jdbcType=VARCHAR}, |
|
|
#{memberBirth,jdbcType=DATE}, #{type,jdbcType=VARCHAR}, #{category,jdbcType=TINYINT}, |
|
|
#{auditStatus,jdbcType=TINYINT}, #{memberStatus,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, |
|
|
#{qualification,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, |
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|
|
#{intro,jdbcType=VARCHAR}, #{auditStatus,jdbcType=TINYINT}, #{memberStatus,jdbcType=TINYINT}, |
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{enrollTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{graduationTime,jdbcType=TIMESTAMP}, #{readingStatus,jdbcType=TINYINT}) |
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
#{enrollTime,jdbcType=TIMESTAMP}, #{graduationTime,jdbcType=TIMESTAMP}, #{readingStatus,jdbcType=TINYINT} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
insert into kts_kt_group_member |
|
|
insert into kts_kt_group_member |
|
|
@ -146,6 +149,9 @@ |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
user_id, |
|
|
user_id, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="projOrgId != null"> |
|
|
|
|
|
proj_org_id, |
|
|
|
|
|
</if> |
|
|
<if test="ktGroupId != null"> |
|
|
<if test="ktGroupId != null"> |
|
|
kt_group_id, |
|
|
kt_group_id, |
|
|
</if> |
|
|
</if> |
|
|
@ -226,6 +232,9 @@ |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
#{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="projOrgId != null"> |
|
|
|
|
|
#{projOrgId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="ktGroupId != null"> |
|
|
<if test="ktGroupId != null"> |
|
|
#{ktGroupId,jdbcType=BIGINT}, |
|
|
#{ktGroupId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
@ -315,6 +324,9 @@ |
|
|
<if test="record.userId != null"> |
|
|
<if test="record.userId != null"> |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.projOrgId != null"> |
|
|
|
|
|
proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="record.ktGroupId != null"> |
|
|
<if test="record.ktGroupId != null"> |
|
|
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
@ -396,6 +408,7 @@ |
|
|
update kts_kt_group_member |
|
|
update kts_kt_group_member |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
|
|
proj_org_id = #{record.projOrgId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT}, |
|
|
parent_member_id = #{record.parentMemberId,jdbcType=VARCHAR}, |
|
|
parent_member_id = #{record.parentMemberId,jdbcType=VARCHAR}, |
|
|
member_name = #{record.memberName,jdbcType=VARCHAR}, |
|
|
member_name = #{record.memberName,jdbcType=VARCHAR}, |
|
|
@ -430,6 +443,9 @@ |
|
|
<if test="userId != null"> |
|
|
<if test="userId != null"> |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="projOrgId != null"> |
|
|
|
|
|
proj_org_id = #{projOrgId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="ktGroupId != null"> |
|
|
<if test="ktGroupId != null"> |
|
|
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
@ -508,6 +524,7 @@ |
|
|
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
update kts_kt_group_member |
|
|
update kts_kt_group_member |
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
|
|
proj_org_id = #{projOrgId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|
|
kt_group_id = #{ktGroupId,jdbcType=BIGINT}, |
|
|
parent_member_id = #{parentMemberId,jdbcType=VARCHAR}, |
|
|
parent_member_id = #{parentMemberId,jdbcType=VARCHAR}, |
|
|
member_name = #{memberName,jdbcType=VARCHAR}, |
|
|
member_name = #{memberName,jdbcType=VARCHAR}, |
|
|
|