feat : [관리자] 성인 > 교육신청관리 리스트 정렬 수정

This commit is contained in:
hylee 2023-07-14 17:26:46 +09:00
parent 6073e72a84
commit 61557453c4
2 changed files with 7 additions and 7 deletions

View File

@ -147,11 +147,9 @@ public class EduAplctMngAdultController {
vEEduAplctVO.setNotiUserId(user.getUniqId()); vEEduAplctVO.setNotiUserId(user.getUniqId());
vEEduAplctVO.setMenuNo(session.getAttribute("menuNo").toString()); vEEduAplctVO.setMenuNo(session.getAttribute("menuNo").toString());
System.out.println("orderByQuery getOrderByQuery :: "+ vEEduAplctVO.getOrderByQuery());
// OrderByQuery(교육희망일자) 값이 비여있으면 desc로 초기화 => hylee // OrderByQuery(교육희망일자) 값이 비여있으면 desc로 초기화 => hylee
if(StringUtils.isEmpty(vEEduAplctVO.getOrderByQuery())) { if(StringUtils.isEmpty(vEEduAplctVO.getOrderByQuery())) {
vEEduAplctVO.setOrderByQuery("desc"); vEEduAplctVO.setOrderByQuery("CC.EDU_HOPE_DT desc");
} }
List<VEEduAplctVO> vEEduAplctVOList = vEEduMIXService.selectPagingList(vEEduAplctVO); List<VEEduAplctVO> vEEduAplctVOList = vEEduMIXService.selectPagingList(vEEduAplctVO);

View File

@ -28,6 +28,8 @@
linkPage(1); linkPage(1);
}); });
fn_orderByQueryInit();
}); });
function linkPage(pageNo){ function linkPage(pageNo){
@ -189,11 +191,11 @@
<th>번호</th> <th>번호</th>
<th>교육희망일자 <th>교육희망일자
<c:choose> <c:choose>
<c:when test="${vEEduAplctVO.orderByQuery eq 'asc' }"> <c:when test="${vEEduAplctVO.orderByQuery eq 'CC.EDU_HOPE_DT asc' }">
<img style="cursor:pointer;" class="eduHope" data-info="desc" src="<c:url value='/images/sortUp.png' />" /> <img style="cursor:pointer;" class="eduHope" data-info="CC.EDU_HOPE_DT desc" src="<c:url value='/images/sortUp.png' />" />
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<img style="cursor:pointer;" class="eduHope" data-info="asc" src="<c:url value='/images/sortDown.png' />" /> <img style="cursor:pointer;" class="eduHope" data-info="CC.EDU_HOPE_DT asc" src="<c:url value='/images/sortDown.png' />" />
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</th> </th>