| | |
| | | <result property="gmtCreate" column="gmt_create" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="selectToDoResultMap" type="com.ycl.domain.vo.ProjectProcessToDoVo"> |
| | | <result column="plan_id" property="planId"/> |
| | | <result column="project_info_id" property="projectInfoId"></result> |
| | | <result column="project_name" property="projectName"></result> |
| | | <result column="project_plan_info_id" property="projectPlanInfoId"></result> |
| | | <result column="project_plan_record_id" property="projectPlanRecordId"></result> |
| | | <result column="project_plan_examine_record_id" property="projectPlanExamineRecordId"></result> |
| | | <result column="title" property="projectPlanInfoTitle"></result> |
| | | <result column="start_time" property="startTime"></result> |
| | | <result column="end_time" property="endTime"></result> |
| | | <result column="progress_status" property="progressStatus"></result> |
| | | <result column="assignee_name" property="assigneeName"/> |
| | | </resultMap> |
| | | |
| | | <insert id="insertOne"> |
| | | insert into t_project_plan_examine_record ( |
| | | project_plan_record_id, |
| | |
| | | pper.project_plan_record_id = #{projectPlanRecordId} |
| | | ORDER BY gmt_update DESC |
| | | </select> |
| | | <select id="todoList" resultMap="selectToDoResultMap"> |
| | | SELECT ppe.id project_plan_examine_record_id,ppi.title ,ppr.project_info_id,pi.project_name,ppi.start_time,ppi.end_time,ppi.progress_status,ppe.project_plan_info_id,ppe.project_plan_record_id,ppr.plan_id, |
| | | (SELECT user_name from sys_user WHERE user_id = #{userId}) as assignee_name |
| | | from t_project_plan_examine_record ppe |
| | | LEFT JOIN t_project_plan_info ppi on ppe.project_plan_info_id = ppi.id |
| | | LEFT JOIN t_project_plan_record ppr on ppe.project_plan_record_id = ppr.id |
| | | LEFT JOIN t_project_info pi on ppr.project_info_id = pi.id |
| | | WHERE ppe.department_user_id = #{userId} or manager_user_id = #{userId} |
| | | </select> |
| | | |
| | | </mapper> |