双重预防项目-国泰新华二开定制版
heheng
2025-06-19 46c37398a52d1dcf81788960ec90faa91249e77f
src/main/resources/mybatis/doublePrevention/PreventCJReportRiskAnaUnitMapper.xml
@@ -19,6 +19,7 @@
        <result column="hazard_dep" property="hazardDep"/>
        <result column="hazard_liable_person" property="hazardLiablePerson"/>
        <result column="risk_unit_id" property="riskUnitId"/>
        <result column="zhun_report_status" property="zhunReportStatus"/>
    </resultMap>
    <!--IPage<PreventRiskAnaUnit> getReportRiskUnitPage(Page<Object> page, PreReportRiskUnitQueryReqDTO queryReqDTO);-->
@@ -46,6 +47,13 @@
        limit 200
    </select>
    <select id="listReportUnitDateHuaiDong" resultMap="BaseResultMap">
        select * from prevent_cj_report_risk_ana_unit
        where zhun_report_status = 1 and deleted = 0 and hazard_code is not null  and hazard_code LIKE '6523%'
            limit 50
    </select>
    <!--int updateReportStatus();-->
    <update id="updateReportStatus">
        update prevent_cj_report_risk_ana_unit set
@@ -62,6 +70,14 @@
        where id = #{id}
    </update>
    <update id="updateHDReportStatusById">
        update prevent_cj_report_risk_ana_unit set
                                                   zhun_report_status =  #{zhunReportStatus},
                                                   zhun_report_time = #{zhunReportTime}
        where id = #{id}
    </update>
<!--    int insertUnitList(PreventCJReportRiskAnaUnit unit);-->
    <insert id="insertUnitList">
        insert into prevent_cj_report_risk_ana_unit