설계의뢰 목록 API 검색 null 예외 처리

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2024-10-17 16:08:25 +09:00
parent bd922d9788
commit ffc6be8752

View File

@ -336,13 +336,27 @@ public class ObjectService {
/* [1]. QSP API (url + param) Setting */
String encodedSchTitle =
URLEncoder.encode(planReqRequest.getSchTitle(), StandardCharsets.UTF_8);
URLEncoder.encode(
StringUtils.isEmpty(planReqRequest.getSchTitle()) ? "" : planReqRequest.getSchTitle(),
StandardCharsets.UTF_8);
String encodedSchAddress =
URLEncoder.encode(planReqRequest.getSchAddress(), StandardCharsets.UTF_8);
URLEncoder.encode(
StringUtils.isEmpty(planReqRequest.getSchAddress())
? ""
: planReqRequest.getSchAddress(),
StandardCharsets.UTF_8);
String encodedSchSaleStoreName =
URLEncoder.encode(planReqRequest.getSchSaleStoreName(), StandardCharsets.UTF_8);
URLEncoder.encode(
StringUtils.isEmpty(planReqRequest.getSchSaleStoreName())
? ""
: planReqRequest.getSchSaleStoreName(),
StandardCharsets.UTF_8);
String encodedSchPlanReqName =
URLEncoder.encode(planReqRequest.getSchPlanReqName(), StandardCharsets.UTF_8);
URLEncoder.encode(
StringUtils.isEmpty(planReqRequest.getSchPlanReqName())
? ""
: planReqRequest.getSchPlanReqName(),
StandardCharsets.UTF_8);
String url = QSP_API_URL + "/api/planReq/list";
String apiUrl =