이지우 - 관리자 > 알림톡 예약조회 메뉴 속도 개선을 위한 호출 쿼리 수정
This commit is contained in:
parent
ce314a65c0
commit
d698e9decf
@ -321,23 +321,35 @@ public class MjonKakaoATController {
|
||||
}
|
||||
|
||||
searchVO.setSearchCondition2("Y");
|
||||
List<KakaoVO> resultList = mjonKakaoATService.selectReserveMjonKakaoATGroupList(searchVO);
|
||||
//250624 - 최소한의 정보만 조회하는 개선 쿼리로 변경
|
||||
//List<KakaoVO> resultList = mjonKakaoATService.selectReserveMjonKakaoATGroupList(searchVO);
|
||||
|
||||
// 기간검색 설정
|
||||
String toDay = MJUtil.getTodayDate(); //오늘
|
||||
String beforeMonthDay = MJUtil.getBefore1MonthDate(); //한달 전
|
||||
if (null == searchVO.getNtceBgnde() || searchVO.getNtceBgnde().equals("")) {
|
||||
searchVO.setNtceBgnde(beforeMonthDay);
|
||||
}
|
||||
|
||||
List<KakaoVO> resultList = mjonKakaoATService.selectMjonKakaoATGroupCompleteByUserList_advc(searchVO);
|
||||
int totCnt = mjonKakaoATService.selectMjonKakaoATGroupCompleteByUserListCnt_advc(searchVO);
|
||||
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("todayYn", "N");
|
||||
|
||||
if (isTodaySelected(searchVO)) {
|
||||
// 금일 예약발송 대기건수
|
||||
int msgGroupCntSum = mjonKakaoATService.selectMjonKakaoATGroupCntSum(searchVO);
|
||||
model.addAttribute("todayYn", "Y");
|
||||
model.addAttribute("msgGroupCntSum", msgGroupCntSum);
|
||||
}
|
||||
/*
|
||||
* model.addAttribute("todayYn", "N");
|
||||
*
|
||||
* if (isTodaySelected(searchVO)) { // 금일 예약발송 대기건수 int msgGroupCntSum =
|
||||
* mjonKakaoATService.selectMjonKakaoATGroupCntSum(searchVO);
|
||||
* model.addAttribute("todayYn", "Y"); model.addAttribute("msgGroupCntSum",
|
||||
* msgGroupCntSum); }
|
||||
*/
|
||||
|
||||
//알림톡발송 실패 결과 코드정보 리스트 불러오기
|
||||
List<MjonMsgResultCodeVO> resultMsgCodeList = mjonMsgService.selectMsgResultCodeAllList(new MjonMsgResultCodeVO());
|
||||
model.addAttribute("resultMsgCodeList", resultMsgCodeList);
|
||||
|
||||
paginationInfo.setTotalRecordCount(resultList.size() > 0 ? resultList.get(0).getTotCnt() : 0);
|
||||
//paginationInfo.setTotalRecordCount(resultList.size() > 0 ? resultList.get(0).getTotCnt() : 0);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user