|
@@ -6,33 +6,59 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TStFeedback" id="TStFeedbackResult">
|
|
|
<result property="id" column="id" />
|
|
|
- <result property="successorComment" column="successor_comment" />
|
|
|
- <result property="updaterCode" column="updater_code" />
|
|
|
- <result property="updatedate" column="updatedate" />
|
|
|
- <result property="createrCode" column="creater_code" />
|
|
|
- <result property="createdate" column="createdate" />
|
|
|
- <result property="feecbackType" column="feecback_type" />
|
|
|
+ <result property="feedbackType" column="feedback_type" />
|
|
|
+ <result property="mentorId" column="mentor_id" />
|
|
|
+ <result property="successorId" column="successor_id" />
|
|
|
+ <result property="parentId" column="parent_id" />
|
|
|
+ <result property="planId" column="plan_id" />
|
|
|
+ <result property="feedbackYear" column="feedback_year" />
|
|
|
+ <result property="feedbackSeason" column="feedback_season" />
|
|
|
+ <result property="feedbackMonth" column="feedback_month" />
|
|
|
+ <result property="successorFeedback" column="successor_feedback" />
|
|
|
+ <result property="mentorFeedback" column="mentor_feedback" />
|
|
|
+ <result property="feedbackScore" column="feedback_score" />
|
|
|
+ <result property="feedbackStatus" column="feedback_status" />
|
|
|
+ <result property="meetingDate" column="meeting_date" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTStFeedbackVo">
|
|
|
- select d.id, d.successor_comment, d.updater_code, d.updatedate, d.creater_code, d.createdate, d.feecback_type ,s.dept_name from t_st_feedback d
|
|
|
- left join sys_dept s on s.dept_id = d.dept_id
|
|
|
+ select
|
|
|
+ d.id,
|
|
|
+ d.feedback_type,
|
|
|
+ d.mentor_id,
|
|
|
+ d.successor_id,
|
|
|
+ d.parent_id,
|
|
|
+ d.plan_id,
|
|
|
+ d.feedback_year,
|
|
|
+ d.feedback_season,
|
|
|
+ d.feedback_month,
|
|
|
+ d.successor_feedback,
|
|
|
+ d.mentor_feedback,
|
|
|
+ d.feedback_score,
|
|
|
+ d.feedback_status,
|
|
|
+ d.meeting_date
|
|
|
+ from
|
|
|
+ t_st_feedback d
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTStFeedbackList" parameterType="TStFeedback" resultMap="TStFeedbackResult">
|
|
|
<include refid="selectTStFeedbackVo"/>
|
|
|
<where>
|
|
|
- <if test="successorComment != null and successorComment != ''"> and successor_comment = #{successorComment}</if>
|
|
|
- <if test="updaterCode != null and updaterCode != ''"> and updater_code = #{updaterCode}</if>
|
|
|
- <if test="updatedate != null "> and updatedate = #{updatedate}</if>
|
|
|
- <if test="createrCode != null and createrCode != ''"> and creater_code = #{createrCode}</if>
|
|
|
- <if test="createdate != null "> and createdate = #{createdate}</if>
|
|
|
- <if test="feecbackType != null "> and feecback_type = #{feecbackType}</if>
|
|
|
- and d.del_flag = 0
|
|
|
+ <if test="feedbackType != null "> and feedback_type = #{feedbackType}</if>
|
|
|
+ <if test="mentorId != null and mentorId != ''"> and mentor_id = #{mentorId}</if>
|
|
|
+ <if test="successorId != null and successorId != ''"> and successor_id = #{successorId}</if>
|
|
|
+ <if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
+ <if test="planId != null "> and plan_id = #{planId}</if>
|
|
|
+ <if test="feedbackYear != null and feedbackYear != ''"> and feedback_year = #{feedbackYear}</if>
|
|
|
+ <if test="feedbackSeason != null and feedbackSeason != ''"> and feedback_season = #{feedbackSeason}</if>
|
|
|
+ <if test="feedbackMonth != null and feedbackMonth != ''"> and feedback_month = #{feedbackMonth}</if>
|
|
|
+ <if test="successorFeedback != null and successorFeedback != ''"> and successor_feedback = #{successorFeedback}</if>
|
|
|
+ <if test="mentorFeedback != null and mentorFeedback != ''"> and mentor_feedback = #{mentorFeedback}</if>
|
|
|
+ <if test="feedbackScore != null and feedbackScore != ''"> and feedback_score = #{feedbackScore}</if>
|
|
|
+ <if test="feedbackStatus != null "> and feedback_status = #{feedbackStatus}</if>
|
|
|
+ <if test="meetingDate != null "> and meeting_date = #{meetingDate}</if>
|
|
|
</where>
|
|
|
- <!-- 数据范围过滤 -->
|
|
|
- ${params.dataScope}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTStFeedbackById" parameterType="Long" resultMap="TStFeedbackResult">
|
|
@@ -44,33 +70,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into t_st_feedback
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
- <if test="successorComment != null">successor_comment,</if>
|
|
|
- <if test="updaterCode != null">updater_code,</if>
|
|
|
- <if test="updatedate != null">updatedate,</if>
|
|
|
- <if test="createrCode != null">creater_code,</if>
|
|
|
- <if test="createdate != null">createdate,</if>
|
|
|
- <if test="feecbackType != null">feecback_type,</if>
|
|
|
+ <if test="feedbackType != null">feedback_type,</if>
|
|
|
+ <if test="mentorId != null">mentor_id,</if>
|
|
|
+ <if test="successorId != null">successor_id,</if>
|
|
|
+ <if test="parentId != null">parent_id,</if>
|
|
|
+ <if test="planId != null">plan_id,</if>
|
|
|
+ <if test="feedbackYear != null">feedback_year,</if>
|
|
|
+ <if test="feedbackSeason != null">feedback_season,</if>
|
|
|
+ <if test="feedbackMonth != null">feedback_month,</if>
|
|
|
+ <if test="successorFeedback != null">successor_feedback,</if>
|
|
|
+ <if test="mentorFeedback != null">mentor_feedback,</if>
|
|
|
+ <if test="feedbackScore != null">feedback_score,</if>
|
|
|
+ <if test="feedbackStatus != null">feedback_status,</if>
|
|
|
+ <if test="meetingDate != null">meeting_date,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
- <if test="successorComment != null">#{successorComment},</if>
|
|
|
- <if test="updaterCode != null">#{updaterCode},</if>
|
|
|
- <if test="updatedate != null">#{updatedate},</if>
|
|
|
- <if test="createrCode != null">#{createrCode},</if>
|
|
|
- <if test="createdate != null">#{createdate},</if>
|
|
|
- <if test="feecbackType != null">#{feecbackType},</if>
|
|
|
+ <if test="feedbackType != null">#{feedbackType},</if>
|
|
|
+ <if test="mentorId != null">#{mentorId},</if>
|
|
|
+ <if test="successorId != null">#{successorId},</if>
|
|
|
+ <if test="parentId != null">#{parentId},</if>
|
|
|
+ <if test="planId != null">#{planId},</if>
|
|
|
+ <if test="feedbackYear != null">#{feedbackYear},</if>
|
|
|
+ <if test="feedbackSeason != null">#{feedbackSeason},</if>
|
|
|
+ <if test="feedbackMonth != null">#{feedbackMonth},</if>
|
|
|
+ <if test="successorFeedback != null">#{successorFeedback},</if>
|
|
|
+ <if test="mentorFeedback != null">#{mentorFeedback},</if>
|
|
|
+ <if test="feedbackScore != null">#{feedbackScore},</if>
|
|
|
+ <if test="feedbackStatus != null">#{feedbackStatus},</if>
|
|
|
+ <if test="meetingDate != null">#{meetingDate},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateTStFeedback" parameterType="TStFeedback">
|
|
|
update t_st_feedback
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="successorComment != null">successor_comment = #{successorComment},</if>
|
|
|
- <if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
- <if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
- <if test="createrCode != null">creater_code = #{createrCode},</if>
|
|
|
- <if test="createdate != null">createdate = #{createdate},</if>
|
|
|
- <if test="feecbackType != null">feecback_type = #{feecbackType},</if>
|
|
|
+ <if test="feedbackType != null">feedback_type = #{feedbackType},</if>
|
|
|
+ <if test="mentorId != null">mentor_id = #{mentorId},</if>
|
|
|
+ <if test="successorId != null">successor_id = #{successorId},</if>
|
|
|
+ <if test="parentId != null">parent_id = #{parentId},</if>
|
|
|
+ <if test="planId != null">plan_id = #{planId},</if>
|
|
|
+ <if test="feedbackYear != null">feedback_year = #{feedbackYear},</if>
|
|
|
+ <if test="feedbackSeason != null">feedback_season = #{feedbackSeason},</if>
|
|
|
+ <if test="feedbackMonth != null">feedback_month = #{feedbackMonth},</if>
|
|
|
+ <if test="successorFeedback != null">successor_feedback = #{successorFeedback},</if>
|
|
|
+ <if test="mentorFeedback != null">mentor_feedback = #{mentorFeedback},</if>
|
|
|
+ <if test="feedbackScore != null">feedback_score = #{feedbackScore},</if>
|
|
|
+ <if test="feedbackStatus != null">feedback_status = #{feedbackStatus},</if>
|
|
|
+ <if test="meetingDate != null">meeting_date = #{meetingDate},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|