From 72e7b5e76c20b8a0f96421e59e9c1eacbcfb0bd1 Mon Sep 17 00:00:00 2001 From: Jone <515616805@qq.com> Date: Wed, 7 Aug 2024 17:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hnac/hzims/monitor/entity/HisDataYc.java | 5 ++++- .../com/hnac/hzinfo/inspect/task/service/impl/TaskServiceImpl.java | 2 +- .../hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java | 2 +- .../hzims/safeproduct/service/impl/CarCheckTemplateServiceImpl.java | 1 + .../ticket/twoTicket/service/impl/TicketProcessServiceImpl.java | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/monitor/entity/HisDataYc.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/monitor/entity/HisDataYc.java index bf4d2ec..1f34282 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/monitor/entity/HisDataYc.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/monitor/entity/HisDataYc.java @@ -55,7 +55,10 @@ public class HisDataYc { HisDataYc other = (HisDataYc) obj; if (datatime == null) { return other.datatime == null; - } else return datatime.equals(other.datatime); + } else { + return datatime.equals(other.datatime); + } + } @Override diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/TaskServiceImpl.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/TaskServiceImpl.java index 8ecc34d..9b9d33b 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/TaskServiceImpl.java +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/TaskServiceImpl.java @@ -271,7 +271,7 @@ public class TaskServiceImpl extends ServiceImpl impleme R r = sysClient.getParamValue(TaskContants.OPEN_MULTIPLE_TASK); if (r.isSuccess() && "0".equals(r.getData())) {//处理同时开启几个任务的情况 Long count = taskUserService.count(Wrappers.query().lambda().eq(TaskUserEntity::getUserId, userId).eq(TaskUserEntity::getClaimStatus, ClaimStatusEnum.COLLECT.getStatus())); - if (count > 0l) { + if (count > 0L) { log.error("不能同时开启两个巡检任务"); throw new ServiceException("不能同时开启两个巡检任务"); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java index 1acd9ef..c88e34e 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java @@ -821,7 +821,7 @@ public class ImsDutyRecServiceImpl extends ServiceImpl new Date().getTime()) { + if (dutyDate.getTime() > System.currentTimeMillis()) { return R.fail("指定的值班开始时间不能晚于当前时间"); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckTemplateServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckTemplateServiceImpl.java index fe2c069..ab6ae7c 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckTemplateServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckTemplateServiceImpl.java @@ -69,6 +69,7 @@ public class CarCheckTemplateServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(CarCheckTemplateEntity::getTemplateName, name); diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java index 942a9cb..994bd28 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java @@ -1355,6 +1355,7 @@ public class TicketProcessServiceImpl implements TicketProcessService, StartProc * @param key * @param value */ + @Override public void getDataConversion(Map dataConversion, String key, Object value) { String newValue = value == null ? (String) value : value.toString(); if (StringUtils.isNoneBlank(newValue)) {