물건 판매점 목록 조회 t01 조건 수정 및 로그인 response custCd 추가

This commit is contained in:
LEEYONGJAE 2024-10-28 17:55:21 +09:00
parent c056b7efdb
commit 90930a11f1
2 changed files with 29 additions and 27 deletions

View File

@ -24,5 +24,5 @@ public class UserResponse {
private String pwdInitYn; // Password Init Yn
private String storeLvl; // Store Level
private String groupId; // groupId
private String custCd; // custCd
}

View File

@ -84,9 +84,6 @@ public class ObjectService {
if ("T01".equals(saleStoreId)) {
storeList = objectMapper.selectSaleStoreAllList();
} else {
storeList = objectMapper.selectSaleStoreList(saleStoreId);
}
// [1]. 판매점 목록 조회 결과
if (storeList.size() > 0) {
@ -117,10 +114,15 @@ public class ObjectService {
storeList.sort(Comparator.comparing(SaleStoreResponse::getPriority));
}
} else {
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR, (String) result.get("resultMsg"));
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR,
(String) result.get("resultMsg"));
}
}
} else {
storeList = objectMapper.selectSaleStoreList(saleStoreId);
}
return storeList;
}