Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c78c5ad

Browse files
committed
20221116 vo를 메서드명에서 모두 제거, aop 기능 추가
1 parent 265f3f0 commit c78c5ad

26 files changed

+365
-324
lines changed

‎src/main/java/com/singer/application/controller/sf/SF02Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public ResponseEntity<SF02ListResponse> selectSF02Vo(@PathVariable int seq01, @P
3838
log.debug("enter sf02 get");
3939

4040
String userid = getSessionId(request);
41-
SF02ListResponse listResponse = sf02Service.selectSF02(seq01, parents, nowPage, userid);
41+
SF02ListResponse listResponse = sf02Service.selectSF02List(seq01, parents, nowPage, userid);
4242

4343
log.debug("exit sf02 get");
4444
return new ResponseEntity<SF02ListResponse>(listResponse, HttpStatus.OK);

‎src/main/java/com/singer/application/controller/sr/SR01Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public ModelAndView insertPageSR01() throws Exception {
6464
public ResponseEntity<SR01ListResponse> selectSR01Vo(@PathVariable int nowPage) throws Exception {
6565
log.debug("enter sr01 get");
6666

67-
SR01ListResponse list = sr01Service.selectSR01(nowPage);
67+
SR01ListResponse list = sr01Service.selectSR01List(nowPage);
6868

6969
log.debug("exit sr01 get");
7070
return new ResponseEntity<>(list, HttpStatus.OK);

‎src/main/java/com/singer/application/controller/sr/SR03Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public ResponseEntity<SR03ListResponse> selectsr03Vo(@PathVariable int seq01,
3838
log.debug("enter sr03 get");
3939

4040
String userid = getSessionId(request);
41-
SR03ListResponse listResponse = sr03Service.selectSR03(seq01, parents, nowPage, userid);
41+
SR03ListResponse listResponse = sr03Service.selectSR03List(seq01, parents, nowPage, userid);
4242

4343
log.debug("exit sr03 get");
4444
return new ResponseEntity<SR03ListResponse>(listResponse, HttpStatus.OK);

‎src/main/java/com/singer/application/controller/sv/SV01Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ModelAndView selectDetailSV01Vo(@PathVariable int seq) throws Exception {
5959
public ResponseEntity<SV01ListResponse> selectSV01Vo(@PathVariable int nowPage) throws Exception {
6060
log.debug("enter sv01 get");
6161

62-
SV01ListResponse listResponse = sv01Service.selectSV01(nowPage);
62+
SV01ListResponse listResponse = sv01Service.selectSV01List(nowPage);
6363

6464
log.debug("exit sv01 get");
6565
return new ResponseEntity<SV01ListResponse>(listResponse, HttpStatus.OK);

‎src/main/java/com/singer/application/controller/sv/SV04Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public ResponseEntity<SV04ListResponse> selectSV04Vo(@PathVariable int seq01, @P
3939

4040
String userid = getSessionId(request);
4141

42-
SV04ListResponse listResponse = sv04Service.selectSV04(seq01, parents, nowPage, userid);
42+
SV04ListResponse listResponse = sv04Service.selectSV04List(seq01, parents, nowPage, userid);
4343

4444
log.debug("exit sv04 get");
4545
return new ResponseEntity<SV04ListResponse>(listResponse, HttpStatus.OK);

‎src/main/java/com/singer/application/service/sb/SB01Service.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public SB01Response insertSB01(SB01Request sb01Request, MultipartHttpServletRequ
8484

8585
s3Util.putS3File(sb.toString(), file);
8686

87-
sb01Dao.insertSB01Vo(sb01Entity);
87+
sb01Dao.insertSB01(sb01Entity);
8888

8989
SB01Entity sb01Entity2 = new SB01Entity();
9090
sb01Entity2.setSeq(sb01Entity.getSeq());
@@ -101,8 +101,8 @@ public SB01ListResponse selectSB01List(int nowPage) throws Exception {
101101

102102
SB01Entity sb01Entity = new SB01Entity();
103103
sb01Entity.setNowPage(nowPage);
104-
List<SB01Entity> list = sb01Dao.selectSB01Vo(sb01Entity);
105-
SB01Entity entity = sb01Dao.selectSB01VoCount();
104+
List<SB01Entity> list = sb01Dao.selectSB01(sb01Entity);
105+
SB01Entity entity = sb01Dao.selectSB01Count();
106106
int totalCount = ObjectUtils.isEmpty(entity) ? 0 : CommonUtil.getPageCnt(entity.getTotCnt());
107107

108108
return SB01Composer.entityListToResponse(list, nowPage, totalCount);
@@ -113,9 +113,9 @@ public SB01Response selectOneSB01(int seq, String userid) throws Exception {
113113

114114
SB01Entity sb01Entity = new SB01Entity();
115115
sb01Entity.setSeq(seq);
116-
sb01Dao.clickSB01Vo(sb01Entity);
116+
sb01Dao.clickSB01(sb01Entity);
117117
sb01Entity.setSessionid(userid);
118-
SB01Entity sb01EntityResult = sb01Dao.selectOneSB01Vo(sb01Entity);
118+
SB01Entity sb01EntityResult = sb01Dao.selectOneSB01(sb01Entity);
119119
if (!ObjectUtils.isEmpty(sb01EntityResult)) {
120120
if (userid.equals(sb01EntityResult.getUserid())) {
121121
sb01EntityResult.setDeleteYn(true);
@@ -163,19 +163,19 @@ public int updateSB01(SB01Entity sb01Entity, MultipartHttpServletRequest request
163163
sb01Dao.updateVideo(sb01Entity2);
164164
}
165165

166-
return sb01Dao.updateSB01Vo(sb01Entity);
166+
return sb01Dao.updateSB01(sb01Entity);
167167
}
168168

169169
@Transactional(rollbackFor = { Exception.class })
170170
public SB01Response likeSB01(int seq, String sessionid) throws Exception {
171171
SB01Entity sb01Entity = new SB01Entity();
172172
sb01Entity.setSeq(seq);
173-
sb01Dao.likeSB01Vo(sb01Entity);
173+
sb01Dao.likeSB01(sb01Entity);
174174

175175
sb01Entity.setSessionid(sessionid);
176176
sb01Entity.setDatelog(DateUtil.getTodayTime());
177177

178-
sb01Dao.likelogSB01Vo(sb01Entity);
178+
sb01Dao.likelogSB01(sb01Entity);
179179

180180
sb01Entity.setResult(RESULT_CODE.SUCCESS.getValue());
181181
return SB01Composer.entityToResponse(sb01Entity);
@@ -185,12 +185,12 @@ public SB01Response likeSB01(int seq, String sessionid) throws Exception {
185185
public SB01Response hateSB01V(int seq, String sessionid) throws Exception {
186186
SB01Entity sb01Entity = new SB01Entity();
187187
sb01Entity.setSeq(seq);
188-
sb01Dao.hateSB01Vo(sb01Entity);
188+
sb01Dao.hateSB01(sb01Entity);
189189

190190
sb01Entity.setSessionid(sessionid);
191191
sb01Entity.setDatelog(DateUtil.getTodayTime());
192192

193-
sb01Dao.hatelogSB01Vo(sb01Entity);
193+
sb01Dao.hatelogSB01(sb01Entity);
194194

195195
sb01Entity.setResult(RESULT_CODE.SUCCESS.getValue());
196196
return SB01Composer.entityToResponse(sb01Entity);
@@ -202,7 +202,7 @@ public int deleteSB01(int seq, String sessionid) throws Exception {
202202
SB01Entity sb01Entity = new SB01Entity();
203203
sb01Entity.setSeq(seq);
204204
sb01Entity.setSessionid(sessionid);
205-
SB01Entity sb01EntityResult = sb01Dao.selectOneSB01Vo(sb01Entity);
205+
SB01Entity sb01EntityResult = sb01Dao.selectOneSB01(sb01Entity);
206206

207207
if (!StringUtils.equals(sessionid, sb01EntityResult.getUserid())) {
208208
throw new ClientException(HttpStatus.FORBIDDEN);
@@ -211,9 +211,9 @@ public int deleteSB01(int seq, String sessionid) throws Exception {
211211
SB02Entity sb02Entity = new SB02Entity();
212212
sb02Entity.setSeq01(sb01Entity.getSeq());
213213

214-
sb02Dao.delete_seqSB02Vo(sb02Entity);
214+
sb02Dao.deleteSeqSB02(sb02Entity);
215215

216-
return sb01Dao.deleteSB01Vo(sb01Entity);
216+
return sb01Dao.deleteSB01(sb01Entity);
217217
}
218218

219219
public InputStream selectVideo(int seq, HttpServletRequest request) throws Exception {

‎src/main/java/com/singer/application/service/sb/SB02Service.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,26 @@ public SB02Response insertSB02(SB02Request request, String userid) throws Except
2727

2828
SB02Entity sb02Entity = SB02Composer.requestToEntity(request, userid);
2929

30-
sb02Dao.insertSB02Vo(sb02Entity);
30+
sb02Dao.insertSB02(sb02Entity);
3131

3232
return SB02Composer.entityToResponse(sb02Entity);
3333
}
3434

3535
public int likeSB02(SB02Entity sb02Entity) throws Exception {
36-
return sb02Dao.likeSB02Vo(sb02Entity);
36+
return sb02Dao.likeSB02(sb02Entity);
3737
}
3838

3939
public SB02ListResponse selectSB02List(int seq01, int parents, int nowPage, String userid) throws Exception {
4040
SB02Entity sb02Entity = SB02Composer.selectInfoToEntity(seq01, parents, nowPage);
4141

4242
if (sb02Entity.getNowPage() == 1) { // 泥ロ럹�씠吏� �슂泥��떆 Total�븣�븘�빞�븳�떎
43-
sb02Entity.setTotCnt(sb02Dao.selectSF02Total(sb02Entity));
43+
sb02Entity.setTotCnt(sb02Dao.selectSF02Count(sb02Entity));
4444
}
4545
List<SB02Entity> list;
4646
if (sb02Entity.getParents() > 0) {
47-
list = sb02Dao.selectReplySB02Vo(sb02Entity);
47+
list = sb02Dao.selectReplySB02(sb02Entity);
4848
} else {
49-
list = sb02Dao.selectSB02Vo(sb02Entity);
49+
list = sb02Dao.selectSB02(sb02Entity);
5050
}
5151

5252
Stream<SB02Entity> stream = list.stream();
@@ -60,14 +60,14 @@ public SB02ListResponse selectSB02List(int seq01, int parents, int nowPage, Stri
6060
}
6161

6262
public int updateSB02(SB02Entity entity) throws Exception {
63-
return sb02Dao.updateSB02Vo(entity);
63+
return sb02Dao.updateSB02(entity);
6464
}
6565

6666
@Transactional(rollbackFor = { Exception.class })
6767
public int deleteSB02(int seq, int seq01, int parents, String sessionid) throws Exception {
6868

6969
SB02Entity sb02Entity = SB02Composer.deleteInfoToEntity(seq, seq01, parents);
70-
SB02Entity sb02EntityResult = sb02Dao.checkUserSB02Vo(sb02Entity);
70+
SB02Entity sb02EntityResult = sb02Dao.checkUserSB02(sb02Entity);
7171
if (!StringUtils.equals(sessionid, sb02EntityResult.getUserid())) {
7272
throw new ClientException(HttpStatus.FORBIDDEN);
7373
}
@@ -76,7 +76,7 @@ public int deleteSB02(int seq, int seq01, int parents, String sessionid) throws
7676
sb02Dao.deleteChild(sb02Entity);
7777
sb02Entity.setParents(0);
7878
}
79-
return sb02Dao.deleteSB02Vo(sb02Entity);
79+
return sb02Dao.deleteSB02(sb02Entity);
8080
}
8181

8282
}

‎src/main/java/com/singer/application/service/sf/SF01Service.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public SF01Response insertSF01(SF01Request sf01Request, MultipartHttpServletRequ
7979
s3Util.putS3File(S3_FILE_PATH + ftpfilename, file);
8080
file.delete();
8181

82-
int success = sf01Dao.insertSF01Vo(sf01Entity);
82+
int success = sf01Dao.insertSF01(sf01Entity);
8383
sf01Entity.setResult(success);
8484
return SF01Composer.entityToResponse(sf01Entity);
8585
}
@@ -88,7 +88,7 @@ public SF01ListResponse selectSF01List(int nowPage) throws Exception {
8888

8989
SF01Entity sf01Entity = new SF01Entity();
9090
sf01Entity.setNowPage(nowPage);
91-
List<SF01Entity> list = sf01Dao.selectSF01Vo(sf01Entity);
91+
List<SF01Entity> list = sf01Dao.selectSF01(sf01Entity);
9292
SF01Entity entity = sf01Dao.selectSF01Count();
9393
int totalCount = ObjectUtils.isEmpty(entity) ? 0 : CommonUtil.getPageCnt(entity.getTotCnt());
9494
return SF01Composer.entityListToResponse(list, nowPage, totalCount);
@@ -98,9 +98,9 @@ public SF01Response selectOneSF01(int seq, String userid) throws Exception {
9898

9999
SF01Entity sf01Entity = new SF01Entity();
100100
sf01Entity.setSeq(seq);
101-
sf01Dao.clickSF01Vo(sf01Entity);
101+
sf01Dao.clickSF01(sf01Entity);
102102
sf01Entity.setSessionid(userid);
103-
sf01Entity = sf01Dao.selectOneSF01Vo(sf01Entity);
103+
sf01Entity = sf01Dao.selectOneSF01(sf01Entity);
104104
if (!ObjectUtils.isEmpty(sf01Entity)) {
105105
if (userid.equals(sf01Entity.getUserid())) {
106106
sf01Entity.setDeleteYn(true);
@@ -112,19 +112,19 @@ public SF01Response selectOneSF01(int seq, String userid) throws Exception {
112112
}
113113

114114
public int updateSF01(SF01Entity entity) throws Exception {
115-
return sf01Dao.updateSF01Vo(entity);
115+
return sf01Dao.updateSF01(entity);
116116
}
117117

118118
@Transactional(rollbackFor = { Exception.class })
119119
public SF01Response likeSF01(int seq, String sessionid) throws Exception {
120120
SF01Entity sf01Entity = new SF01Entity();
121121
sf01Entity.setSeq(seq);
122-
sf01Dao.likeSF01Vo(sf01Entity);
122+
sf01Dao.likeSF01(sf01Entity);
123123

124124
sf01Entity.setSessionid(sessionid);
125125
sf01Entity.setDatelog(DateUtil.getTodayTime());
126126

127-
sf01Dao.likelogSF01Vo(sf01Entity);
127+
sf01Dao.likelogSF01(sf01Entity);
128128

129129
sf01Entity.setResult(RESULT_CODE.SUCCESS.getValue());
130130
return SF01Composer.entityToResponse(sf01Entity);
@@ -134,12 +134,12 @@ public SF01Response likeSF01(int seq, String sessionid) throws Exception {
134134
public SF01Response hateSF01(int seq, String sessionid) throws Exception {
135135
SF01Entity sf01Entity = new SF01Entity();
136136
sf01Entity.setSeq(seq);
137-
sf01Dao.hateSF01Vo(sf01Entity);
137+
sf01Dao.hateSF01(sf01Entity);
138138

139139
sf01Entity.setSessionid(sessionid);
140140
sf01Entity.setDatelog(DateUtil.getTodayTime());
141141

142-
sf01Dao.hatelogSF01Vo(sf01Entity);
142+
sf01Dao.hatelogSF01(sf01Entity);
143143

144144
sf01Entity.setResult(RESULT_CODE.SUCCESS.getValue());
145145
return SF01Composer.entityToResponse(sf01Entity);
@@ -151,7 +151,7 @@ public int deleteSF01(int seq, String sessionid) throws Exception {
151151
SF01Entity sf01Entity = new SF01Entity();
152152
sf01Entity.setSeq(seq);
153153
sf01Entity.setSessionid(sessionid);
154-
SF01Entity sf01EntityResult = sf01Dao.selectOneSF01Vo(sf01Entity);
154+
SF01Entity sf01EntityResult = sf01Dao.selectOneSF01(sf01Entity);
155155

156156
if (!StringUtils.equals(sessionid, sf01EntityResult.getUserid())) {
157157
throw new ClientException(HttpStatus.FORBIDDEN);
@@ -160,13 +160,13 @@ public int deleteSF01(int seq, String sessionid) throws Exception {
160160
SF02Entity sf02Entity = new SF02Entity();
161161
sf02Entity.setSeq01(sf01Entity.getSeq());
162162

163-
sf02Dao.delete_seqSF02Vo(sf02Entity);
163+
sf02Dao.deleteSeqSF02(sf02Entity);
164164

165165
sf01Entity = sf01Dao.selectFile(sf01Entity);
166166

167167
s3Util.deleteS3File(S3_FILE_PATH + sf01Entity.getFtpfilename());
168168

169-
return sf01Dao.deleteSF01Vo(sf01Entity);
169+
return sf01Dao.deleteSF01(sf01Entity);
170170
}
171171

172172
public File selectFile(int seq, String userid) throws Exception {
@@ -184,7 +184,7 @@ public File selectFile(int seq, String userid) throws Exception {
184184

185185
sf01Entity.setDownuserid(userid);
186186
sf01Entity.setRegdate(DateUtil.getTodayTime());
187-
sf01Dao.mergeSFD1Vo(sf01Entity);
187+
sf01Dao.mergeSFD1(sf01Entity);
188188

189189
return file;
190190
}

‎src/main/java/com/singer/application/service/sf/SF02Service.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@ public SF02Response insertSF02(SF02Request request, String userid) throws Except
2828

2929
SF02Entity sf02Entity = SF02Composer.requestToEntity(request, userid);
3030

31-
sf02Dao.insertSF02Vo(sf02Entity);
31+
sf02Dao.insertSF02(sf02Entity);
3232

3333
return SF02Composer.entityToResponse(sf02Entity);
3434
}
3535

3636
public int likeSF02(SF02Entity entity) throws Exception {
37-
return sf02Dao.likeSF02Vo(entity);
37+
return sf02Dao.likeSF02(entity);
3838
}
3939

40-
public SF02ListResponse selectSF02(int seq01, int parents, int nowPage, String userid) throws Exception {
40+
public SF02ListResponse selectSF02List(int seq01, int parents, int nowPage, String userid) throws Exception {
4141

4242
SF02Entity sf02Entity = SF02Composer.selectInfoToEntity(seq01, parents, nowPage);
4343
if (sf02Entity.getNowPage() == 1) { // 泥ロ럹�씠吏� �슂泥��떆 Total�븣�븘�빞�븳�떎
44-
sf02Entity.setTotCnt(sf02Dao.selectSF02Total(sf02Entity));
44+
sf02Entity.setTotCnt(sf02Dao.selectSF02Count(sf02Entity));
4545
}
4646
List<SF02Entity> list;
4747
if (sf02Entity.getParents() > 0) {
48-
list = sf02Dao.selectReplySF02Vo(sf02Entity);
48+
list = sf02Dao.selectReplySF02(sf02Entity);
4949
} else {
50-
list = sf02Dao.selectSF02Vo(sf02Entity);
50+
list = sf02Dao.selectSF02(sf02Entity);
5151
}
5252

5353
Stream<SF02Entity> stream = list.stream();
@@ -61,14 +61,14 @@ public SF02ListResponse selectSF02(int seq01, int parents, int nowPage, String u
6161
}
6262

6363
public int updateSF02(SF02Entity entity) throws Exception {
64-
return sf02Dao.updateSF02Vo(entity);
64+
return sf02Dao.updateSF02(entity);
6565
}
6666

6767
@Transactional(rollbackFor = { Exception.class })
6868
public int deleteSF02(int seq, int seq01, int parents, String sessionid) throws Exception {
6969

7070
SF02Entity sf02Entity = SF02Composer.deleteInfoToEntity(seq, seq01, parents);
71-
SF02Entity sf02EntityResult = sf02Dao.checkUserSF02Vo(sf02Entity);
71+
SF02Entity sf02EntityResult = sf02Dao.checkUserSF02(sf02Entity);
7272
if (!StringUtils.equals(sessionid, sf02EntityResult.getUserid())) {
7373
throw new ClientException(HttpStatus.FORBIDDEN);
7474
}
@@ -77,7 +77,7 @@ public int deleteSF02(int seq, int seq01, int parents, String sessionid) throws
7777
sf02Dao.deleteChild(sf02Entity);
7878
sf02Entity.setParents(0);
7979
}
80-
return sf02Dao.deleteSF02Vo(sf02Entity);
80+
return sf02Dao.deleteSF02(sf02Entity);
8181
}
8282

8383
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /