관리자 - 일정 관리, 현황 본인 일정만 조회되게 수정

This commit is contained in:
jiwoo 2023-06-22 11:07:44 +09:00
parent 6f440eda2c
commit 88f3d7b318
2 changed files with 20 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import kcc.com.cmm.service.EgovFileMngService;
import kcc.com.cmm.service.EgovFileMngUtil;
import kcc.com.cmm.service.FileVO;
import kcc.com.cmm.util.RedirectUrlMaker;
import kcc.com.utl.fcc.service.EgovStringUtil;
import kcc.kccadr.sch.service.SchduleManageService;
import kcc.kccadr.sch.service.SchduleManageVO;
import org.apache.commons.lang3.StringUtils;
@ -84,6 +85,12 @@ public class SchduleManageController {
schduleManageVO.setSearchSortOrd("desc");
}
//본인 일정만 조회
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
schduleManageVO.setFrstRegisterId(userId);
/** paging */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(schduleManageVO.getPageIndex());
@ -224,6 +231,10 @@ public class SchduleManageController {
@RequestMapping(value = "/kccadr/sch/SchduleManagerAjaxLoadData.do")
@ResponseBody
public List<SchduleManageVO> schduleManagerAjaxLoadData(@ModelAttribute("schduleManageVO") SchduleManageVO schduleManageVO, ModelMap model) throws Exception {
//본인 일정만 조회
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
schduleManageVO.setFrstRegisterId(userId);
return schduleManageService.selectSchManageStatusList(schduleManageVO);
}

View File

@ -76,6 +76,9 @@
LAST_UPDUSR_ID AS lastUpdusrId
FROM ADR_SCH_MGR A
WHERE 1=1
<isNotEmpty property="frstRegisterId">
AND A.FRST_REGISTER_ID = #frstRegisterId#
</isNotEmpty>
<isNotEmpty property="searchStartDt" prepend="AND">
TO_CHAR([START],'YYYYMMDD') <![CDATA[ >= ]]> #searchStartDt#
</isNotEmpty>
@ -126,6 +129,9 @@
LAST_UPDUSR_ID AS lastUpdusrId
FROM ADR_SCH_MGR A
WHERE 1=1
<isNotEmpty property="frstRegisterId">
AND A.FRST_REGISTER_ID = #frstRegisterId#
</isNotEmpty>
<isNotEmpty property="searchKeyword">
<isEqual prepend="AND" property="searchCondition" compareValue="">
( A.TITLE LIKE CONCAT('%' , #searchKeyword#, '%') OR
@ -159,6 +165,9 @@
COUNT(*) totcnt
FROM ADR_SCH_MGR A
WHERE 1=1
<isNotEmpty property="frstRegisterId">
AND A.FRST_REGISTER_ID = #frstRegisterId#
</isNotEmpty>
<isNotEmpty property="searchKeyword">
<isEqual prepend="AND" property="searchCondition" compareValue="">
( A.TITLE LIKE CONCAT('%' , #searchKeyword#, '%') OR