Skip to content

Commit 28e4050

Browse files
committed
Fix: 일정 검색 시, 일정 구분 셀렉트가 정상적으로 수행되도록 수정
1 parent 79d141d commit 28e4050

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/main/java/egovframework/let/cop/smt/sim/service/ScheduleSearchVO.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class ScheduleSearchVO {
2727
@Schema(description = "검색어", example = "회의")
2828
private String searchKeyword;
2929

30+
@Schema(description = "일정 구분 (1:회의, 2:세미나, 3:강의, 4:교육, 5:기타)", example = "1")
31+
private String schdulSe;
32+
3033
// 일별 검색 시 사용할 전체일자 (yyyyMMdd)
3134
@Schema(description = "일별 조회용 검색일자 (yyyyMMdd)", example = "20250507")
3235
private String searchDay;

src/main/java/egovframework/let/cop/smt/sim/web/EgovIndvdlSchdulManageApiController.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ public ResultVO EgovIndvdlSchdulManageMonthList(
133133
Map<String, Object> paramMap = new HashMap<>();
134134
paramMap.put("searchMonth", sSearchDate);
135135
paramMap.put("searchMode", "MONTH");
136-
136+
137+
// 일정 구분 필터링 추가
138+
if (searchVO.getSchdulSe() != null && !searchVO.getSchdulSe().isEmpty()) {
139+
paramMap.put("schdulSe", searchVO.getSchdulSe());
140+
}
141+
137142
resultMap.put("resultList", egovIndvdlSchdulManageService.selectIndvdlSchdulManageRetrieve(paramMap));
138143
resultMap.put("prevRequest", paramMap);
139144

@@ -441,6 +446,11 @@ public ResultVO EgovIndvdlSchdulManageDailyList(
441446
paramMap.put("searchMode", "DAILY");
442447
paramMap.put("searchDay", strSearchDay);
443448

449+
// 일정 구분 필터링 추가
450+
if (searchVO.getSchdulSe() != null && !searchVO.getSchdulSe().isEmpty()) {
451+
paramMap.put("schdulSe", searchVO.getSchdulSe());
452+
}
453+
444454
resultMap.put("year", iNowYear);
445455
resultMap.put("month", iNowMonth);
446456
resultMap.put("day", iNowDay);
@@ -519,11 +529,16 @@ public ResultVO EgovIndvdlSchdulManageWeekList(
519529
String schdulEndde = dateFormat.format(calNext.getTime());
520530

521531
Map<String, Object> paramMap = new HashMap<>();
522-
532+
523533
paramMap.put("searchMode", "WEEK");
524534
paramMap.put("schdulBgnde", schdulBgnde);
525535
paramMap.put("schdulEndde", schdulEndde);
526536

537+
// 일정 구분 필터링 추가
538+
if (searchVO.getSchdulSe() != null && !searchVO.getSchdulSe().isEmpty()) {
539+
paramMap.put("schdulSe", searchVO.getSchdulSe());
540+
}
541+
527542
resultMap.put("resultList", egovIndvdlSchdulManageService.selectIndvdlSchdulManageRetrieve(paramMap));
528543

529544
return resultVoHelper.buildFromMap(resultMap, ResponseCode.SUCCESS);

0 commit comments

Comments
 (0)