From c8aa325f0a567acbd194ed4d2086f2326b883152 Mon Sep 17 00:00:00 2001 From: DouDou <877258667@qq.com> Date: Thu, 27 Jun 2024 13:44:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ScheduleServiceImpl.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java b/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java index eeb5164..a0cabd2 100644 --- a/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java +++ b/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java @@ -543,15 +543,16 @@ public class ScheduleServiceImpl
implements ScheduleService { printMap.put("materialTime", materialTime); printMap.put("expiredTime", expiredTime); printMap.put("reheatingNums", reheatingNums); + + //获取暴露时间的小时数 + Integer exposureHours = exposureMinutes/60; + Integer remainderNums = exposureMinutes%60; + if(remainderNums > 0){ + exposureHours++; + } + printMap.put("exposureHours", exposureHours+""); //判断当前的数据是否已经存在了相关的批次号 if(null == systemBatchNo || "".equals(systemBatchNo) || null == rawMaterialBatchNo || "".equals(rawMaterialBatchNo)){ - //获取暴露时间的小时数 - Integer exposureHours = exposureMinutes/60; - Integer remainderNums = exposureMinutes%60; - if(remainderNums > 0){ - exposureHours++; - } - printMap.put("exposureHours", exposureHours+""); //查询当前卷信息 //获取时间的部分编码 String sixTimeCode = this.getFqcSixTimeCode(stockTime);