From c9b7f6131dc9a23c682bce70d9fc9547575c42bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Wed, 22 Feb 2023 18:00:32 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EC=84=9C=EB=B3=84=20=EB=B6=80?= =?UTF-8?q?=EC=84=9C=20=EC=84=A4=EC=A0=95=20=EC=9E=91=EC=97=85=EC=A4=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dbnt/faisp/config/BaseController.java | 2 +- .../com/dbnt/faisp/kwms/KwmsController.java | 8 +- .../dbnt/faisp/kwms/service/KwmsService.java | 2 +- .../faisp/main/userInfo/PoliceController.java | 8 -- .../mybatisMapper/UserInfoMapper.xml | 3 +- .../templates/adminPage/authMgt/authMgt.html | 12 ++- .../adminPage/userMgt/accessChange.html | 8 +- .../adminPage/userMgt/userEditModal.html | 4 +- .../templates/adminPage/userMgt/userMgt.html | 51 +++++----- .../templates/common/modal/userModal.html | 16 ++-- .../activityCase/officerDiv.html | 2 +- .../resources/templates/faRpt/faRptBoard.html | 20 ++-- .../templates/faRpt/faRptEditModal.html | 2 +- .../templates/faRpt/faRptViewModal.html | 2 +- .../templates/faRpt/readUserRow.html | 2 +- .../faStatistics/asfCov/asfCovViewModal.html | 2 +- .../igActivities/fpiMgt/affair/affairMgt.html | 2 +- .../fpiMgt/affairPlan/planMgt.html | 24 +++-- .../fpiMgt/affairResult/resultMgt.html | 24 +++-- .../templates/police/career/careerModal.html | 6 +- .../police/education/eduEditModal.html | 2 +- .../police/education/educationMgt.html | 92 ++++++++++++++----- .../police/police/historyValueDiv.html | 4 +- .../police/police/policeEditModal.html | 2 +- .../publicBoard/board/boardPage.html | 2 +- .../publicBoard/board/boardViewModal.html | 4 +- .../templates/publicBoard/commentDiv.html | 4 +- .../publicBoard/notice/noticePage.html | 2 +- .../publicBoard/notice/noticeViewModal.html | 4 +- .../templates/publicBoard/qna/qnaPage.html | 2 +- .../publicBoard/qna/qnaViewModal.html | 12 +-- .../publicBoard/reference/referencePage.html | 24 +++-- .../reference/referenceViewModal.html | 4 +- .../resources/templates/sri/readUserRow.html | 2 +- .../resources/templates/sri/sriBoard.html | 16 ++-- .../resources/templates/sri/sriEditModal.html | 2 +- .../resources/templates/sri/sriViewModal.html | 2 +- src/main/resources/templates/user/myInfo.html | 2 +- 38 files changed, 224 insertions(+), 158 deletions(-) diff --git a/src/main/java/com/dbnt/faisp/config/BaseController.java b/src/main/java/com/dbnt/faisp/config/BaseController.java index f39b183b..28aa42e3 100644 --- a/src/main/java/com/dbnt/faisp/config/BaseController.java +++ b/src/main/java/com/dbnt/faisp/config/BaseController.java @@ -123,7 +123,7 @@ public class BaseController { session.setAttribute("userOrgan", loginUser.getOgCd()); String belongValue = ""; belongValue += searchCodeValue(loginUser.getOgCd(), codeMap.get("OG")); - belongValue += searchCodeValue(loginUser.getOfcCd(), codeMap.get("OFC")); + belongValue += searchCodeValue(loginUser.getOfcCd(), codeMap.get(loginUser.getOgCd())); belongValue += searchCodeValue(loginUser.getTitleCd(), codeMap.get("JT")); belongValue += loginUser.getUserNm()+"("+loginUser.getUserId()+")"; session.setAttribute("belongValue", belongValue); diff --git a/src/main/java/com/dbnt/faisp/kwms/KwmsController.java b/src/main/java/com/dbnt/faisp/kwms/KwmsController.java index 3650a82a..a2e07cde 100644 --- a/src/main/java/com/dbnt/faisp/kwms/KwmsController.java +++ b/src/main/java/com/dbnt/faisp/kwms/KwmsController.java @@ -40,13 +40,13 @@ public class KwmsController { mav.addObject("joinFlag", "T"); mav.addObject("userInfo", userInfo); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); - mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); + mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd())); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); mav.addObject("seriesList", codeMgtService.selectCodeMgtList(userInfo.getOutturnCd())); mav.addObject("languageList", codeMgtService.selectCodeMgtList("LNG")); - mav.addObject("eduGrdList", codeMgtService.selectCodeMgtList("EDU")); + mav.addObject("eduGrdList", codeMgtService.selectCodeMgtList("UED")); } }else{ if(savedUser.getUserStatus().equals("USC004")){ @@ -55,7 +55,7 @@ public class KwmsController { mav.addObject("joinFlag", "T"); mav.addObject("userInfo", userInfo); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); - mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); + mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd())); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); @@ -85,7 +85,7 @@ public class KwmsController { mav.addObject("joinFlag", "T"); mav.addObject("userInfo", userInfo); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); - mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); + mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd())); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); mav.addObject("seriesList", codeMgtService.selectCodeMgtList("SRC")); diff --git a/src/main/java/com/dbnt/faisp/kwms/service/KwmsService.java b/src/main/java/com/dbnt/faisp/kwms/service/KwmsService.java index 28375fc9..225d6689 100644 --- a/src/main/java/com/dbnt/faisp/kwms/service/KwmsService.java +++ b/src/main/java/com/dbnt/faisp/kwms/service/KwmsService.java @@ -41,7 +41,7 @@ public class KwmsService { String[] positionAry = empInfo.getLdeptnm().split(" "); userInfo.setOgCd(codeMgtService.searchCodeToCategoryAndValue("OG", positionAry[0])); if (positionAry.length>1){ - userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue("OFC", positionAry[1])); + userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue(userInfo.getOgCd(), positionAry[1])); } } userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm())); diff --git a/src/main/java/com/dbnt/faisp/main/userInfo/PoliceController.java b/src/main/java/com/dbnt/faisp/main/userInfo/PoliceController.java index 25303a8d..e7bd9f44 100644 --- a/src/main/java/com/dbnt/faisp/main/userInfo/PoliceController.java +++ b/src/main/java/com/dbnt/faisp/main/userInfo/PoliceController.java @@ -88,14 +88,6 @@ public class PoliceController { @GetMapping("/policeEditModal") public ModelAndView policeEditModal(@AuthenticationPrincipal UserInfo loginUser,UserInfo userInfo){ ModelAndView mav = new ModelAndView("police/police/policeEditModal"); - mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); - mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); - mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); - mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); - mav.addObject("seriesList", codeMgtService.selectCodeMgtList("SRC")); - mav.addObject("languageList", codeMgtService.selectCodeMgtList("LNG")); - mav.addObject("statusList", codeMgtService.selectCodeMgtList("USC")); - //메뉴권한 확인 String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/police/policeList").get(0).getAccessAuth(); mav.addObject("accessAuth", accessAuth); diff --git a/src/main/resources/mybatisMapper/UserInfoMapper.xml b/src/main/resources/mybatisMapper/UserInfoMapper.xml index 4e593b9d..7a699686 100644 --- a/src/main/resources/mybatisMapper/UserInfoMapper.xml +++ b/src/main/resources/mybatisMapper/UserInfoMapper.xml @@ -53,10 +53,11 @@ og_cd, ofc_cd, title_cd, + duty_cd, wrt_dt from user_info - order by og_cd, ofc_cd, title_cd desc + order by og_cd, title_cd desc limit #{rowCnt} offset #{firstIndex} diff --git a/src/main/resources/templates/adminPage/authMgt/authMgt.html b/src/main/resources/templates/adminPage/authMgt/authMgt.html index 803bbd64..4fbe27ab 100644 --- a/src/main/resources/templates/adminPage/authMgt/authMgt.html +++ b/src/main/resources/templates/adminPage/authMgt/authMgt.html @@ -41,8 +41,10 @@
@@ -81,12 +83,12 @@ - + - - + + diff --git a/src/main/resources/templates/adminPage/userMgt/accessChange.html b/src/main/resources/templates/adminPage/userMgt/accessChange.html index 21a2e5f5..997a06b4 100644 --- a/src/main/resources/templates/adminPage/userMgt/accessChange.html +++ b/src/main/resources/templates/adminPage/userMgt/accessChange.html @@ -39,8 +39,10 @@
@@ -92,7 +94,7 @@
- + diff --git a/src/main/resources/templates/adminPage/userMgt/userEditModal.html b/src/main/resources/templates/adminPage/userMgt/userEditModal.html index aa9d26c4..35c1f3fb 100644 --- a/src/main/resources/templates/adminPage/userMgt/userEditModal.html +++ b/src/main/resources/templates/adminPage/userMgt/userEditModal.html @@ -104,8 +104,8 @@
diff --git a/src/main/resources/templates/adminPage/userMgt/userMgt.html b/src/main/resources/templates/adminPage/userMgt/userMgt.html index f2608395..be54f12d 100644 --- a/src/main/resources/templates/adminPage/userMgt/userMgt.html +++ b/src/main/resources/templates/adminPage/userMgt/userMgt.html @@ -49,8 +49,10 @@
@@ -84,6 +86,7 @@ 소속 부서 계급 + 직책 성명 아이디 식별번호 @@ -97,36 +100,26 @@ - - - - - - - - + + + - - - - - - - - - + + + + - - - - - - - - - + + + + - + + + + + + diff --git a/src/main/resources/templates/common/modal/userModal.html b/src/main/resources/templates/common/modal/userModal.html index 22c1bd51..a24f4c33 100644 --- a/src/main/resources/templates/common/modal/userModal.html +++ b/src/main/resources/templates/common/modal/userModal.html @@ -66,16 +66,16 @@ - - - + + + - - - - + + + + - + diff --git a/src/main/resources/templates/counterIntelligence/activityCase/officerDiv.html b/src/main/resources/templates/counterIntelligence/activityCase/officerDiv.html index 1aba6b7b..a3a6794e 100644 --- a/src/main/resources/templates/counterIntelligence/activityCase/officerDiv.html +++ b/src/main/resources/templates/counterIntelligence/activityCase/officerDiv.html @@ -18,7 +18,7 @@ - + diff --git a/src/main/resources/templates/faRpt/faRptBoard.html b/src/main/resources/templates/faRpt/faRptBoard.html index a40fbb51..014ec450 100644 --- a/src/main/resources/templates/faRpt/faRptBoard.html +++ b/src/main/resources/templates/faRpt/faRptBoard.html @@ -106,20 +106,24 @@ --> - - - - - + + + + + + + - - - + + + + + diff --git a/src/main/resources/templates/faRpt/faRptEditModal.html b/src/main/resources/templates/faRpt/faRptEditModal.html index e5b6172c..f106457d 100644 --- a/src/main/resources/templates/faRpt/faRptEditModal.html +++ b/src/main/resources/templates/faRpt/faRptEditModal.html @@ -103,7 +103,7 @@ - + @@ -142,7 +142,7 @@
- diff --git a/src/main/resources/templates/publicBoard/commentDiv.html b/src/main/resources/templates/publicBoard/commentDiv.html index b0aa019d..5e564c78 100644 --- a/src/main/resources/templates/publicBoard/commentDiv.html +++ b/src/main/resources/templates/publicBoard/commentDiv.html @@ -20,7 +20,7 @@
- @@ -54,7 +54,7 @@
- diff --git a/src/main/resources/templates/publicBoard/notice/noticePage.html b/src/main/resources/templates/publicBoard/notice/noticePage.html index 499492e4..bc919d06 100644 --- a/src/main/resources/templates/publicBoard/notice/noticePage.html +++ b/src/main/resources/templates/publicBoard/notice/noticePage.html @@ -92,7 +92,7 @@ - + diff --git a/src/main/resources/templates/publicBoard/notice/noticeViewModal.html b/src/main/resources/templates/publicBoard/notice/noticeViewModal.html index cbc1f0bf..a330a3f4 100644 --- a/src/main/resources/templates/publicBoard/notice/noticeViewModal.html +++ b/src/main/resources/templates/publicBoard/notice/noticeViewModal.html @@ -109,7 +109,7 @@
- @@ -142,7 +142,7 @@
- diff --git a/src/main/resources/templates/publicBoard/qna/qnaPage.html b/src/main/resources/templates/publicBoard/qna/qnaPage.html index 96c03c2e..cebef107 100644 --- a/src/main/resources/templates/publicBoard/qna/qnaPage.html +++ b/src/main/resources/templates/publicBoard/qna/qnaPage.html @@ -88,7 +88,7 @@ - + diff --git a/src/main/resources/templates/publicBoard/qna/qnaViewModal.html b/src/main/resources/templates/publicBoard/qna/qnaViewModal.html index 61015d6e..03a7eeb7 100644 --- a/src/main/resources/templates/publicBoard/qna/qnaViewModal.html +++ b/src/main/resources/templates/publicBoard/qna/qnaViewModal.html @@ -106,14 +106,14 @@
- -
+ +
- - -
+ +
@@ -142,7 +142,7 @@
- diff --git a/src/main/resources/templates/publicBoard/reference/referencePage.html b/src/main/resources/templates/publicBoard/reference/referencePage.html index 4a030db1..bc9bd7c9 100644 --- a/src/main/resources/templates/publicBoard/reference/referencePage.html +++ b/src/main/resources/templates/publicBoard/reference/referencePage.html @@ -92,15 +92,21 @@ - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/src/main/resources/templates/publicBoard/reference/referenceViewModal.html b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html index 05ed67fa..58c99440 100644 --- a/src/main/resources/templates/publicBoard/reference/referenceViewModal.html +++ b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html @@ -115,7 +115,7 @@
- @@ -148,7 +148,7 @@
- diff --git a/src/main/resources/templates/sri/readUserRow.html b/src/main/resources/templates/sri/readUserRow.html index bf76f099..f6120146 100644 --- a/src/main/resources/templates/sri/readUserRow.html +++ b/src/main/resources/templates/sri/readUserRow.html @@ -12,7 +12,7 @@ - + - - - - - - + + + + + + + + + + diff --git a/src/main/resources/templates/sri/sriEditModal.html b/src/main/resources/templates/sri/sriEditModal.html index 660d7271..1664db4f 100644 --- a/src/main/resources/templates/sri/sriEditModal.html +++ b/src/main/resources/templates/sri/sriEditModal.html @@ -110,7 +110,7 @@ - +