|
@@ -32,9 +32,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 王子文 2022年4月19日 10点28分 -->
|
|
|
<!-- 添加 表连接 sys_user u -->
|
|
|
<!-- 添加 结果字段 u.nick_name -->
|
|
|
- select d.overall_comment, d.score, d.id, d.staff_id,d.APPROVE_STATUS, u.nick_name, d.plant_name, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.start_date, d.end_date, d.class_hour, d.class_content, d.study_state ,s.dept_name from t_st_plan d
|
|
|
+ select suc.MENTOR_STAFF_ID, d.overall_comment, d.score, d.id, d.staff_id,d.APPROVE_STATUS, u.nick_name, d.plant_name, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.start_date, d.end_date, d.class_hour, d.class_content, d.study_state ,s.dept_name from t_st_plan d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join sys_user u on d.staff_id = u.staffid
|
|
|
+ left join T_ST_SUCCESSOR suc on d.STAFF_ID = suc.STAFF_ID
|
|
|
</sql>
|
|
|
|
|
|
<!--王子文 2022年4月20日 09点30分 添加-->
|
|
@@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endDate != null "> and end_date = #{endDate}</if>
|
|
|
<if test="classHour != null and classHour != ''"> and class_hour = #{classHour}</if>
|
|
|
<if test="studyState != null and studyState != ''"> and study_state = #{studyState}</if>
|
|
|
+ <if test="mentorStaffId != null and mentorStaffId != ''"> and mentor_staff_id = #{mentorStaffId}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|