Your Name
2022-11-11 b47b351ba838b9ca0c70fae7cc3a64d4026e7356
src/main/resources/mybatis/doublePrevention/PreventRiskControlMeasureMapper.xml
@@ -148,10 +148,11 @@
    <select id="getPreventRiskControlMeasureById"
            resultType="com.ruoyi.doublePrevention.entity.PreventRiskControlMeasure">
            resultMap="BaseResultMap">
        select * from prevent_risk_control_measure
        where id = #{id} and delete_status = 0
    </select>
    <select id="getPreventRiskControlMeasureByControlMeasureCode" resultMap="BaseResultMap">
        select * from prevent_risk_control_measure
        <where>
@@ -163,7 +164,7 @@
    </select>
    <select id="listRiskEvenByCondition" resultMap="BaseResultMap">
    <select id="listRiskControlMeasureByCondition" resultMap="BaseResultMap">
        select * from prevent_risk_control_measure
        <where>
            delete_status = 0
@@ -177,4 +178,24 @@
        </where>
    </select>
    <select id="listRiskControlMeasure"
            resultMap="BaseResultMap">
        select * from prevent_risk_control_measure where delete_status = 0
    </select>
<!--    List<PreventRiskControlMeasure> listReportMeasure();-->
    <select id="listReportMeasure" resultMap="BaseResultMap">
        select * from prevent_risk_control_measure
        where report_switch = 0 and (update_report_data_time > report_time or report_time is null)
    </select>
<!--    int updateMeasureReportStatus(HandlerReportParam handlerReportParam);-->
    <update id="updateMeasureReportStatus" >
        update prevent_risk_control_measure set
            report_status =  #{reportStatus},
            report_time = #{reportTime}
        where id = #{id}
    </update>
</mapper>