From 7be0d5b901b999d2347774df3cc1a64927838bb3 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期二, 15 四月 2025 10:10:35 +0800 Subject: [PATCH] 优化每年专项数据获取 --- src/main/resources/mybatis/doublePrevention/PreventRiskJobAndMeasureMapper.xml | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mybatis/doublePrevention/PreventRiskJobAndMeasureMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventRiskJobAndMeasureMapper.xml index 8bbab7d..376e1e0 100644 --- a/src/main/resources/mybatis/doublePrevention/PreventRiskJobAndMeasureMapper.xml +++ b/src/main/resources/mybatis/doublePrevention/PreventRiskJobAndMeasureMapper.xml @@ -26,6 +26,10 @@ where job_id = #{jobId} limit 1 </select> + <select id="getJobAndMeasureListByJobId" resultMap="BaseResultMap"> + select * from prevent_risk_job_and_measure + where job_id = #{jobId} + </select> <!-- int deleteJobAndMeasure(Long jobId);--> <delete id="deleteJobAndMeasure"> @@ -34,4 +38,38 @@ </delete> <!-- PreventRiskJobAndMeasure getJobAndMeasure(Long jobId);--> + +<!-- List<PreventRiskJobAndMeasure> listReportWork();--> + <select id="listReportWork" resultMap="BaseResultMap"> + select * from prevent_risk_job_and_measure + where report_switch = 0 and (update_report_data_time > report_time or report_time is null) + </select> + +<!-- List<PreventRiskJobAndMeasure> getMeasureListByJobId(Long jobId);--> + <select id="getMeasureListByJobId" resultMap="BaseResultMap"> + select * from prevent_risk_job_and_measure + where job_id = #{jobId} + </select> + +<!-- int updateWorkReportStatus(HandlerReportParam handlerReportParam);--> + <update id="updateWorkReportStatus"> + update prevent_risk_job_and_measure set + report_status = #{reportStatus}, + report_time = #{reportTime} + where id = #{id} + </update> + <!-- List<PreventRiskJobAndMeasure> listReportWork();--> + <select id="listReportWorkTest" resultMap="BaseResultMap"> + select * from prevent_risk_job_and_measure +<!-- where job_id in (43,47,50,53,56,59,63,65,68,71,75,77,81)--> +<!-- where job_id in (44,46,49,52,55,58,61,64,67,70,73,76,79)--> + where job_id in (45,48,51,54,57,60,62,66,69,72,74,78,80) + </select> +<!-- List<PreventRiskJobAndMeasure> getRectifyJobData(Long jobId);--> + <select id="getRectifyJobData" resultMap="BaseResultMap"> + select * from prevent_risk_job_and_measure + where job_id = #{jobId} + </select> </mapper> + + -- Gitblit v1.9.2