双重预防项目-国泰新华二开定制版
heheng
2025-06-19 46c37398a52d1dcf81788960ec90faa91249e77f
src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml
@@ -37,6 +37,11 @@
        <result column="check_accept_time" property="checkAcceptTime"/>
        <result column="danger_manager_id" property="dangerManagerId"/>
    </resultMap>
    <resultMap id="BaseMapVO" type="com.ruoyi.doublePrevention.entity.ZDReport.ZDPreventCJReportDangerInfo" extends="BaseResultMap">
        <result property="postRectifyPhoto" column="post_rectify_photo"/>
        <result property="rectifyAttachment" column="rectify_attachment"/>
        <result property="preRectifyPhoto" column="pre_rectify_photo"/>
    </resultMap>
    <!--IPage<PreventReportDangerInfo> getReportDangerInfoPage(Page<Object> objectPage, PreventReportDangerInfoReqDTO queryReqDTO);-->
    <select id="getReportDangerInfoPage" resultMap="BaseResultMap">
@@ -51,6 +56,27 @@
        limit 200
    </select>
    <select id="listReportDangerDateZhunDong" resultMap="BaseMapVO">
<!--        select * from prevent_cj_report_danger_info-->
<!--        where zhun_report_status = 1-->
<!--            limit 50-->
<!--,c.pre_rectify_photo,c.post_rectify_photo,c.rectify_attachment-->
        select a.* from prevent_cj_report_danger_info a
<!--        INNER JOIN prevent_risk_danger_info b on  a.id = b.uuid-->
<!--        INNER JOIN tr_hidden_danger_check_point c on c.id = b.danger_check_point_id-->
        where a.zhun_report_status = 1 and a.deleted = 0
        and a.create_date &gt;= '2025-06-15 00:00:00' and a.create_date &lt;= '2025-06-18 23:59:59'
        limit 50
    </select>
    <update id="updateZDReportStatusById">
        update prevent_cj_report_danger_info set
                                                 zhun_report_status =  #{zhunReportStatus},
                                                 zhun_report_time = #{zhunReportTime}
        where id = #{id}
    </update>
    <!--int updateTaskReportStatus(HandlerReportParam handlerReportParam);-->
    <update id="updateTaskReportStatus">
        update prevent_cj_report_danger_info set