이준호 전자조정시스템 고도화 커밋

- 조정진행 목록에 온/오프 라인 건수 표시
This commit is contained in:
leejunho 2023-07-10 18:05:37 +09:00
parent 8c1e860376
commit 9613209f9b
6 changed files with 24 additions and 13 deletions

View File

@ -329,8 +329,10 @@ public class ApmController {
cmmVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
cmmVO.setReqOlCdPst("2");
paginationInfo.setTotalRecordCount(cmmService.selectPgrCmmListCnt(cmmVO));
Map<String, Integer> totalRecordCountMap = cmmService.selectPgrCmmListCntForOnlineOffline(cmmVO);
paginationInfo.setTotalRecordCount(totalRecordCountMap.get("cnt"));
model.addAttribute("cntOnline",totalRecordCountMap.get("cntOnline"));
model.addAttribute("cntOffline",totalRecordCountMap.get("cntOffline"));
model.addAttribute("paginationInfo", paginationInfo);
// reqOlCdPst 값이 있으면 과거사건 조회하지 않음

View File

@ -1,6 +1,7 @@
package kcc.kccadr.adjPgrMgr.cmm.service;
import java.util.List;
import java.util.Map;
import kcc.kccadr.adjPgrMgr.arm.service.CmntVO;
@ -12,6 +13,8 @@ public interface PgrCmmService {
List<PgrCmmVO> selectPgrCmmDeptList(PgrCmmVO pgrCmmVO) throws Exception;
int selectPgrCmmListCnt(PgrCmmVO pgrCmmVO) throws Exception;
Map<String, Integer> selectPgrCmmListCntForOnlineOffline(PgrCmmVO pgrCmmVO) throws Exception;
PgrCmmVO selectPgrCmm(PgrCmmVO pgrCmmVO) throws Exception;
@ -72,4 +75,3 @@ public interface PgrCmmService {
public List<PgrCmmVO> selectPgrCmmListForExcel(PgrCmmVO pgrCmmVO) throws Exception;
}

View File

@ -1,6 +1,7 @@
package kcc.kccadr.adjPgrMgr.cmm.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
@ -30,6 +31,10 @@ public class PgrCmmDAO extends EgovAbstractDAO {
public int selectPgrCmmListCnt(PgrCmmVO pgrCmmVO) throws Exception {
return (Integer) select("Cmm.selectPgrCmmListCnt", pgrCmmVO);
}
public Map<String, Integer> selectPgrCmmListCntForOnlineOffline(PgrCmmVO pgrCmmVO) throws Exception {
return (Map) select("Cmm.selectPgrCmmListCnt", pgrCmmVO);
}
/**
* TODO daenge 신청인피신청인 아이디는 어느것으로 하나?? RPPL_ID , RPPL_SEQ

View File

@ -1,10 +1,9 @@
package kcc.kccadr.adjPgrMgr.cmm.service.impl;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.annotation.meta.When;
import javax.persistence.criteria.CriteriaBuilder.Case;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -12,10 +11,7 @@ import org.springframework.stereotype.Repository;
import egovframework.rte.fdl.cmmn.exception.FdlException;
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
import kcc.com.cmm.ComDefaultCodeVO;
import kcc.com.cmm.service.CmmnDetailCode;
import kcc.com.cmm.util.StringUtil;
import kcc.com.cmm.util.StringUtil2;
import kcc.kccadr.adjPgrMgr.arm.service.CmntVO;
import kcc.kccadr.adjPgrMgr.cmm.service.CloseVO;
import kcc.kccadr.adjPgrMgr.cmm.service.PgrCmmService;
@ -141,6 +137,12 @@ public class PgrCmmServiceImpl implements PgrCmmService {
setDayInfo(pgrCmmVO);
return pgrCmmDAO.selectPgrCmmListCnt(pgrCmmVO);
}
@Override
public Map<String, Integer> selectPgrCmmListCntForOnlineOffline(PgrCmmVO pgrCmmVO) throws Exception {
setDayInfo(pgrCmmVO);
return pgrCmmDAO.selectPgrCmmListCntForOnlineOffline(pgrCmmVO);
}
@Override
public PgrCmmVO selectPgrCmm(PgrCmmVO pgrCmmVO) throws Exception {

View File

@ -2,8 +2,6 @@
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="Cmm">
<!-- 목록 조회 공통 쿼리 -->
<sql id="Cmm.selectPgrCmmSql">
FROM ADR_MGR_MASTER M
@ -99,8 +97,10 @@
</sql>
<!-- 목록 조회 전체건수 쿼리 -->
<select id="Cmm.selectPgrCmmListCnt" resultClass="int">
SELECT /*+ RULE */ COUNT(1) CNT
<select id="Cmm.selectPgrCmmListCnt" resultClass="egovframework.rte.psl.dataaccess.util.EgovMap">
SELECT /*+ RULE */ COUNT(1) CNT,
COUNT(CASE WHEN TRIM(M.req_ol_cd)='0' THEN 1 end) CNT_ONLINE,
COUNT(CASE WHEN TRIM(M.req_ol_cd)='1' THEN 1 end) CNT_OFFLINE
<include refid="Cmm.selectPgrCmmSql"></include>
</select>

View File

@ -262,7 +262,7 @@
<span>
<c:out value="${paginationInfo.totalRecordCount}" />
</span>
(온라인 : <span><c:out value="${cntOnline}" /></span>건, 오프라인 : <span><c:out value="${cntOffline}" /></span>건)
</p>
<div class="list_util">
<select class="sel2" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">