From 7175e4e15a3ff531ccff6f9e31ffa0ae2a4c453d Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 28 Mar 2024 14:22:27 +0800 Subject: [PATCH] =?UTF-8?q?#=E7=94=A8=E6=88=B7=E5=B1=95=E7=A4=BA=E6=98=B5?= =?UTF-8?q?=E7=A7=B0=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/operation/business/impl/DutyServiceImpl.java | 8 ++++---- .../inspect/offline/wrapper/OfflineRecordWrapper.java | 4 ++-- .../hnac/hzims/message/wrapper/MsgPushRecordWrapper.java | 4 ++-- .../hnac/hzims/message/wrapper/MsgSmsRecordWrapper.java | 4 ++-- .../hzims/message/wrapper/MsgWsRecordHistoryWrapper.java | 4 ++-- .../com/hnac/hzims/message/wrapper/MsgWsRecordWrapper.java | 4 ++-- .../hzims/operational/alert/wrapper/HandleWrapper.java | 3 +-- .../defect/wrapper/OperDefectStatisticsWrapper.java | 12 ++++++------ .../operational/defect/wrapper/OperDefectWrapper.java | 4 ++-- .../hzims/operational/defect/wrapper/OperFaultWrapper.java | 4 ++-- .../operational/defect/wrapper/OperPhenomenonWrapper.java | 12 ++++++------ .../duty/service/impl/ImsDutyChangeServiceImpl.java | 14 +++++++------- .../duty/service/impl/ImsDutyEmergencyServiceImpl.java | 4 ++-- .../duty/service/impl/ImsDutyGroupServiceImpl.java | 6 +++--- .../duty/service/impl/ImsDutyMainServiceImpl.java | 4 ++-- .../duty/service/impl/ImsDutyRecQRRecordServiceImpl.java | 2 +- .../duty/service/impl/ImsDutyRecServiceImpl.java | 10 +++++----- .../hzims/operational/fill/wrapper/GenerateWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/OtherWrapper.java | 2 +- .../hzims/operational/fill/wrapper/OverConfigWrapper.java | 2 +- .../hzims/operational/fill/wrapper/OverDetailsWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/OverWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/PowerWrapper.java | 2 +- .../hzims/operational/fill/wrapper/RainfallWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/SolveWrapper.java | 2 +- .../hzims/operational/fill/wrapper/StorageWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/UseWrapper.java | 2 +- .../hnac/hzims/operational/fill/wrapper/WindWrapper.java | 2 +- .../station/service/impl/StationServiceImpl.java | 2 +- .../safeproduct/scheduled/SafeToolTypePushUserTask.java | 2 +- .../hzims/safeproduct/wrapper/ImsMonAlarmInfoWrapper.java | 2 +- 31 files changed, 65 insertions(+), 66 deletions(-) diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/business/impl/DutyServiceImpl.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/business/impl/DutyServiceImpl.java index 5566c77..f1ce357 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/business/impl/DutyServiceImpl.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/business/impl/DutyServiceImpl.java @@ -63,7 +63,7 @@ public class DutyServiceImpl extends BaseServiceImpllambdaUpdate() .eq(OperPhenomenonEntity::getDefectCode,entity.getDefectCode()).last("limit 1")); if(Func.isNotEmpty(phenomenonEntity)){ diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/wrapper/OperFaultWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/wrapper/OperFaultWrapper.java index 08bb511..0bd21e1 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/wrapper/OperFaultWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/wrapper/OperFaultWrapper.java @@ -40,8 +40,8 @@ public class OperFaultWrapper extends BaseEntityWrapper imsDutyChangeTowVos = this.baseMapper.selectListDetails(page); for (ImsDutyChangeTowVo imsDutyChangeTowVo : imsDutyChangeTowVos) { if (Func.isNotBlank(imsDutyChangeTowVo.getManager() + "")) { - imsDutyChangeTowVo.setManagerName(userClient.userInfoById(imsDutyChangeTowVo.getManager()).getData().getName()); + imsDutyChangeTowVo.setManagerName(userClient.userInfoById(imsDutyChangeTowVo.getManager()).getData().getRealName()); } } return page.setRecords(imsDutyChangeTowVos); @@ -147,8 +147,8 @@ public class ImsDutyChangeServiceImpl extends BaseServiceImpl { R user = userClient.userInfoById(sig.getRegistrant()); if (user.isSuccess()&&ObjectUtils.isNotEmpty(user.getData())){ - sig.setRegistrantName(user.getData().getName()); + sig.setRegistrantName(user.getData().getRealName()); } R userR = userClient.userInfoById(sig.getChargePerson()); if (userR.isSuccess()&&ObjectUtils.isNotEmpty(userR.getData())){ - sig.setChargePersonName(userR.getData().getName()); + sig.setChargePersonName(userR.getData().getRealName()); } ImsDutyClassEntity classEntity = imsDutyClassService.getById(sig.getDutyClass()); sig.setDutyClassName(classEntity.getClassName()); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java index 17d4e0b..e666e12 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java @@ -226,8 +226,8 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl userR = userClient.userInfoById(managerId); if (userR.isSuccess() && ObjectUtil.isNotEmpty(userR.getData())) { - userName = userR.getData().getName(); + userName = userR.getData().getRealName(); } } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java index d55b882..2f7eda3 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java @@ -803,9 +803,9 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl { return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); vo.setAscriptionUser(entity.getCreateUser()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java index 2b414ec..5318d67 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/OverConfigWrapper.java @@ -25,7 +25,7 @@ public class OverConfigWrapper extends BaseEntityWrapper { return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); vo.setAscriptionUser(entity.getCreateUser()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/PowerWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/PowerWrapper.java index 878b4a8..f92102b 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/PowerWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/PowerWrapper.java @@ -25,7 +25,7 @@ public class PowerWrapper extends BaseEntityWrapper { return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); vo.setAscriptionUser(entity.getCreateUser()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/RainfallWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/RainfallWrapper.java index fea7831..87b2b13 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/RainfallWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/RainfallWrapper.java @@ -29,7 +29,7 @@ public class RainfallWrapper extends BaseEntityWrapper { return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); vo.setAscriptionUser(entity.getCreateUser()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/StorageWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/StorageWrapper.java index d01f7a5..81a28dc 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/StorageWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/StorageWrapper.java @@ -29,7 +29,7 @@ public class StorageWrapper extends BaseEntityWrapper return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/UseWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/UseWrapper.java index d8f53b6..e08cc06 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/UseWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/UseWrapper.java @@ -29,7 +29,7 @@ public class UseWrapper extends BaseEntityWrapper { return vo; } assert vo != null; - vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); + vo.setUserName(createUser.getRealName()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/WindWrapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/WindWrapper.java index ab8609e..b16a483 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/WindWrapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/wrapper/WindWrapper.java @@ -25,7 +25,7 @@ public class WindWrapper extends BaseEntityWrapper { return vo; } assert vo != null; - vo.setUserName(createUser.getName()); + vo.setUserName(createUser.getRealName()); return vo; } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java index 79997f8..78d95f3 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java @@ -90,7 +90,7 @@ public class StationServiceImpl extends BaseServiceImpl sort = Optional.ofNullable(this.getStationMaxOrder()); - req.setSort(sort.isPresent() ? sort.get() + 1 : 1); + req.setSort(sort.map(integer -> integer + 1).orElse(1)); boolean updateResult = this.saveOrUpdate(req); Assert.isTrue(updateResult, () -> { throw new ServiceException("创建/修改站点信息失败!"); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/scheduled/SafeToolTypePushUserTask.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/scheduled/SafeToolTypePushUserTask.java index 37f8adc..3ecf7ae 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/scheduled/SafeToolTypePushUserTask.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/scheduled/SafeToolTypePushUserTask.java @@ -129,7 +129,7 @@ public class SafeToolTypePushUserTask { else { typeNames = typeEntityList.stream().map(SafetyToolTypeEntity::getTypeName).collect(Collectors.joining("、")); } - XxlJobLogger.log("开始推送,推送人:{}",JSONObject.toJSONString(noticeUser.getName())); + XxlJobLogger.log("开始推送,推送人:{}",JSONObject.toJSONString(noticeUser.getRealName())); if(sendType == APP_PUSH && Func.isNotEmpty(noticeUser.getPhone())){ //短信推送 String code = "safeTool"; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ImsMonAlarmInfoWrapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ImsMonAlarmInfoWrapper.java index 896aebf..084d6d5 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ImsMonAlarmInfoWrapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/wrapper/ImsMonAlarmInfoWrapper.java @@ -28,7 +28,7 @@ public class ImsMonAlarmInfoWrapper extends BaseEntityWrapper