설계의뢰 목록 API 검색 null 예외 처리
This commit is contained in:
parent
bd922d9788
commit
ffc6be8752
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user