diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/impl/EgovIndvdlSchdulManageServiceImpl.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/impl/EgovIndvdlSchdulManageServiceImpl.java index 77f14fa..0b10b9a 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/impl/EgovIndvdlSchdulManageServiceImpl.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/impl/EgovIndvdlSchdulManageServiceImpl.java @@ -17,6 +17,7 @@ import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl; import org.springframework.stereotype.Service; import javax.servlet.http.HttpServletRequest; +import java.time.format.DateTimeFormatter; import java.util.*; import java.util.stream.Collectors; @@ -246,8 +247,21 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i commandMap.put("searchMonth", sSearchDate); commandMap.put("searchMode", "MONTH"); + List> resultList = tnCmtEventRepository.getByYyyyMm(sSearchDate) + .stream() + .map(item -> { + Map mapDto = new HashMap<>(); + mapDto.put("evt_start_dt", item.getEvtStartDt().format(DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss.SSS"))); + mapDto.put("evt_end_dt", item.getEvtEndDt().format(DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss.SSS"))); + mapDto.put("schdulId", item.getEvtSeq()); + mapDto.put("schdulNm", item.getEvtTitle()); + + return mapDto; + }) + .collect(Collectors.toList()); + dto.put("prevRequest", commandMap); - dto.put("resultList", tnCmtEventRepository.getByYyyyMm(sSearchDate)); + dto.put("resultList", resultList); resultVO.setResult(dto); diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/commonCode/repository/TnCmtEventRepository.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/commonCode/repository/TnCmtEventRepository.java index 7e29883..604ed2a 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/commonCode/repository/TnCmtEventRepository.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/commonCode/repository/TnCmtEventRepository.java @@ -83,7 +83,7 @@ public interface TnCmtEventRepository extends JpaRepository> getByYyyyMm( + List getByYyyyMm( @Param("sSearchDate") String sSearchDate );