|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="overallComment" column="overall_comment" />
|
|
|
<result property="approveStatus" column="APPROVE_STATUS" />
|
|
|
<result property="dateOfCompletion" column="date_of_completion" />
|
|
|
+ <result property="yearPlanId" column="year_plan_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTStPlanVo">
|
|
|
- select d.date_of_completion, 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
|
|
|
+ select d.year_plan_id, d.date_of_completion, 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
|
|
@@ -36,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectTStPlanList" parameterType="TStPlan" resultMap="TStPlanResult">
|
|
|
<include refid="selectTStPlanVo"/>
|
|
|
<where>
|
|
|
+ <if test="yearPlanId != null and yearPlanId != ''"> and d.year_plan_id = #{yearPlanId}</if>
|
|
|
<if test="staffId != null and staffId != ''"> and d.staff_id = #{staffId}</if>
|
|
|
<if test="plantName != null and plantName != ''"> and plant_name like concat(concat('%', #{plantName}), '%')</if>
|
|
|
<if test="startDate != null "> and start_date = #{startDate}</if>
|