관리자 메뉴에서 비외사사용자 표현 오류 수정.

master
강석 최 2023-04-05 13:50:00 +09:00
parent bc2d6b0113
commit 17ad411b38
5 changed files with 13 additions and 9 deletions

View File

@ -46,7 +46,7 @@ public class BaseController {
public ModelAndView loginCheck(@AuthenticationPrincipal UserInfo loginUser) {
ModelAndView mav = null;
if(loginUser == null){
mav = new ModelAndView("redirect:/login2");
mav = new ModelAndView("redirect:/login");
}else{
mav = new ModelAndView("redirect:/dashboard");
}

View File

@ -37,13 +37,13 @@ public class UserMgtController {
public ModelAndView userMgtPage(@AuthenticationPrincipal UserInfo loginUser, UserInfo userInfo) {
ModelAndView mav = new ModelAndView("adminPage/userMgt/userMgt");
userInfo.setQueryInfo();
if(userInfo.getUserStatus() == null || userInfo.getUserStatus().equals("")) {
userInfo.setUserStatus("USC003");
}
userInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
mav.addObject("userInfoList", userInfoService.selectUserInfoList(userInfo));
userInfo.setContentCnt(userInfoService.selectUserInfoListCnt(userInfo));
userInfo.setPaginationInfo();
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
mav.addObject("searchParams", userInfo);
return mav;
}
@ -124,12 +124,12 @@ public class UserMgtController {
public ModelAndView accessChangePage(@AuthenticationPrincipal UserInfo loginUser, UserInfo userInfo){
ModelAndView mav = new ModelAndView("adminPage/userMgt/accessChange");
userInfo.setQueryInfo();
userInfo.setUserStatus("USC003");
userInfo.setUserRole(loginUser.getUserRole());
userInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
mav.addObject("userInfoList", userInfoService.selectUserInfoList(userInfo));
userInfo.setContentCnt(userInfoService.selectUserInfoListCnt(userInfo));
userInfo.setPaginationInfo();
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
mav.addObject("searchParams", userInfo);
return mav;
}

View File

@ -11,7 +11,7 @@
user_status = #{userStatus}
</when>
<otherwise>
user_status = 'USC003'
user_status in ('USC003', 'USC007')
</otherwise>
</choose>
<if test='userId != null and userId != ""'>

View File

@ -31,8 +31,10 @@
<div class="col-auto">
<select class="form-select form-select-sm" name="ogCd" id="ogCdSearch">
<option value="">관서 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.ogCd==commonCode.itemCd}"></option>
<th:block th:each="code:${session.commonCode.get('OG')}">
<th:block th:if="${code.useChk eq 'T' and #lists.contains(mgtOrganList, code.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ogCd eq code.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>

View File

@ -42,8 +42,10 @@
<select class="form-select form-select-sm" name="ogCd" id="ogCdSearch">
<option value="">관서 선택</option>
<th:block th:each="code:${session.commonCode.get('OG')}">
<th:block th:if="${code.useChk eq 'T' and #lists.contains(mgtOrganList, code.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ogCd eq code.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<div class="col-auto">