|
|
@@ -500,9 +500,11 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
case AirportConstant.AIRPORT_CLIENT: |
|
|
|
url = url + AirportConstant.CREATE_TENANT; |
|
|
|
break; |
|
|
|
//case AirportConstant.AIRPORT_CLIENT: |
|
|
|
// url = url + AirportConstant.CREATE_TENANT; |
|
|
|
// break; |
|
|
|
//高速 |
|
|
|
case FreeWayConstant.FREEWAY_CLIENT: |
|
|
|
url = url + FreeWayConstant.CREATE_TENANT; |
|
|
|
dto.setClientId(FreeWayConstant.FREEWAY_CLIENT_ADMIN + CommonConstant.COMMA + FreeWayConstant.FREEWAY_CLIENT_MP); |
|
|
|
break; |
|
|
|
//航道 |
|
|
|
case WaterWayConstant.WATERWAY_CLIENT: |
|
|
|
url = url + WaterWayConstant.CREATE_TENANT; |
|
|
@@ -525,7 +527,7 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
} |
|
|
|
if (response.getBody().getCode() != JsonResult.SUCCESS) { |
|
|
|
log.error("业务平台新增租户响应失败" + response.getBody()); |
|
|
|
return JsonResult.error(response.getBody().getMsg()); |
|
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg()); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
@@ -556,21 +558,23 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
//河湖长 |
|
|
|
case HhzUrlConstant.HHZ_CLIENT: |
|
|
|
url = url + HhzUrlConstant.UPDATE_TENANT; |
|
|
|
dto.setClientId(HhzUrlConstant.HHZ_CLIENT_ADMIN); |
|
|
|
break; |
|
|
|
//机场 |
|
|
|
case AirportConstant.AIRPORT_CLIENT: |
|
|
|
url = url + AirportConstant.EDIT_TENANT; |
|
|
|
break; |
|
|
|
//case AirportConstant.AIRPORT_CLIENT: |
|
|
|
// url = url + AirportConstant.CREATE_TENANT; |
|
|
|
// break; |
|
|
|
case FreeWayConstant.FREEWAY_CLIENT: |
|
|
|
url = url + FreeWayConstant.UPDATE_TENANT; |
|
|
|
dto.setClientId(FreeWayConstant.FREEWAY_CLIENT_ADMIN + CommonConstant.COMMA + FreeWayConstant.FREEWAY_CLIENT_MP); |
|
|
|
break; |
|
|
|
case WaterWayConstant.WATERWAY_CLIENT: |
|
|
|
url = url + WaterWayConstant.UPDATE_TENANT; |
|
|
|
dto.setClientId(WaterWayConstant.WATERWAY_CLIENT_ADMIN + CommonConstant.COMMA + WaterWayConstant.WATERWAY_CLIENT_MP); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
log.info("请求url:{}", url); |
|
|
|
ResponseEntity<JsonResult> response; |
|
|
|
try { |
|
|
|
log.info("请求url:{}", url); |
|
|
@@ -584,7 +588,7 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
} |
|
|
|
if (response.getBody().getCode() != JsonResult.SUCCESS) { |
|
|
|
log.error("业务平台更新租户响应失败" + response.getBody()); |
|
|
|
return JsonResult.error(response.getBody().getMsg()); |
|
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg()); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
@@ -620,12 +624,12 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
case AirportConstant.AIRPORT_CLIENT: |
|
|
|
url = url + AirportConstant.DELETE_TENANT; |
|
|
|
break; |
|
|
|
//case AirportConstant.AIRPORT_CLIENT: |
|
|
|
// url = url + AirportConstant.CREATE_TENANT; |
|
|
|
// break; |
|
|
|
//case AirportConstant.AIRPORT_CLIENT: |
|
|
|
// url = url + AirportConstant.CREATE_TENANT; |
|
|
|
// break; |
|
|
|
case FreeWayConstant.FREEWAY_CLIENT: |
|
|
|
url = url + FreeWayConstant.DELETE_TENANT; |
|
|
|
break; |
|
|
|
case WaterWayConstant.WATERWAY_CLIENT: |
|
|
|
url = url + WaterWayConstant.DELETE_TENANT; |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
@@ -642,7 +646,7 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
} |
|
|
|
if (response.getBody().getCode() != JsonResult.SUCCESS) { |
|
|
|
log.error("业务平台删除租户响应失败" + response.getBody()); |
|
|
|
return JsonResult.error(response.getBody().getMsg()); |
|
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), response.getBody().getMsg()); |
|
|
|
} |
|
|
|
return JsonResult.success(); |
|
|
|
} |