2022-11-10 10:00 사건 문서 조회 이력 작업

This commit is contained in:
myname 2022-11-10 10:11:23 +09:00
parent d8e10d3961
commit 7723fdd969
6 changed files with 291 additions and 1 deletions

View File

@ -24,4 +24,10 @@ public interface AdrHstryMgrDetailService {
//L
List<AdrHstryMgrVO> selectCancelList(AdrHstryMgrVO adrHstryMgrVO) throws Exception;
List<AdrHstryMgrVO> selectDocHstryList1(AdrHstryMgrVO adrHstryMgrVO) throws Exception;
List<AdrHstryMgrVO> selectDocHstryList2(AdrHstryMgrVO adrHstryMgrVO) throws Exception;
List<AdrHstryMgrVO> selectDocHstryList3(AdrHstryMgrVO adrHstryMgrVO) throws Exception;
}

View File

@ -45,6 +45,15 @@ public class AdrHstryMgrVO extends ComDefaultVO implements Serializable {
private String cCodeNm; //코드명(사용자)
private String eCodeNm; //코드명(추가된)
private String searchBgnDe;
private String searchEndDe;
private String totalLogCnt;
private String adrNo;
private String minRegDt;
private String maxRegDt;
private String userNm;
public String getAdrSeq() {
return adrSeq;
@ -167,4 +176,46 @@ public class AdrHstryMgrVO extends ComDefaultVO implements Serializable {
public void setStatCd(String statCd) {
this.statCd = statCd;
}
public String getSearchBgnDe() {
return searchBgnDe;
}
public void setSearchBgnDe(String searchBgnDe) {
this.searchBgnDe = searchBgnDe;
}
public String getSearchEndDe() {
return searchEndDe;
}
public void setSearchEndDe(String searchEndDe) {
this.searchEndDe = searchEndDe;
}
public String getTotalLogCnt() {
return totalLogCnt;
}
public void setTotalLogCnt(String totalLogCnt) {
this.totalLogCnt = totalLogCnt;
}
public String getAdrNo() {
return adrNo;
}
public void setAdrNo(String adrNo) {
this.adrNo = adrNo;
}
public String getMinRegDt() {
return minRegDt;
}
public void setMinRegDt(String minRegDt) {
this.minRegDt = minRegDt;
}
public String getMaxRegDt() {
return maxRegDt;
}
public void setMaxRegDt(String maxRegDt) {
this.maxRegDt = maxRegDt;
}
public String getUserNm() {
return userNm;
}
public void setUserNm(String userNm) {
this.userNm = userNm;
}
}

View File

@ -84,4 +84,19 @@ public class AdrHstryMgrDetailDAO extends EgovAbstractDAO {
List<AdrHstryMgrVO> tlist = (List<AdrHstryMgrVO>) list("AdrHstryMgrDetailDAO.selectCancelList", adrHstryMgrVO);
return tlist;
}
public List<AdrHstryMgrVO> selectDocHstryList1(AdrHstryMgrVO adrHstryMgrVO) throws Exception {
List<AdrHstryMgrVO> tlist = (List<AdrHstryMgrVO>) list("AdrHstryMgrDetailDAO.selectDocHstryList1", adrHstryMgrVO);
return tlist;
}
public List<AdrHstryMgrVO> selectDocHstryList2(AdrHstryMgrVO adrHstryMgrVO) throws Exception {
List<AdrHstryMgrVO> tlist = (List<AdrHstryMgrVO>) list("AdrHstryMgrDetailDAO.selectDocHstryList2", adrHstryMgrVO);
return tlist;
}
public List<AdrHstryMgrVO> selectDocHstryList3(AdrHstryMgrVO adrHstryMgrVO) throws Exception {
List<AdrHstryMgrVO> tlist = (List<AdrHstryMgrVO>) list("AdrHstryMgrDetailDAO.selectDocHstryList3", adrHstryMgrVO);
return tlist;
}
}

View File

@ -63,4 +63,16 @@ public class AdrHstryMgrDetailServiceImpl implements AdrHstryMgrDetailService {
return adrHstryMgrDetailDAO.selectCancelList(adrHstryMgrVO);
}
public List<AdrHstryMgrVO> selectDocHstryList1(AdrHstryMgrVO adrHstryMgrVO) throws Exception{
return adrHstryMgrDetailDAO.selectDocHstryList1(adrHstryMgrVO);
}
public List<AdrHstryMgrVO> selectDocHstryList2(AdrHstryMgrVO adrHstryMgrVO) throws Exception{
return adrHstryMgrDetailDAO.selectDocHstryList2(adrHstryMgrVO);
}
public List<AdrHstryMgrVO> selectDocHstryList3(AdrHstryMgrVO adrHstryMgrVO) throws Exception{
return adrHstryMgrDetailDAO.selectDocHstryList3(adrHstryMgrVO);
}
}

View File

