|
@@ -2,12 +2,15 @@ package com.oqpo.api.service.stinfo;
|
2
|
2
|
|
3
|
3
|
|
4
|
4
|
|
|
5
|
+import com.oqpo.api.entity.CodeEntity;
|
5
|
6
|
import com.oqpo.api.entity.stinfo.BrandEntity;
|
6
|
7
|
import com.oqpo.api.mapper.stinfo.BrandMapper;
|
7
|
8
|
import com.oqpo.api.service.CommonService;
|
8
|
9
|
import com.oqpo.api.web.dto.request.GridRequest;
|
9
|
10
|
import com.oqpo.api.web.dto.response.GridResponse;
|
|
11
|
+import com.oqpo.api.web.dto.response.code.CodeSearchListResponse;
|
10
|
12
|
import com.oqpo.api.web.dto.response.stinfo.BrandSearchResponse;
|
|
13
|
+import com.oqpo.api.web.dto.response.stinfo.brand.AfflBrandSearchResponse;
|
11
|
14
|
import lombok.extern.slf4j.Slf4j;
|
12
|
15
|
import org.springframework.beans.factory.annotation.Autowired;
|
13
|
16
|
import org.springframework.stereotype.Service;
|
|
@@ -22,7 +25,7 @@ public class BrandService extends CommonService {
|
22
|
25
|
private BrandMapper brandMapper;
|
23
|
26
|
|
24
|
27
|
/*
|
25
|
|
- 가맹점 리스트 조회
|
|
28
|
+ session 브랜드 리스트 조회
|
26
|
29
|
*/
|
27
|
30
|
public List<BrandEntity> selectTargetBrandGridList(String userId, String authTpCd) throws Exception {
|
28
|
31
|
return brandMapper.selectTargetBrandGridList(userId, authTpCd);
|
|
@@ -50,4 +53,12 @@ public class BrandService extends CommonService {
|
50
|
53
|
return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);
|
51
|
54
|
}
|
52
|
55
|
|
|
56
|
+ /*
|
|
57
|
+ 가맹점 브랜드 리스트 조회
|
|
58
|
+ */
|
|
59
|
+ public AfflBrandSearchResponse selectAfflBrandList(String afflShopId) throws Exception {
|
|
60
|
+ List<BrandEntity> entities = brandMapper.selectAfflBrandList(afflShopId);
|
|
61
|
+ return AfflBrandSearchResponse.toDTO(entities);
|
|
62
|
+ }
|
|
63
|
+
|
53
|
64
|
}
|