From 48ef91f490d0602411c49c2fd23b324d22559241 Mon Sep 17 00:00:00 2001 From: liuao <1150003126@qq.com> Date: Wed, 14 May 2025 09:53:22 +0800 Subject: [PATCH] =?UTF-8?q?2025=E5=B9=B45=E6=9C=8814=E6=97=A509:53:13=201.?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/intelligencesite/schedule/ResourceSchedules.java | 7 +++---- src/main/resources/mappers/IWarnMapper.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zilber/boot/intelligencesite/schedule/ResourceSchedules.java b/src/main/java/com/zilber/boot/intelligencesite/schedule/ResourceSchedules.java index ac85e28..5cb4246 100644 --- a/src/main/java/com/zilber/boot/intelligencesite/schedule/ResourceSchedules.java +++ b/src/main/java/com/zilber/boot/intelligencesite/schedule/ResourceSchedules.java @@ -64,7 +64,7 @@ public class ResourceSchedules { //如果出现异常,初始化标度 expenses = 5; } - //查询计划开始时间小于当前时间,计划结束时间大于当前时间的parentId为0的计划以及当前进度 + //查询计划开始时间小于当前时间的parentId为0的计划以及当前进度 List planDTOS = resourceScheduleMapper.listCheckedPlan(now); //删除之前的数据 rsService.removeAll(); @@ -75,13 +75,12 @@ public class ResourceSchedules { log.info("计划\"" + plan.getPlanName() + "\"进度较慢"); rsService.save(productionPlan(plan, now, Info.PRODUCTION_PLAN_SLOW.getMessage())); warnService.save(warn(plan, now, Info.WARN_SLOW.getMessage())); - log.info("计划\"" + plan.getPlanName() + "\"进度更新完毕"); } else if ( plan.getAccumulativeProgress() >= plan.getDiff() + expenses){//进度快 - log.info("计划\"" + plan.getPlanName() + "\"进度更新完毕"); + log.info("计划\"" + plan.getPlanName() + "\"进度较快"); rsService.save(productionPlan(plan, now, Info.PRODUCTION_PLAN_QUICK.getMessage())); - log.info("计划\"" + plan.getPlanName() + "\"进度较慢"); } + log.info("计划\"" + plan.getPlanName() + "\"进度更新完毕"); } Date end = new Date(); log.info("全部计划进度更新已完毕:" + sdf.format(end)); diff --git a/src/main/resources/mappers/IWarnMapper.xml b/src/main/resources/mappers/IWarnMapper.xml index 7d4a387..c65a684 100644 --- a/src/main/resources/mappers/IWarnMapper.xml +++ b/src/main/resources/mappers/IWarnMapper.xml @@ -38,7 +38,7 @@ id, plan_id, plan_name, deviation_type, deviation_days, warn_info, create_time, ipn.start_time, ipn.end_time FROM - i_warn iw left join i_production_plan ipn on iw.plan_id=ipn.id + i_warn iw inner join i_production_plan ipn on iw.plan_id=ipn.id and plan_id=#{planId} and iw.plan_name like concat('%', #{planName}, '%')