双重预防项目-国泰新华二开定制版
heheng
2025-06-20 40e6b02f26a7c0a1911a69b951c948f582df4032
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,12 +70,20 @@
        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
        values(null, #{id}, #{companyCode}, #{deleted}, #{createDate}, #{createBy}, #{updateDate}, #{updateBy}
        , #{riskUnitName}, #{hazardCode}, #{hazardDep}, #{hazardLiablePerson}
        , #{reportStatus}, #{reportTime}, #{dataSource}, #{riskUnitId})
        , #{reportStatus}, #{reportTime}, #{dataSource}, #{riskUnitId}, #{zhunReportStatus}, #{zhunReportTime})
    </insert>
</mapper>