|
|
|
@ -27,6 +27,7 @@ |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
<result column="enroll_time" jdbcType="TIMESTAMP" property="enrollTime" /> |
|
|
|
<result column="graduation_time" jdbcType="TIMESTAMP" property="graduationTime" /> |
|
|
|
<result column="reading_status" jdbcType="TINYINT" property="readingStatus" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
|
@ -90,7 +91,7 @@ |
|
|
|
id, user_id, kt_group_id, parent_member_id, member_name, member_phone, member_email, |
|
|
|
member_gender, member_birth, type, category, qualification, title, sort, intro, audit_status, |
|
|
|
member_status, del_flag, create_by, create_time, update_by, update_time, remark, |
|
|
|
enroll_time, graduation_time |
|
|
|
enroll_time, graduation_time, reading_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
@ -125,7 +126,7 @@ |
|
|
|
audit_status, member_status, del_flag, |
|
|
|
create_by, create_time, update_by, |
|
|
|
update_time, remark, enroll_time, |
|
|
|
graduation_time) |
|
|
|
graduation_time, reading_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{ktGroupId,jdbcType=BIGINT}, |
|
|
|
#{parentMemberId,jdbcType=VARCHAR}, #{memberName,jdbcType=VARCHAR}, #{memberPhone,jdbcType=VARCHAR}, |
|
|
|
#{memberEmail,jdbcType=VARCHAR}, #{memberGender,jdbcType=TINYINT}, #{memberBirth,jdbcType=DATE}, |
|
|
|
@ -134,7 +135,7 @@ |
|
|
|
#{auditStatus,jdbcType=TINYINT}, #{memberStatus,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, |
|
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{enrollTime,jdbcType=TIMESTAMP}, |
|
|
|
#{graduationTime,jdbcType=TIMESTAMP}) |
|
|
|
#{graduationTime,jdbcType=TIMESTAMP}, #{readingStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.research.system.domain.po.KtsKtGroupMember"> |
|
|
|
insert into kts_kt_group_member |
|
|
|
@ -214,6 +215,9 @@ |
|
|
|
<if test="graduationTime != null"> |
|
|
|
graduation_time, |
|
|
|
</if> |
|
|
|
<if test="readingStatus != null"> |
|
|
|
reading_status, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
@ -291,6 +295,9 @@ |
|
|
|
<if test="graduationTime != null"> |
|
|
|
#{graduationTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="readingStatus != null"> |
|
|
|
#{readingStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.research.system.domain.po.KtsKtGroupMemberExample" resultType="java.lang.Long"> |
|
|
|
@ -377,6 +384,9 @@ |
|
|
|
<if test="record.graduationTime != null"> |
|
|
|
graduation_time = #{record.graduationTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="record.readingStatus != null"> |
|
|
|
reading_status = #{record.readingStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
@ -408,7 +418,8 @@ |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
enroll_time = #{record.enrollTime,jdbcType=TIMESTAMP}, |
|
|
|
graduation_time = #{record.graduationTime,jdbcType=TIMESTAMP} |
|
|
|
graduation_time = #{record.graduationTime,jdbcType=TIMESTAMP}, |
|
|
|
reading_status = #{record.readingStatus,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
@ -488,6 +499,9 @@ |
|
|
|
<if test="graduationTime != null"> |
|
|
|
graduation_time = #{graduationTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="readingStatus != null"> |
|
|
|
reading_status = #{readingStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
@ -516,7 +530,8 @@ |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
enroll_time = #{enrollTime,jdbcType=TIMESTAMP}, |
|
|
|
graduation_time = #{graduationTime,jdbcType=TIMESTAMP} |
|
|
|
graduation_time = #{graduationTime,jdbcType=TIMESTAMP}, |
|
|
|
reading_status = #{readingStatus,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |