双重预防项目-国泰新华二开定制版
马宇豪
2024-06-19 6c596cf92d8976cfe6a6101486c46697346a8724
src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml
@@ -77,4 +77,15 @@
        , #{reportStatus}, #{reportTime}, #{dataSource}, #{dangerManagerId})
    </insert>
<!--    List<PreventCJReportDangerInfo> getDangerListForCheckTask();-->
    <select id="getDangerListForCheckTask" resultMap="BaseResultMap">
        select * from prevent_cj_report_danger_info
        where hazard_code is not null and report_status = 2 and deleted = 0
        order by create_date desc
    </select>
<!--    PreventCJReportDangerInfo getDangetById(String dangerId);-->
    <select id="getDangerById" resultMap="BaseResultMap">
        select * from prevent_cj_report_danger_info
        where deleted = 0 and id = #{dangerId}
    </select>
</mapper>