| | |
| | | <result column="progress_status" property="progressStatus" /> |
| | | <result column="actual_invest" property="actualInvest" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <insert id="insertOne"> |
| | | INSERT INTO t_project_plan_progress_report ( |
| | | project_plan_info_id, |
| | | start_time, |
| | | end_time, |
| | | progress_status, |
| | | actual_invest |
| | | ) |
| | | VALUES ( |
| | | #{projectPlanInfoId}, |
| | | #{startTime}, |
| | | #{endTime}, |
| | | #{progressStatus}, |
| | | #{actualInvest} |
| | | ) |
| | | </insert> |
| | | <update id="updateOne"> |
| | | UPDATE t_project_plan_progress_report |
| | | SET |
| | | start_time = #{startTime}, |
| | | end_time = #{endTime}, |
| | | progress_status = #{progressStatus}, |
| | | actual_invest = #{actualInvest} |
| | | WHERE |
| | | id = #{id} |
| | | </update> |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | |
| | | TPPPR.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getDetail" resultType="com.ycl.domain.form.ProgressReportResponseForm"> |
| | | SELECT |
| | | ppi.id, |
| | | pppr.id AS progress_report_id, |
| | | pper.id AS examine_record_id, |
| | | ppr.plan_time, |
| | | ppr.plan_time_flag, |
| | | ppi.title, |
| | | ppi.progress_status AS progress_status_int, |
| | | ppi.start_time, |
| | | ppi.end_time, |
| | | pppr.start_time AS actual_start_time, |
| | | pppr.end_time AS actual_end_time, |
| | | pppr.progress_status AS progress_status_str, |
| | | pppr.actual_invest, |
| | | pper.department_examine, |
| | | pper.department_approval, |
| | | pper.department_approval_reply, |
| | | pper.manage_examine, |
| | | pper.manage_approval, |
| | | pper.manage_approval_reply |
| | | FROM t_project_plan_info AS ppi |
| | | INNER JOIN t_project_plan_record AS ppr ON ppi.project_plan_record_id = ppr.id |
| | | LEFT JOIN t_project_plan_progress_report AS pppr ON pppr.project_plan_info_id = ppi.id |
| | | LEFT JOIN t_project_plan_examine_record AS pper ON pper.project_plan_info_id = ppi.id |
| | | WHERE |
| | | ppi.id = #{id} |
| | | AND pper.event_type = 2 |
| | | AND pper.deleted = 0 |
| | | ORDER BY pper.gmt_create DESC LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |