From fb5aa087eaf6a68cf7ea8114beb270551016e7dd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期二, 29 七月 2025 11:27:45 +0800 Subject: [PATCH] 添加定型指派设备 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/ScanDowntimeJob.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/ScanDowntimeJob.java b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/ScanDowntimeJob.java index 84d9da1..b40b9be 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/ScanDowntimeJob.java +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/ScanDowntimeJob.java @@ -88,8 +88,9 @@ downtime.setEquipmentId(mdcEquipmentWaitSectionDto.getEquipmentId()); downtime.setEquipmentName(mdcEquipmentWaitSectionDto.getEquipmentName()); downtime.setTheDate(finalDate); - downtime.setStartTime(mdcEquipmentWaitSectionDto.getStartTime()); - downtime.setEndTime(mdcEquipmentWaitSectionDto.getEndTime()); + downtime.setStartDate(mdcEquipmentWaitSectionDto.getStartTime()); + downtime.setEndDate(mdcEquipmentWaitSectionDto.getEndTime()); + downtime.setShutdownDuration(DateUtils.differentMinutes(downtime.getStartDate(), downtime.getEndDate())); return downtime; }).collect(Collectors.toList()); if (!downtimeList.isEmpty()) { -- Gitblit v1.9.3