@ -34,6 +34,8 @@ import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kcc.com.cmm.EgovMessageSource;
import kcc.com.cmm.LoginVO;
import kcc.com.cmm.util.RedirectUrlMaker;
import kcc.kccadr.advc.service.AdrHstryMgrDetailService;
import kcc.kccadr.advc.service.AdrHstryMgrVO;
import kcc.let.sym.log.clg.service.EgovLoginLogService;
import kcc.let.sym.log.clg.service.LoginLog;
@ -70,6 +72,10 @@ public class EgovLoginLogController {
@Resource(name = "egovMessageSource")
EgovMessageSource egovMessageSource;
@Resource(name = "adrHstryMgrDetailService")
private AdrHstryMgrDetailService adrHstryMgrDetailService;
//배열 정의{"컬럼순차번호, 컬럼이름, 컬럼내용, 컬럼이름에 붙여야할 내용(엑셀코드양식다운로드시 필요)"}
private String[][] logExcelValue ={
{"0" ,"번호" , "1" , "" },
@ -707,5 +713,116 @@ public class EgovLoginLogController {
}
/**
* 사건별 문서 이력 리스트1 - 사건 단위의 전체 이력 정보
*
* @param loginLog
* @return sym/log/clg/SelectWebLogList.do
* @throws Exception
*/
@RequestMapping(value = "/sym/log/doc/SelectDocLogList1.do")
public String SelectDocLogList1(@ModelAttribute("searchVO") AdrHstryMgrVO adrHstryMgrVO,
//@RequestParam Map<String, Object> commandMap ,
ModelMap model) throws Exception {
System.out.println("adrHstryMgrVO.getPageIndex()");
System.out.println(adrHstryMgrVO.getPageIndex());
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(adrHstryMgrVO.getPageIndex());
paginationInfo.setRecordCountPerPage(adrHstryMgrVO.getPageUnit());
paginationInfo.setPageSize(adrHstryMgrVO.getPageSize());
adrHstryMgrVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
adrHstryMgrVO.setLastIndex(paginationInfo.getLastRecordIndex());
adrHstryMgrVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
/*
if("".equals(loginLog.getSearchSortCnd())){ //최초조회시 최신것 조회List
loginLog.setSearchSortCnd("logId");
loginLog.setSearchSortOrd("desc");
}
*/
//List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog);
List<AdrHstryMgrVO> userMenuList = adrHstryMgrDetailService.selectDocHstryList1(adrHstryMgrVO);
//int adminLogListCnt = loginLogService.selectAmdinLogTotCnt(loginLog);
paginationInfo.setTotalRecordCount(userMenuList.get(0).getTotCnt());
model.addAttribute("paginationInfo", paginationInfo);
//model.addAttribute("adminLogList", adminLogList);
//List<AdrHstryMgrVO> userMenuList = adrHstryMgrDetailService.selectDocHstryList1(adrHstryMgrVO);
model.addAttribute("userMenuList", userMenuList);
return "sym/log/doc/SelectDocLogList1";
}
/**
* 사건별 문서 이력 리스트2 - 사건 단위의 전체 이력 정보
*
* @param loginLog
* @return sym/log/doc/SelectDocLogList2.do
* @throws Exception
*/
@RequestMapping(value = "/sym/log/doc/SelectDocLogList2.do")
public String SelectDocLogList2(@ModelAttribute("searchVO") AdrHstryMgrVO adrHstryMgrVO,
//@RequestParam Map<String, Object> commandMap ,
ModelMap model) throws Exception {
/*
System.out.println("adrHstryMgrVO.getPageIndex()");
System.out.println(adrHstryMgrVO.getPageIndex());
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(adrHstryMgrVO.getPageIndex());
paginationInfo.setRecordCountPerPage(adrHstryMgrVO.getPageUnit());
paginationInfo.setPageSize(adrHstryMgrVO.getPageSize());
adrHstryMgrVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
adrHstryMgrVO.setLastIndex(paginationInfo.getLastRecordIndex());
adrHstryMgrVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
*/
/*
if("".equals(loginLog.getSearchSortCnd())){ //최초조회시 최신것 조회List
loginLog.setSearchSortCnd("logId");
loginLog.setSearchSortOrd("desc");
}
*/
//List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog);
List<AdrHstryMgrVO> userMenuList = adrHstryMgrDetailService.selectDocHstryList2(adrHstryMgrVO);
/*
//int adminLogListCnt = loginLogService.selectAmdinLogTotCnt(loginLog);
paginationInfo.setTotalRecordCount(userMenuList.get(0).getTotCnt());
model.addAttribute("paginationInfo", paginationInfo);
//model.addAttribute("adminLogList", adminLogList);
*/
//List<AdrHstryMgrVO> userMenuList = adrHstryMgrDetailService.selectDocHstryList1(adrHstryMgrVO);
model.addAttribute("userMenuList", userMenuList);
return "sym/log/doc/SelectDocLogList2";
}
/**
* 사건별 문서 이력 리스트2 - 사건 단위의 상세 접근 사용자 정보
*
* @param loginLog
* @return sym/log/doc/SelectDocLogList3.do
* @throws Exception
*/
@RequestMapping(value = "/sym/log/doc/SelectDocLogList3.do")
public String SelectDocLogList3(@ModelAttribute("searchVO") AdrHstryMgrVO adrHstryMgrVO,
//@RequestParam Map<String, Object> commandMap ,
ModelMap model) throws Exception {
List<AdrHstryMgrVO> userMenuList = adrHstryMgrDetailService.selectDocHstryList3(adrHstryMgrVO);
model.addAttribute("userMenuList", userMenuList);
return "sym/log/doc/SelectDocLogList3";
}
}

View File

@ -208,4 +208,93 @@
ORDER BY a.adr_hstry_mgr_detail_seq desc
</select>
<!-- 사건문서이력조회L -->
<select id="AdrHstryMgrDetailDAO.selectDocHstryList1" parameterClass="AdrHstryMgrVO" resultClass="AdrHstryMgrVO">
SELECT a.adr_seq AS adrSeq
, COUNT(*) AS totalLogCnt
, b.adr_no AS adrNo
, MIN(a.frst_regist_pnttm) minRegDt
, MAX(a.frst_regist_pnttm) maxRegDt
, COUNT(1) OVER() AS totCnt
FROM adr_hstry_mgr a
, adr_mgr_master b
WHERE a.menu_id LIKE 'V%'
AND a.adr_seq=b.adr_seq
AND b.adr_no IS NOT null
AND b.adr_no !='2019조정0001'
<isNotEmpty prepend="AND" property="searchKeyword">
b.adr_no LIKE CONCAT('%',#searchKeyword#,'%')
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchStartDt">
a.frst_regist_pnttm >= TO_DATETIME(CONCAT (#searchStartDt#,' 00:00:00'),'YYYY-MM-DD HH24:MI:SS')
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchEndDt">
TO_DATETIME(CONCAT (#searchEndDt#,' 23:59:59'),'YYYY-MM-DD HH24:MI:SS') >= a.a.frst_regist_pnttm
</isNotEmpty>
GROUP BY a.adr_seq
ORDER BY b.adr_no
LIMIT #recordCountPerPage# OFFSET #firstIndex#
</select>
<!-- 사건문서이력조회L -->
<select id="AdrHstryMgrDetailDAO.selectDocHstryList2" parameterClass="AdrHstryMgrVO" resultClass="AdrHstryMgrVO">
SELECT a.adr_seq AS adrSeq
, a.menu_id AS menuId
, a.menu_nm AS menuNm
, COUNT(*) AS totalLogCnt
, b.adr_no AS adrNo
, MIN(a.frst_regist_pnttm) minRegDt
, MAX(a.frst_regist_pnttm) maxRegDt
, COUNT(1) OVER() AS totCnt
FROM adr_hstry_mgr a
, adr_mgr_master b
WHERE a.menu_id LIKE 'V%'
AND a.adr_seq=b.adr_seq
AND b.adr_no IS NOT null
AND b.adr_no !='2019조정0001'
AND a.adr_seq=#adrSeq#
<isNotEmpty prepend="AND" property="searchKeyword">
b.adr_no LIKE CONCAT('%',#searchKeyword#,'%')
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchStartDt">
a.frst_regist_pnttm >= TO_DATETIME(CONCAT (#searchStartDt#,' 00:00:00'),'YYYY-MM-DD HH24:MI:SS')
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchEndDt">
TO_DATETIME(CONCAT (#searchEndDt#,' 23:59:59'),'YYYY-MM-DD HH24:MI:SS') >= a.a.frst_regist_pnttm
</isNotEmpty>
GROUP BY a.adr_seq, a.menu_id, a.menu_nm, b.adr_no
ORDER BY b.adr_no, a.menu_nm
</select>
<!-- 사건문서이력조회L -->
<select id="AdrHstryMgrDetailDAO.selectDocHstryList3" parameterClass="AdrHstryMgrVO" resultClass="AdrHstryMgrVO">
SELECT
a.menu_id AS menuId
, a.menu_nm AS menuNm
, a.frst_regist_pnttm AS minRegDt
, b.user_nm AS userNm
, c.adr_no AS adrNo
, COUNT(1) OVER() AS totCnt
FROM adr_hstry_mgr a
LEFT OUTER JOIN lettnemplyrinfo b
ON(a.frst_register_id=b.esntl_id)
, adr_mgr_master c
WHERE a.menu_id LIKE 'V%'
AND a.adr_seq=#adrSeq#
AND a.menu_id=#menuId#
AND a.adr_seq=c.adr_seq
ORDER BY a.frst_regist_pnttm desc
</select>
</sqlMap>