|
|
@@ -353,28 +353,15 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
for (AuthoritiesPo authoritiesPo : poList) { |
|
|
|
//TODO 后期维护各个业务平台 |
|
|
|
if (authoritiesPo.getAuthority().contains("hhz")) { |
|
|
|
BusinessSystemVo businessSystemVo = new BusinessSystemVo(); |
|
|
|
businessSystemVo.setClientId(HhzUrlConstant.HHZ_CLIENT); |
|
|
|
businessSystemVo.setName(HhzUrlConstant.HHZ_NAME); |
|
|
|
businessSystemVoList.add(businessSystemVo); |
|
|
|
} |
|
|
|
if (authoritiesPo.getAuthority().contains("airport")) { |
|
|
|
BusinessSystemVo businessSystemVo = new BusinessSystemVo(); |
|
|
|
businessSystemVo.setClientId(AirportConstant.AIRPORT_CLIENT); |
|
|
|
businessSystemVo.setName(AirportConstant.AIRPORT_NAME); |
|
|
|
businessSystemVoList.add(businessSystemVo); |
|
|
|
} |
|
|
|
if (authoritiesPo.getAuthority().contains("waterway")) { |
|
|
|
BusinessSystemVo businessSystemVo = new BusinessSystemVo(); |
|
|
|
businessSystemVo.setClientId(WaterWayConstant.WATERWAY_CLIENT); |
|
|
|
businessSystemVo.setName(WaterWayConstant.WATERWAY_NAME); |
|
|
|
businessSystemVoList.add(businessSystemVo); |
|
|
|
} |
|
|
|
if (authoritiesPo.getAuthority().contains("freeway")) { |
|
|
|
BusinessSystemVo businessSystemVo = new BusinessSystemVo(); |
|
|
|
businessSystemVo.setClientId(FreeWayConstant.FREEWAY_CLIENT); |
|
|
|
businessSystemVo.setName(FreeWayConstant.FREEWAY_NAME); |
|
|
|
businessSystemVoList.add(businessSystemVo); |
|
|
|
businessSystemVoList.add(getbusinessSystemVo(HhzUrlConstant.HHZ_CLIENT, HhzUrlConstant.HHZ_NAME)); |
|
|
|
}else if (authoritiesPo.getAuthority().contains("airport")) { |
|
|
|
businessSystemVoList.add(getbusinessSystemVo(AirportConstant.AIRPORT_CLIENT, AirportConstant.AIRPORT_NAME)); |
|
|
|
}else if (authoritiesPo.getAuthority().contains("waterway")) { |
|
|
|
businessSystemVoList.add(getbusinessSystemVo(WaterWayConstant.WATERWAY_CLIENT, WaterWayConstant.WATERWAY_NAME)); |
|
|
|
}else if (authoritiesPo.getAuthority().contains("freeway")) { |
|
|
|
businessSystemVoList.add(getbusinessSystemVo(FreeWayConstant.FREEWAY_CLIENT, FreeWayConstant.FREEWAY_NAME)); |
|
|
|
}else if(authoritiesPo.getAuthority().contains("pilot")) { |
|
|
|
businessSystemVoList.add(getbusinessSystemVo(PilotConstant.PILOT_CLIENT, PilotConstant.PILOT_NAME)); |
|
|
|
} |
|
|
|
} |
|
|
|
businessSystemVoList = businessSystemVoList.stream().distinct().collect(Collectors.toList()); |
|
|
@@ -384,6 +371,20 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
return JsonResult.success(pageData); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 封装返回展示类 |
|
|
|
* |
|
|
|
* @param client |
|
|
|
* @param name |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private BusinessSystemVo getbusinessSystemVo(String client, String name) { |
|
|
|
BusinessSystemVo businessSystemVo = new BusinessSystemVo(); |
|
|
|
businessSystemVo.setClientId(client); |
|
|
|
businessSystemVo.setName(name); |
|
|
|
return businessSystemVo; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除租户(逻辑删除) |
|
|
|
* |
|
|
@@ -513,6 +514,11 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
url = url + WaterWayConstant.CREATE_TENANT; |
|
|
|
dto.setClientId(WaterWayConstant.WATERWAY_CLIENT_ADMIN + CommonConstant.COMMA + WaterWayConstant.WATERWAY_CLIENT_MP); |
|
|
|
break; |
|
|
|
//飞手 |
|
|
|
case PilotConstant.PILOT_CLIENT: |
|
|
|
url = url + PilotConstant.CREATE_TENANT; |
|
|
|
dto.setClientId(PilotConstant.PILOT_CLIENT + CommonConstant.COMMA + PilotConstant.PILOT_CLIENT_MP); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
@@ -575,6 +581,11 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
url = url + WaterWayConstant.UPDATE_TENANT; |
|
|
|
dto.setClientId(WaterWayConstant.WATERWAY_CLIENT_ADMIN + CommonConstant.COMMA + WaterWayConstant.WATERWAY_CLIENT_MP); |
|
|
|
break; |
|
|
|
//飞手 |
|
|
|
case PilotConstant.PILOT_CLIENT: |
|
|
|
url = url + PilotConstant.UPDATE_TENANT; |
|
|
|
dto.setClientId(PilotConstant.PILOT_CLIENT + CommonConstant.COMMA + PilotConstant.PILOT_CLIENT_MP); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
@@ -633,6 +644,10 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
case WaterWayConstant.WATERWAY_CLIENT: |
|
|
|
url = url + WaterWayConstant.DELETE_TENANT; |
|
|
|
break; |
|
|
|
//飞手 |
|
|
|
case PilotConstant.PILOT_CLIENT: |
|
|
|
url = url + PilotConstant.DELETE_TENANT; |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |