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