双重预防项目-国泰新华二开定制版
heheng
2025-10-20 2b67ed2da39eba5824cfee7950e03be2c1a256ec
src/main/resources/mybatis/tr/TbSpecialCheckTaskLogMapper.xml
@@ -22,6 +22,8 @@
        <result property="updateDate" column="update_date"/>
        <result property="reportTime" column="report_time"/>
        <result property="reportStatus" column="report_status"/>
<!--        <result property="zhunReportTime" column="zhun_report_time"/>-->
<!--        <result property="zhunReportStatus" column="zhun_report_status"/>-->
    </resultMap>
@@ -39,6 +41,9 @@
            <if test="reportStatus != null">
            and report_status = #{reportStatus}
            </if>
<!--            <if test="zhunReportStatus != null">-->
<!--            and zhun_report_status = #{zhunReportStatus}-->
<!--            </if>-->
            order by  create_date desc
        </where>
    </select>
@@ -150,6 +155,12 @@
        where deleted = 0 and report_status = 1
    </select>
    <select id="listZDCheckRecordLog" resultMap="BaseResultMap">
        select * from tb_special_check_task_log
        where deleted = 0 and zhun_report_status = 1 limit 20
    </select>
    <select id="listTestReportTaskTest" resultMap="BaseResultMap">
        select * from tb_special_check_task_log
        where deleted = 0  and create_date &gt;= '2024-01-01 00:00:00' and create_date &lt;= '2024-06-16 23:59:59'
@@ -163,4 +174,11 @@
            report_time = #{reportTime}
        where id = #{id}  and deleted = 0
    </update>
    <update id="updateEventReportStatusZhunDong">
        update tb_special_check_task_log set
           zhun_report_status =  #{zhunReportStatus},
           zhun_report_time = #{zhunReportTime}
        where id = #{id}
    </update>
</mapper>