From 24699736472ff007bdf9c54673e96f9c59c59595 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Fri, 19 May 2023 16:49:00 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E7=AB=99=E7=82=B9=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=9C=BA=E6=9E=84bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/station/service/impl/StationServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 42f3447..e356877 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 @@ -626,7 +626,9 @@ public class StationServiceImpl extends BaseServiceImpl deptByStation = sysClient.getDeptByStation(request.getStationId(), AuthUtil.getTenantId()); - stationEntity.setRefDept(Optional.ofNullable(deptByStation).map(R::getData).map(Dept::getId).orElse(null)); + Long deptId = Optional.ofNullable(deptByStation).map(R::getData).map(Dept::getId).orElse(null); + stationEntity.setRefDept(deptId); + stationEntity.setCreateDept(deptId); } return buildResult.isSuccess(); }