双重预防项目-国泰新华二开定制版
heheng
2025-06-20 90b83e2ee39c9599d08a963ebf445911e5d6ff5c
src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
@@ -41,6 +41,19 @@
        limit 200
    </select>
    <select id="listReportTaskFromWorkDateHD" resultMap="BaseResultMap">
        select * from prevent_cj_report_check_task_from_work
        where zhun_report_status = 1 and deleted = 0
            limit 50
    </select>
    <update id="updateHDReportStatusById">
        update prevent_cj_report_check_task_from_work set
                                                          zhun_report_status =  #{zhunReportStatus},
                                                          zhun_report_time = #{zhunReportTime}
        where id = #{id}
    </update>
    <select id="listWork" resultMap="BaseResultMap">
        select * from prevent_cj_report_check_task_from_work
        where work_id >= 82 and  94 >= work_id and troubleshoot_content is null
@@ -96,13 +109,13 @@
        values(null, #{id}, #{companyCode}, #{deleted}, #{createDate}, #{createBy}, #{updateDate}, #{updateBy}
        , #{riskMeasureId}, #{checkCycle}, #{checkCycleUnit}
        , #{reportStatus}, #{reportTime}, #{dataSource}, #{workId}
        , #{troubleshootContent},#{taskStartTime},#{workStartTime},#{workEndTime},#{workDayType},#{workType},#{taskNum})
        , #{troubleshootContent},#{taskStartTime},#{workStartTime},#{workEndTime},#{workDayType},#{workType},#{taskNum}, #{zhunReportStatus}, #{zhunReportTime})
    </insert>
<!--    PreventCJReportCheckTaskFromWork geByMeasureUUidAndJobId(String measureUuid, Long jobId);-->
    <select id="geByMeasureUUidAndJobId" resultMap="BaseResultMap">
        select * from prevent_cj_report_check_task_from_work
        where work_id = #{jobId} and risk_measure_id = #{measureUuid} and deleted = 0
        where work_id = #{jobId} and risk_measure_id = #{measureUuid} and deleted = 0 order by create_date desc limit 1
    </select>