From 9bbc46402f8f17f6de4a1481a0421f682dd4714e Mon Sep 17 00:00:00 2001 From: "LAPTOP-L3VE7KK2\\USER" Date: Thu, 6 Mar 2025 17:25:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B4=EC=98=81=20API=20=EC=97=B0=EA=B2=B0?= =?UTF-8?q?=20=EC=A3=BC=EC=86=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/interplug/qcast/biz/object/ObjectService.java | 11 +++++++++++ src/main/resources/config/application-prd.yml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/object/ObjectService.java b/src/main/java/com/interplug/qcast/biz/object/ObjectService.java index f4606c78..c36e45d4 100644 --- a/src/main/java/com/interplug/qcast/biz/object/ObjectService.java +++ b/src/main/java/com/interplug/qcast/biz/object/ObjectService.java @@ -169,6 +169,12 @@ public class ObjectService { * @throws Exception */ public List selectObjectMainList(ObjectRequest objectRequest) throws Exception { + if (StringUtils.isEmpty(objectRequest.getSaleStoreId())) { + throw new QcastException( + ErrorCode.INVALID_INPUT_VALUE, + message.getMessage("common.message.required.data", "Sale Store ID")); + } + return objectMapper.selectObjectMainList(objectRequest); } @@ -180,6 +186,11 @@ public class ObjectService { * @throws Exception */ public List selectObjectList(ObjectRequest objectRequest) throws Exception { + if (StringUtils.isEmpty(objectRequest.getSaleStoreId())) { + throw new QcastException( + ErrorCode.INVALID_INPUT_VALUE, + message.getMessage("common.message.required.data", "Sale Store ID")); + } if (!"T01".equals(objectRequest.getSaleStoreId())) { objectRequest.setSchSelSaleStoreId(""); diff --git a/src/main/resources/config/application-prd.yml b/src/main/resources/config/application-prd.yml index e19bdd2b..eab1c789 100644 --- a/src/main/resources/config/application-prd.yml +++ b/src/main/resources/config/application-prd.yml @@ -37,9 +37,9 @@ spring: profiles: scheduler: Y -#QSP +#QSP # http://jp.qsalesplatform.com qsp: - url: http://jp.qsalesplatform.com + url: http://1.248.227.176:8120 master-store-batch-url: /api/master/storeAdditionalInfo master-material-batch-url: /api/master/materialList master-bom-batch-url: /api/master/bomList