Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
tyty 2 years ago
parent
commit
7dc8042685
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

@ -626,7 +626,9 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn
if (buildResult.isSuccess()) { if (buildResult.isSuccess()) {
// 所属机构回传 // 所属机构回传
R<Dept> deptByStation = sysClient.getDeptByStation(request.getStationId(), AuthUtil.getTenantId()); R<Dept> 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(); return buildResult.isSuccess();
} }

Loading…
Cancel
Save