feat: 게시판 연관상품 목록 표준화
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user