|
|
@ -656,7 +656,9 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn |
|
|
|
request.setDeptName(stationEntity.getName()); |
|
|
|
request.setDeptName(stationEntity.getName()); |
|
|
|
request.setParentId(Func.isNotEmpty(stationEntity.getHigherDept()) ? stationEntity.getHigherDept() : request.getParentId()); |
|
|
|
request.setParentId(Func.isNotEmpty(stationEntity.getHigherDept()) ? stationEntity.getHigherDept() : request.getParentId()); |
|
|
|
request.setDeptCategory(StationConstants.DeptCategoryEnum.STATION.getValue()); |
|
|
|
request.setDeptCategory(StationConstants.DeptCategoryEnum.STATION.getValue()); |
|
|
|
request.setSort(1); |
|
|
|
if(Func.isEmpty(request.getSort())) { |
|
|
|
|
|
|
|
request.setSort(1); |
|
|
|
|
|
|
|
} |
|
|
|
R<Void> buildResult = deptClient.createOrUpdateDept(request); |
|
|
|
R<Void> buildResult = deptClient.createOrUpdateDept(request); |
|
|
|
if (buildResult.isSuccess()) { |
|
|
|
if (buildResult.isSuccess()) { |
|
|
|
// 所属机构回传
|
|
|
|
// 所属机构回传
|
|
|
|