双重预防项目-国泰新华二开定制版
heheng
2025-06-20 90b83e2ee39c9599d08a963ebf445911e5d6ff5c
src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml
@@ -54,6 +54,21 @@
        where id = #{id}
    </update>
    <select id="listReportTaskRecordDateHuaiDong" resultMap="BaseResultMap">
        select * from prevent_cj_report_check_record_from_task
        where zhun_report_status = 1 and deleted = 0
            limit 50
<!--  and create_date &gt;= '2025-06-15 00:00:00' and create_date &lt;= '2025-06-16 23:59:59'-->
    </select>
    <update id="updateHDReportStatusById">
        update prevent_cj_report_check_record_from_task set
                                                            zhun_report_status =  #{zhunReportStatus},
                                                            zhun_report_time = #{zhunReportTime}
        where id = #{id}
    </update>
<!--    int insertRecord(PreventCJReportCheckRecordFromTask recordFromTasks);-->
    <insert id="insertRecord">
        insert into prevent_cj_report_check_record_from_task
@@ -68,12 +83,12 @@
        insert into prevent_cj_report_check_record_from_task
            (index_id, id, company_code, deleted, create_date, create_by, update_date, update_by,
             report_status, report_time,data_source, check_task_id, check_status, check_time,
             create_by_mobile, update_by_mobile, task_id, mobile_code, defend)
             create_by_mobile, update_by_mobile, task_id, mobile_code, defend, zhun_report_status, zhun_report_time)
        values
        <foreach collection="list" item="record" separator=",">
            (null, #{record.id}, #{record.companyCode}, #{record.deleted}, #{record.createDate}, #{record.createBy}, #{record.updateDate},#{record.updateBy},
            #{record.reportStatus}, #{record.reportTime}, #{record.dataSource}, #{record.checkTaskId}, #{record.checkStatus}, #{record.checkTime},
            #{record.createByMobile}, #{record.updateByMobile}, #{record.taskId}, #{record.mobileCode}, #{record.defend})
            #{record.createByMobile}, #{record.updateByMobile}, #{record.taskId}, #{record.mobileCode}, #{record.defend}, #{record.zhunReportStatus}, #{record.zhunReportTime})
        </foreach>
    </insert>
@@ -91,4 +106,15 @@
        where id = #{id}
    </update>
    <update id="updateTaskReportStatusForRePushV1">
        update prevent_cj_report_check_record_from_task set id=concat(substring(id,1,length(id)-4),'ccab'),report_status=1
        where check_time &gt;= #{startTime} and check_time &lt;= #{endTime}
    </update>
    <update id="updateTaskReportStatusForRePushV2">
        update prevent_cj_report_check_record_from_task set id=concat(substring(id,1,length(id)-4),'ccab'),report_status=1
        where check_time &gt; #{startTime} and check_time &lt;= #{endTime}
    </update>
</mapper>