feat: 게시판 연관상품 목록 표준화

This commit is contained in:
이주일
2026-07-18 11:57:45 +09:00
parent 713bd6a64d
commit afbc268b57
4 changed files with 71 additions and 70 deletions

View File

@@ -570,19 +570,11 @@ public class BOGnrlbbscttService {
Map<String, Object> map = new HashMap<String, Object>();
// 게시글 연관상품 조회
List<DataMap> goodsList = new ArrayList<>();
DataMap result = new DataMap();
goodsList = mapper.selectBOBbscttDtlGoods(bbsctt);
/*게시판 설정 > 추천 상품 노출 선택 시 사용자 게시글 상세 상품 노출 */
if (!goodsList.isEmpty()) {
if ("sopmal".equals(bbsctt.getServerDv())) {
result = goodsService.selectBoGoodsRelateList(goodsList);
}
}
/*사용자 , 관리자 페이지 구분*/
if ("sopmal".equals(bbsctt.getServerDv())) {
map.put("goodsList", result);
map.put("goodsList", goodsList);
} else {
map.put("goodsList", goodsList);
}