|
@@ -30,7 +30,7 @@ public class NticeService extends CommonService {
|
30
|
30
|
공지 검색 리스트 조회
|
31
|
31
|
*/
|
32
|
32
|
|
33
|
|
- public GridResponse selectNticeGridList(String afflShopId, String brandId, String authTpCd, String sAfflShopId, String sBrandId, String fromDt, String toDt, String sNticeTitl, GridRequest gridRequest) throws Exception {
|
|
33
|
+ public GridResponse selectNticeGridList( String afflShopId, String brandId, String authTpCd, String sAfflShopId, String sBrandId, String fromDt, String toDt, String sNticeTitl, GridRequest gridRequest) throws Exception {
|
34
|
34
|
int gridPage = gridRequest.getGridPage();
|
35
|
35
|
int gridSize = gridRequest.getGridSize();
|
36
|
36
|
|
|
@@ -81,7 +81,6 @@ public class NticeService extends CommonService {
|
81
|
81
|
entity.setBrandChk(saveNticeRequest.getBrandChk());
|
82
|
82
|
entity.setShopChk(saveNticeRequest.getShopChk());
|
83
|
83
|
entity.setSupplyChk(saveNticeRequest.getSupplyChk());
|
84
|
|
- log.info("=============>" + entity.getBrandId() + "==" + entity.getAfflShopId() + "==" + entity.getNticeTitl() );
|
85
|
84
|
if ("C".equals(saveNticeRequest.getViewCd())) {
|
86
|
85
|
// 신규 공지번호 생성
|
87
|
86
|
entity.setNticeNo(fnGetKeyNo(6));
|
|
@@ -134,8 +133,8 @@ public class NticeService extends CommonService {
|
134
|
133
|
.map(m -> NticeTargetResponse.builder()
|
135
|
134
|
.viewCd("R")
|
136
|
135
|
.nticeNo(m.getNticeNo())
|
137
|
|
- .userId(m.getBrandId())
|
138
|
|
- .userNm(m.getBrandNm())
|
|
136
|
+ .brandId(m.getBrandId())
|
|
137
|
+ .brandNm(m.getBrandNm())
|
139
|
138
|
.build())
|
140
|
139
|
.collect(Collectors.toList());
|
141
|
140
|
return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);
|