Compare commits
10 Commits
e865725999
...
18b6f702e2
| Author | SHA1 | Date |
|---|---|---|
|
|
18b6f702e2 | |
|
|
42df5ab159 | |
|
|
87c6a09aa4 | |
|
|
e3c91a9449 | |
|
|
13c3bd88ca | |
|
|
cc718b8df3 | |
|
|
e23f997e8d | |
|
|
e1b715188d | |
|
|
f7ba2ef68b | |
|
|
28b54fcc47 |
|
|
@ -17,6 +17,7 @@
|
|||
"qs": "^6.11.0",
|
||||
"react": "^18.2.0",
|
||||
"react-bootstrap": "^2.9.0",
|
||||
"react-csv": "^2.2.2",
|
||||
"react-datepicker": "^4.8.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.11.0",
|
||||
|
|
@ -14987,6 +14988,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/react-csv": {
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/react-csv/-/react-csv-2.2.2.tgz",
|
||||
"integrity": "sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw=="
|
||||
},
|
||||
"node_modules/react-datepicker": {
|
||||
"version": "4.10.0",
|
||||
"resolved": "https://registry.npmjs.org/react-datepicker/-/react-datepicker-4.10.0.tgz",
|
||||
|
|
@ -29021,6 +29027,11 @@
|
|||
"warning": "^4.0.3"
|
||||
}
|
||||
},
|
||||
"react-csv": {
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/react-csv/-/react-csv-2.2.2.tgz",
|
||||
"integrity": "sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw=="
|
||||
},
|
||||
"react-datepicker": {
|
||||
"version": "4.10.0",
|
||||
"resolved": "https://registry.npmjs.org/react-datepicker/-/react-datepicker-4.10.0.tgz",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@
|
|||
"recharts": "^2.10.3",
|
||||
"styled-components": "^6.0.9",
|
||||
"web-vitals": "^2.1.4",
|
||||
"date-fns": "^3.2.0"
|
||||
"date-fns": "^3.2.0",
|
||||
"react-csv": "^2.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.4",
|
||||
|
|
|
|||
|
|
@ -15,26 +15,26 @@
|
|||
.btn.noscript {font-size: 0;}
|
||||
.btn > span {position: relative;}
|
||||
|
||||
.btn_blue_h46 {height: 46px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 46px; text-align: center; background: #169bd5; padding: 0px;}
|
||||
.btn_blue_h46:hover {height: 46px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #169bd5; padding: 0px;}
|
||||
.btn_skyblue_h46 {height: 46px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 46px; text-align: center; background: #daedf5; padding: 0px;}
|
||||
.btn_skyblue_h46:hover {height: 46px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #daedf5; padding: 0px;}
|
||||
.btn_red_h46 {height: 46px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 46px; text-align: center; background: #ed898b; padding: 0px;}
|
||||
.btn_red_h46:hover {height: 46px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #ed898b; padding: 0px;}
|
||||
.btn_blue_h46 {height: 46px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 46px; text-align: center; background: #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h46:hover {height: 46px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h46 {height: 46px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 46px; text-align: center; background: #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h46:hover {height: 46px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h46 {height: 46px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 46px; text-align: center; background: #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h46:hover {height: 46px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 46px; text-align: center; border: 1px solid #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_blue_h32 {height: 32px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 32px; text-align: center; background: #169bd5; padding: 0px;}
|
||||
.btn_blue_h32:hover {height: 32px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #169bd5; padding: 0px;}
|
||||
.btn_skyblue_h32 {height: 32px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 32px; text-align: center; background: #daedf5; padding: 0px;}
|
||||
.btn_skyblue_h32:hover {height: 32px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #daedf5; padding: 0px;}
|
||||
.btn_red_h32 {height: 32px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 32px; text-align: center; background: #ed898b; padding: 0px;}
|
||||
.btn_red_h32:hover {height: 32px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #ed898b; padding: 0px;}
|
||||
.btn_blue_h32 {height: 32px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 32px; text-align: center; background: #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h32:hover {height: 32px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h32 {height: 32px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 32px; text-align: center; background: #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h32:hover {height: 32px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h32 {height: 32px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 32px; text-align: center; background: #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h32:hover {height: 32px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 32px; text-align: center; border: 1px solid #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_blue_h31 {height: 31px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 31px; text-align: center; background: #169bd5; padding: 0px;}
|
||||
.btn_blue_h31:hover {height: 31px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #169bd5; padding: 0px;}
|
||||
.btn_skyblue_h31 {height: 31px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 31px; text-align: center; background: #daedf5; padding: 0px;}
|
||||
.btn_skyblue_h31:hover {height: 31px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #daedf5; padding: 0px;}
|
||||
.btn_red_h31 {height: 31px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 31px; text-align: center; background: #ed898b; padding: 0px;}
|
||||
.btn_red_h31:hover {height: 31px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #ed898b; padding: 0px;}
|
||||
.btn_blue_h31 {height: 31px; border-radius: 5px; color: #fff; font-size: 15px; line-height: 31px; text-align: center; background: #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h31:hover {height: 31px; border-radius: 5px; color: #169bd5; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #169bd5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h31 {height: 31px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 31px; text-align: center; background: #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h31:hover {height: 31px; border-radius: 5px; color: #005b82; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #daedf5; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h31 {height: 31px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 31px; text-align: center; background: #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h31:hover {height: 31px; border-radius: 5px; color: darkred; font-size: 15px; line-height: 31px; text-align: center; border: 1px solid #ed898b; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_upload {position: relative; width: 180px; height: 46px; border-radius: 5px; color: #fff; font-size: 16px; line-height: 46px; text-align: center; background: #169bd5;}
|
||||
.btn_upload span {display: inline-block; height: 46px; line-height: 46px;}
|
||||
|
|
@ -329,3 +329,7 @@ select::-ms-expand {display:none;}
|
|||
font-weight: 700;
|
||||
margin: 0
|
||||
}
|
||||
|
||||
.recharts-legend-item-text {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
|
@ -170,26 +170,42 @@
|
|||
.userList .result .list_item > div:nth-child(7) {width: 100px;}
|
||||
|
||||
/* 사이트관리 > 환경설정 > 메뉴관리 */
|
||||
.menuList .head > span:nth-child(1) {width: 60px;}
|
||||
.menuList .head > span:nth-child(2) {width: 100px;}
|
||||
.menuList .head > span:nth-child(1) {width: 100px;}
|
||||
.menuList .head > span:nth-child(2) {width: 150px;}
|
||||
.menuList .head > span:nth-child(3) {width: 100px;}
|
||||
.menuList .head > span:nth-child(4) {width: 120px;}
|
||||
.menuList .head > span:nth-child(5) {width: 100px;}
|
||||
.menuList .head > span:nth-child(6) {width: 100px;}
|
||||
.menuList .head > span:nth-child(4) {width: 60px;}
|
||||
.menuList .head > span:nth-child(5) {width: 60px;}
|
||||
.menuList .head > span:nth-child(6) {width: 200px;}
|
||||
.menuList .head > span:nth-child(7) {width: 100px;}
|
||||
.menuList .head > span:nth-child(8) {width: 100px;}
|
||||
.menuList .head > span:nth-child(9) {width: 100px;}
|
||||
.menuList .head > span:nth-child(10) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(1) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(2) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(1) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(2) {width: 150px;}
|
||||
.menuList .result .list_item > div:nth-child(3) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(4) {width: 120px;}
|
||||
.menuList .result .list_item > div:nth-child(5) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(6) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(4) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(5) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(6) {width: 200px;}
|
||||
.menuList .result .list_item > div:nth-child(7) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(8) {width: 100px;}
|
||||
|
||||
/* 사이트관리 > 환경설정 > 메뉴관리 */
|
||||
.menuList .head > span:nth-child(1) {width: 100px;}
|
||||
.menuList .head > span:nth-child(2) {width: 150px;}
|
||||
.menuList .head > span:nth-child(3) {width: 100px;}
|
||||
.menuList .head > span:nth-child(4) {width: 60px;}
|
||||
.menuList .head > span:nth-child(5) {width: 60px;}
|
||||
.menuList .head > span:nth-child(6) {width: 60px;}
|
||||
.menuList .head > span:nth-child(7) {width: 60px;}
|
||||
.menuList .head > span:nth-child(8) {width: 60px;}
|
||||
.menuList .head > span:nth-child(9) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(1) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(2) {width: 150px;}
|
||||
.menuList .result .list_item > div:nth-child(3) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(4) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(5) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(6) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(7) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(8) {width: 60px;}
|
||||
.menuList .result .list_item > div:nth-child(9) {width: 100px;}
|
||||
.menuList .result .list_item > div:nth-child(10) {width: 100px;}
|
||||
|
||||
/* 사이트소개 */
|
||||
.SITE_INTRO .ds_1 .t_1 {margin-top: 52px; color: #000; font-size: 26px; font-weight: 500; text-align: center;}
|
||||
|
|
@ -279,6 +295,35 @@
|
|||
.BRD010 .result .list_item > div:nth-child(1) {width: 60%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
|
||||
.BRD010 .result .list_item > div:nth-child(2) {width: 40%;}
|
||||
|
||||
|
||||
/* 로그현황 - 파일다운현황*/
|
||||
.BRD011 .head > span:nth-child(1) {width: 80px; font-size: 11px;}
|
||||
.BRD011 .head > span:nth-child(2) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(3) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(4) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(5) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(6) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(7) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(8) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(9) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(10) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(11) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(12) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .head > span:nth-child(13) {width: 60px; font-size: 10px;}
|
||||
.BRD011 .result .list_item > div:nth-child(1) {width: 80px;}
|
||||
.BRD011 .result .list_item > div:nth-child(2) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(3) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(4) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(5) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(6) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(7) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(8) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(9) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(10) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(11) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(12) {width: 60px;}
|
||||
.BRD011 .result .list_item > div:nth-child(13) {width: 60px;}
|
||||
|
||||
/* 게시판 사용관리 등록 */
|
||||
.BOARD_USE_LIST .board_view2 dl dt {width: 185px;}
|
||||
.BOARD_USE_LIST .board_view2 dl:nth-child(2) dd .f_input2 {width: 490px; margin-left: 17px;}
|
||||
|
|
|
|||
|
|
@ -101,17 +101,27 @@
|
|||
.list_1 li::before {top: 8px;}
|
||||
|
||||
|
||||
.btn_blue_h46 {height: 40px; font-size: 13px; line-height: 40px;}
|
||||
.btn_skyblue_h46 {height: 40px; font-size: 13px; line-height: 40px;}
|
||||
.btn_red_h46 {height: 40px; font-size: 13px; line-height: 40px;}
|
||||
.btn_blue_h46 {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h46 {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h46 {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h46:hover {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h46:hover {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h46:hover {height: 40px; font-size: 13px; line-height: 40px; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_blue_h32 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_skyblue_h32 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_red_h32 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_blue_h32 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h32 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h32 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h32:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h32:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h32:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_blue_h31 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h31 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h31 {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_blue_h31:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_skyblue_h31:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
.btn_red_h31:hover {height: 28px; font-size: 13px; line-height: 28px; padding: 0 1rem 0 1rem !important;}
|
||||
|
||||
.btn_blue_h31 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_skyblue_h31 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_red_h31 {height: 28px; font-size: 13px; line-height: 28px;}
|
||||
.btn_calendar {width: 40px; height: 40px; background-size: contain;}
|
||||
.btn_upload {height: 40px; font-size: 13px; line-height: 40px;}
|
||||
.btn_upload span {height: 40px; line-height: 40px;}
|
||||
|
|
@ -454,6 +464,22 @@
|
|||
.BRD010 .result .list_item > div:nth-child(1) {width: 60%;}
|
||||
.BRD010 .result .list_item > div:nth-child(2) {width: 40%; padding: 0 0 2px 0; font-weight: 700; text-align: left;}
|
||||
|
||||
/* 로그현황 - 파일다운현황 추후 수정 lim */
|
||||
.BRD011 .head {display: none;}
|
||||
.BRD011 .result .list_item {padding: 16px 0; border-bottom: 1px solid #dde2e5;}
|
||||
.BRD011 .result .list_item > div {border-bottom: 0; font-size: 14px;}
|
||||
.BRD011 .result .list_item > div:nth-child(1) {display: none;}
|
||||
.BRD011 .result .list_item > div:nth-child(2) {width: 100%; padding: 0 0 2px 0; font-weight: 700; text-align: left;}
|
||||
.BRD011 .result .list_item > div:nth-child(3),
|
||||
.BRD011 .result .list_item > div:nth-child(4),
|
||||
.BRD011 .result .list_item > div:nth-child(5),
|
||||
.BRD011 .result .list_item > div:nth-child(6) {width: auto; margin-right: 5px; padding: 0;}
|
||||
.BRD011 .result .list_item > div:nth-child(3)::after,
|
||||
.BRD011 .result .list_item > div:nth-child(4)::after,
|
||||
.BRD011 .result .list_item > div:nth-child(5)::after,
|
||||
.BRD011 .result .list_item > div:nth-child(6)::after {content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 6px; background: #ccc; vertical-align: 0px;}
|
||||
.BRD011 .result .list_item > div:nth-child(6)::after {content: none;}
|
||||
|
||||
.BOARD_USE_LIST .board_view2 dl dt {width: 95px;}
|
||||
.BOARD_USE_LIST .board_view2 dl:nth-child(2) dd .f_select {width: 100%;}
|
||||
.BOARD_USE_LIST .board_view2 dl:nth-child(2) dd .f_input2 {width: 100%; margin: 15px 0 0 0;}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ function Schedules(props) {
|
|||
console.log("EgovAdminScheduleList [location] : ", location);
|
||||
|
||||
const DATE = new Date();
|
||||
const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate());
|
||||
//const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate());
|
||||
const TODAY = new Date(2023, 2, DATE.getDate());
|
||||
|
||||
const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || { schdulSe: '', year: TODAY.getFullYear(), month: TODAY.getMonth(), date: TODAY.getDate() });
|
||||
const [calendarTag, setCalendarTag] = useState([]);
|
||||
|
|
@ -150,23 +151,46 @@ function Schedules(props) {
|
|||
if (day !== 0) {//당월 일별 구현
|
||||
let sDate = day.toString().length === 1 ? "0" + day.toString() : day.toString();
|
||||
let iUseDate = Number(mutsUseYearMonth + sDate);
|
||||
if (scheduleList.length > 0 || sDate === "01") {//일정 있는 경우
|
||||
if (scheduleList.length > 0) {//일정 있는 경우
|
||||
return (
|
||||
<td key={keyIdx++}>
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} state={{iUseDate : mutsUseYearMonth + sDate + "000000"}} className="day" key={keyIdx++}>{day}</Link><br />
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} state={{iUseDate: mutsUseYearMonth + sDate + "000000"}} className="day"
|
||||
key={keyIdx++}>{day}</Link><br/>
|
||||
{
|
||||
<div>
|
||||
<div>오후 03:00 [P] 해양경찰청</div>
|
||||
<div>오후 05:00 [P] 미팅...</div>
|
||||
</div>
|
||||
scheduleList.map((schedule, scheduleIdx) => {
|
||||
let test = schedule.evt_start_dt.replace('-','');
|
||||
console.log( test );
|
||||
let iBeginDate = Number(schedule.evt_start_dt.replace('-','').substring(0, 8));
|
||||
let iEndDate = Number(schedule.evt_end_dt.replace('-','').substring(0, 8));
|
||||
|
||||
/*
|
||||
let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8));
|
||||
let iEndDate = Number(schedule.schdulEndde.substring(0, 8));
|
||||
innerConsole("scheduleList ", day, scheduleIdx, iBeginDate, iUseDate, iEndDate, iUseDate >= iBeginDate && iUseDate <= iEndDate);
|
||||
innerConsole("schedule.schdulId ", schedule.schdulId);
|
||||
if (iUseDate >= iBeginDate && iUseDate <= iEndDate) {
|
||||
return (
|
||||
<>
|
||||
<Link to={{pathname: URL.ADMIN_SCHEDULE_DETAIL}}
|
||||
state={{schdulId: schedule.schdulId}}
|
||||
key={keyIdx++}>{schedule.schdulNm}
|
||||
</Link>
|
||||
<br/>
|
||||
</>
|
||||
);
|
||||
} else return <></>
|
||||
*/
|
||||
|
||||
return <></>
|
||||
})
|
||||
}
|
||||
</td>
|
||||
);
|
||||
} else {//일정 없는 경우
|
||||
return (
|
||||
<td key={keyIdx++}>
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} state={{iUseDate : mutsUseYearMonth + sDate + "000000"}} className="day" key={keyIdx++}>{day}</Link><br />
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} state={{iUseDate: mutsUseYearMonth + sDate + "000000"}} className="day"
|
||||
key={keyIdx++}>{day}</Link><br/>
|
||||
</td>);
|
||||
}
|
||||
} else if (day === 0) {// 이전달/다음달 구현
|
||||
|
|
|
|||
|
|
@ -33,42 +33,23 @@ function SchedulesDetail(props) {
|
|||
EgovNet.requestFetch(retrieveDetailURL,
|
||||
requestOptions,
|
||||
function (resp) {
|
||||
let rawScheduleDetail = resp.result.scheduleDetail;
|
||||
rawScheduleDetail.startDateTime = convertDate(rawScheduleDetail.schdulBgnde);
|
||||
rawScheduleDetail.endDateTime = convertDate(rawScheduleDetail.schdulEndde);
|
||||
rawScheduleDetail.reptitSeCodeNm = getCodeName(resp.result.reptitSeCode, resp.result.scheduleDetail.reptitSeCode);
|
||||
rawScheduleDetail.schdulIpcrCodeNm = getCodeName(resp.result.schdulIpcrCode, resp.result.scheduleDetail.schdulIpcrCode);
|
||||
rawScheduleDetail.schdulSeNm = getCodeName(resp.result.schdulSe, resp.result.scheduleDetail.schdulSe);
|
||||
setScheduleDetail(rawScheduleDetail);
|
||||
setUser(resp.result.user);
|
||||
setBoardAttachFiles(resp.result.resultFiles);
|
||||
/**
|
||||
* dto.put("evtSeq", tnCmtEvent.getEvtSeq()); // sequence
|
||||
dto.put("divMeet", tnCmtEvent.getEvtType()); // 구분
|
||||
dto.put("upCommittee", tnCmtEvent.getUpCmtSeq()); // 심의위원회 상위 코드 번호
|
||||
dto.put("committee", tnCmtEvent.getCmtSeq()); // 심의위원회 하위 코드 번호
|
||||
dto.put("title", tnCmtEvent.getEvtTitle()); // 제목
|
||||
dto.put("location", tnCmtEvent.getEvtLocation()); // 장소
|
||||
dto.put("contents", tnCmtEvent.getEvtContents()); // 내용
|
||||
dto.put("startDate", tnCmtEvent.getEvtStartDt()); // 날짜/시간의 시작 일시
|
||||
dto.put("endDate", tnCmtEvent.getEvtEndDt()); // 날짜/시간의 종료 일시
|
||||
*/
|
||||
setScheduleDetail(resp.result);
|
||||
}
|
||||
);
|
||||
}
|
||||
const convertDate = (str) => {
|
||||
let year = str.substring(0, 4);
|
||||
let month = str.substring(4, 6);
|
||||
let date = str.substring(6, 8);
|
||||
let hour = str.substring(8, 10);
|
||||
let minute = str.substring(10, 12);
|
||||
return {
|
||||
year: year,
|
||||
month: month,
|
||||
date: date,
|
||||
hour: hour,
|
||||
minute: minute,
|
||||
dateForm: year + "년 " + month + "월 " + date + "일 " + hour + "시 " + minute + "분 "
|
||||
}
|
||||
}
|
||||
|
||||
const getCodeName = (codeArr, code) => {
|
||||
return (
|
||||
codeArr.map((codeObj) => {
|
||||
if (codeObj.code === code.trim()) return codeObj.codeNm
|
||||
else return "";
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const onClickDeleteSchedule = (schdulId) => {
|
||||
const deleteBoardURL = `/schedule/${schdulId}`;
|
||||
|
|
@ -132,40 +113,30 @@ function SchedulesDetail(props) {
|
|||
{/* <!-- 게시판 상세보기 --> */}
|
||||
<div className="board_view2">
|
||||
<dl>
|
||||
<dt>일정구분</dt>
|
||||
<dd>{scheduleDetail.schdulSeNm}</dd>
|
||||
<dt>구분</dt>
|
||||
<dd>{scheduleDetail.divMeetNm}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>중요도</dt>
|
||||
<dd>{scheduleDetail.schdulIpcrCodeNm}</dd>
|
||||
<dt>심의위원회</dt>
|
||||
<dd>{scheduleDetail.upCommitteeNm} - {scheduleDetail.committeeNm}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>부서</dt>
|
||||
<dd>{scheduleDetail.schdulDeptName}</dd>
|
||||
<dt>제목</dt>
|
||||
<dd>{scheduleDetail.title}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>일정명</dt>
|
||||
<dd>{scheduleDetail.schdulNm}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>일정내용</dt>
|
||||
<dd>{scheduleDetail.schdulCn}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>반복구분</dt>
|
||||
<dd>{scheduleDetail.reptitSeCodeNm}</dd>
|
||||
<dt>장소</dt>
|
||||
<dd>{scheduleDetail.location}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>날짜/시간</dt>
|
||||
<dd> {scheduleDetail.startDateTime?.dateForm} ~ {scheduleDetail.endDateTime?.dateForm}</dd>
|
||||
<dd> {scheduleDetail.startDate} ~ {scheduleDetail.endDate}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>담당자</dt>
|
||||
<dd>{scheduleDetail.schdulChargerName}</dd>
|
||||
<dt>내용</dt>
|
||||
<dd>{scheduleDetail.contents}</dd>
|
||||
</dl>
|
||||
|
||||
<EgovAttachFile boardFiles={boardAttachFiles} />
|
||||
|
||||
{/* <!-- 버튼영역 --> */}
|
||||
<div className="board_btn_area">
|
||||
{user.id &&
|
||||
|
|
@ -179,11 +150,10 @@ function SchedulesDetail(props) {
|
|||
onClick={(e) => {
|
||||
onClickDeleteSchedule(location.state?.schdulId);
|
||||
}}>삭제</button>
|
||||
|
||||
</div>
|
||||
}
|
||||
<div className="right_col btn1">
|
||||
<Link to={URL.ADMIN_SCHEDULE} className="btn btn_blue_h46 w_100">목록</Link>
|
||||
<Link to={URL.ADMIN__COMMITTEE__SCHEDULES} className="btn btn_blue_h46 w_100">목록</Link>
|
||||
</div>
|
||||
</div>
|
||||
{/* <!--// 버튼영역 --> */}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,98 @@
|
|||
import React from 'react';
|
||||
import React, {useCallback, useEffect, useState} from 'react';
|
||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||
import {Link} from "react-router-dom";
|
||||
import URL from "constants/url";
|
||||
import * as EgovNet from "api/egovFetch";
|
||||
|
||||
|
||||
function MenuAuthMgt(props) {
|
||||
const [listTag, setListTag] = useState([]);
|
||||
|
||||
const retrieveList = useCallback(() => {
|
||||
EgovNet.requestFetch(
|
||||
'/admin/config/menu-auth-mgt',
|
||||
{
|
||||
method: "GET"
|
||||
},
|
||||
(resp) => {
|
||||
let mutListTag = [];
|
||||
|
||||
setListTag([]);
|
||||
// 리스트 항목 구성
|
||||
resp.result.menuList.forEach(function (item, index) {
|
||||
mutListTag.push(
|
||||
<div className={"list_item"} key={"userListDiv_"+index}>
|
||||
<div>{item.menuId}</div>
|
||||
<div>{item.menuTitle}</div>
|
||||
<div>{item.menuGroup}</div>
|
||||
<div>{item.menuLevel}</div>
|
||||
<div>{item.menuSort}</div>
|
||||
<div>{item.menuUrl}</div>
|
||||
<div>{item.menuTypeValue}</div>
|
||||
<div>
|
||||
<button className={"btn btn_blue_h31 px-1"} onClick={()=>{editMenu(item)}}>수정</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
if(!mutListTag.length) mutListTag.push(<p className="no_data" key="0">검색된 결과가 없습니다.</p>); // 게시판 목록 초기값
|
||||
setListTag(mutListTag);
|
||||
},
|
||||
function (resp) {
|
||||
console.log("err response : ", resp);
|
||||
}
|
||||
);
|
||||
},[]);
|
||||
|
||||
function editMenu(menu){
|
||||
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
/*retrieveList();*/
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
MenuAuthMgt
|
||||
<div className="c_wrap">
|
||||
<div className="location">
|
||||
<ul>
|
||||
<li><Link to={URL.MAIN} className="home">Home</Link></li>
|
||||
<li>사이트관리</li>
|
||||
<li>환경설정</li>
|
||||
<li><Link to={URL.ADMIN_MENU_AUTH}>메뉴 권한 관리</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="layout">
|
||||
{/* <!-- Navigation --> */}
|
||||
<EgovLeftNav/>
|
||||
<div className="contents NOTICE_LIST" id="contents">
|
||||
{/* <!-- 본문 --> */}
|
||||
|
||||
<div className="top_tit">
|
||||
<h1 className="tit_1">메뉴 관리</h1>
|
||||
</div>
|
||||
<h2 className="tit_2"></h2>
|
||||
|
||||
<div className="board_list menuList">
|
||||
<div className="head">
|
||||
<span>메뉴 코드</span>
|
||||
<span>메뉴 이름</span>
|
||||
<span>부모 메뉴</span>
|
||||
<span>레벨1</span>
|
||||
<span>레벨2</span>
|
||||
<span>레벨3</span>
|
||||
<span>레벨4</span>
|
||||
<span>레벨5</span>
|
||||
<span></span>
|
||||
</div>
|
||||
<div className="result">
|
||||
{listTag}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,67 @@ import {Link} from "react-router-dom";
|
|||
import URL from "constants/url";
|
||||
|
||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||
import * as EgovNet from "../../../api/egovFetch";
|
||||
import Modal from "react-bootstrap/Modal";
|
||||
import MenuModal from "./menuMgt/MenuModal";
|
||||
|
||||
|
||||
function MenuMgt({}) {
|
||||
|
||||
const [listTag, setListTag] = useState([]);
|
||||
|
||||
const [show, setShow] = useState(false);
|
||||
const [modalBody, setModalBody] = useState();
|
||||
|
||||
const handleClose = () => setShow(false);
|
||||
const handleShow = () => setShow(true);
|
||||
|
||||
const retrieveList = useCallback(() => {
|
||||
handleClose()
|
||||
EgovNet.requestFetch(
|
||||
'/admin/config/menu-mgt',
|
||||
{
|
||||
method: "GET"
|
||||
},
|
||||
(resp) => {
|
||||
let mutListTag = [];
|
||||
|
||||
setListTag([]);
|
||||
// 리스트 항목 구성
|
||||
resp.result.menuList.forEach(function (item, index) {
|
||||
mutListTag.push(
|
||||
<div className={"list_item"} key={"userListDiv_"+index}>
|
||||
<div>{item.menuId}</div>
|
||||
<div>{item.menuTitle}</div>
|
||||
<div>{item.menuGroup}</div>
|
||||
<div>{item.menuLevel}</div>
|
||||
<div>{item.menuSort}</div>
|
||||
<div>{item.menuUrl}</div>
|
||||
<div>{item.menuTypeValue}</div>
|
||||
<div>
|
||||
<button className={"btn btn_blue_h31 px-1"} onClick={()=>{editMenu(item)}}>수정</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
if(!mutListTag.length) mutListTag.push(<p className="no_data" key="0">검색된 결과가 없습니다.</p>); // 게시판 목록 초기값
|
||||
setListTag(mutListTag);
|
||||
},
|
||||
function (resp) {
|
||||
console.log("err response : ", resp);
|
||||
}
|
||||
);
|
||||
},[]);
|
||||
|
||||
function editMenu(menu){
|
||||
handleShow();
|
||||
setModalBody(<MenuModal savedInfo={menu} reloadFunction={retrieveList}/>)
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
retrieveList();
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
<div className="c_wrap">
|
||||
|
|
@ -15,7 +72,7 @@ function MenuMgt({}) {
|
|||
<li><Link to={URL.MAIN} className="home">Home</Link></li>
|
||||
<li>사이트관리</li>
|
||||
<li>환경설정</li>
|
||||
<li><Link to={URL.ADMIN__USERS__LIST}>메뉴 관리</Link></li>
|
||||
<li><Link to={URL.ADMIN_MENU}>메뉴 관리</Link></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="layout">
|
||||
|
|
@ -31,24 +88,27 @@ function MenuMgt({}) {
|
|||
|
||||
<div className="board_list menuList">
|
||||
<div className="head">
|
||||
<span>아이디</span>
|
||||
<span>이름</span>
|
||||
<span>그룹</span>
|
||||
<span>메뉴 코드</span>
|
||||
<span>메뉴 이름</span>
|
||||
<span>부모 메뉴</span>
|
||||
<span>레벨</span>
|
||||
<span>정렬</span>
|
||||
<span>URI</span>
|
||||
<span>타입</span>
|
||||
<span>CSS</span>
|
||||
<span>IMG</span>
|
||||
<span>삭제</span>
|
||||
<span>
|
||||
<button className={"btn btn_blue_h31 px-1"} onClick={()=>{editMenu(undefined)}}>추가</button>
|
||||
</span>
|
||||
</div>
|
||||
<div className="result">
|
||||
{/*{listTag}*/}
|
||||
{listTag}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Modal show={show} onHide={handleClose} keyboard={false}>
|
||||
{modalBody}
|
||||
</Modal>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,150 @@
|
|||
import React from "react";
|
||||
import Modal from "react-bootstrap/Modal";
|
||||
import Form from "react-bootstrap/Form";
|
||||
import Row from "react-bootstrap/Row";
|
||||
import Col from "react-bootstrap/Col";
|
||||
import SelectOption from "components/commonCode/SelectOption";
|
||||
import * as EgovNet from "api/egovFetch";
|
||||
import CODE from "constants/code";
|
||||
|
||||
function MenuModal({savedInfo, reloadFunction}){
|
||||
|
||||
function editMenu(e){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
const form = e.target;
|
||||
const info = {
|
||||
menuId: form.menuId.value,
|
||||
menuTitle: form.menuTitle.value,
|
||||
menuGroup: form.menuGroup.value,
|
||||
menuLevel: form.menuLevel.value,
|
||||
menuSort: form.menuSort.value,
|
||||
menuUrl: form.menuUrl.value,
|
||||
menuTypeCd: form.menuTypeCd.value,
|
||||
}
|
||||
EgovNet.requestFetch(
|
||||
'/admin/config/menu-mgt',
|
||||
{
|
||||
method: "PUT",
|
||||
headers: {
|
||||
'Content-type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(info)
|
||||
},
|
||||
(resp) => {
|
||||
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
||||
alert("저장되었습니다.")
|
||||
reloadFunction();
|
||||
}else if(Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)){
|
||||
console.log("토큰 갱신중.")
|
||||
}else{
|
||||
alert(resp.result.resultMessage)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
function deleteMenu(menuId){
|
||||
if(window.confirm("삭제하시겠습니까?")) {
|
||||
EgovNet.requestFetch(
|
||||
'/admin/config/menu-mgt',
|
||||
{
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
'Content-type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({menuId: menuId})
|
||||
},
|
||||
(resp) => {
|
||||
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
||||
alert("삭제되었습니다.")
|
||||
reloadFunction();
|
||||
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
|
||||
console.log("토큰 갱신중.")
|
||||
} else {
|
||||
alert(resp.result.resultMessage)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Modal.Header closeButton>
|
||||
<Modal.Title>
|
||||
{savedInfo!==undefined?`${savedInfo?.menuTitle} 상세정보`:'메뉴 생성'}
|
||||
</Modal.Title>
|
||||
</Modal.Header>
|
||||
<Modal.Body>
|
||||
<Form onSubmit={(e) =>{editMenu(e)}} noValidate>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
메뉴 코드
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="text" name="menuId" placeholder="아이디" required defaultValue={savedInfo?.menuId} readOnly={savedInfo!==undefined}/>
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
메뉴 이름
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="text" name="menuTitle" placeholder="이름" required defaultValue={savedInfo?.menuTitle} />
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
부모 메뉴
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="email" name="menuGroup" placeholder="그룹" required defaultValue={savedInfo?.menuGroup} />
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
레벨
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="number" min={"0"} name="menuLevel" placeholder="레벨" required defaultValue={savedInfo!==undefined?savedInfo.menuLevel:0} />
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
정렬
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="number" min={"0"} name="menuSort" placeholder="정렬" required defaultValue={savedInfo!==undefined?savedInfo.menuSort:0} />
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
URI
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<Form.Control type="text" name="menuUrl" placeholder="URI" required defaultValue={savedInfo?.menuUrl} />
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Form.Group as={Row} className="mb-3">
|
||||
<Form.Label column sm={3}>
|
||||
타입
|
||||
</Form.Label>
|
||||
<Col sm={9}>
|
||||
<SelectOption name={"menuTypeCd"} grpCd={"MNU_TYPE"} selectedValue={savedInfo?.menuTypeCd}/>
|
||||
</Col>
|
||||
</Form.Group>
|
||||
<Row className="mb-3">
|
||||
{savedInfo !== undefined?<Col xs={2}><button type={"button"} className={"btn btn_red_h31 px-3"} onClick={()=>{deleteMenu(savedInfo.menuId)}}>삭제</button></Col>:''}
|
||||
<Col xs={{span: savedInfo!==undefined?8:10}}></Col>
|
||||
<Col xs={2}>
|
||||
<button type="submit" className={"btn btn_blue_h31 px-3"}>저장</button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
</Modal.Body>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default MenuModal;
|
||||
|
|
@ -1,13 +1,326 @@
|
|||
import React from 'react';
|
||||
import React, {useState, useEffect, useCallback, useRef, PureComponent} from 'react';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
|
||||
import {LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer} from 'recharts';
|
||||
|
||||
function FileDownloadStatus(props) {
|
||||
import DatePicker from 'react-datepicker';
|
||||
import 'react-datepicker/dist/react-datepicker.css';
|
||||
|
||||
import { CSVLink } from "react-csv";
|
||||
|
||||
import {format, sub} from "date-fns";
|
||||
import { ko } from 'date-fns/locale';
|
||||
|
||||
import * as EgovNet from 'api/egovFetch';
|
||||
import URL from 'constants/url';
|
||||
|
||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||
|
||||
import { itemIdxByPage } from 'utils/calc';
|
||||
|
||||
function FileConnections(props) {
|
||||
// console.group("EgovAdminPrivacyList");
|
||||
// console.log("[Start] EgovAdminPrivacyList ------------------------------");
|
||||
// console.log("EgovAdminPrivacyList [props] : ", props);
|
||||
const nowDate = new Date();
|
||||
const oneMonthAgoDate = sub(nowDate, { months: 1 });
|
||||
const [start_date, setStartDate] = useState(oneMonthAgoDate);
|
||||
const [end_date, setEndDate] = useState(nowDate); // new Date()
|
||||
|
||||
const location = useLocation();
|
||||
// console.log("EgovAdminPrivacyList [location] : ", location);
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || {start_date: format(start_date, "yyyy-MM-dd"), end_date: format(end_date, "yyyy-MM-dd")});
|
||||
const [chartData, setChartData] = useState([]);
|
||||
const [excelData, setExcelData] = useState([]);
|
||||
|
||||
const [listTag, setListTag] = useState([]);
|
||||
|
||||
const excelHeaders = [
|
||||
{ label: "일자", key: "logdt" },
|
||||
{ label: "설계기준", key: "group10" },
|
||||
{ label: "표준시방서", key: "group20" },
|
||||
{ label: "서울특별시", key: "group40" },
|
||||
{ label: "고속도로공사", key: "group50" },
|
||||
{ label: "농업생산기반시설", key: "group60" },
|
||||
{ label: "철도건설공사", key: "group70" },
|
||||
{ label: "LH", key: "group80" },
|
||||
{ label: "K-water", key: "group90" },
|
||||
{ label: "(구)설계기준", key: "groupO2" },
|
||||
{ label: "(구)표준시방서", key: "groupO3" },
|
||||
{ label: "(구)전문시방서", key: "groupO4" },
|
||||
{ label: "(구)훈령.예규.지침", key: "groupO567" }
|
||||
];
|
||||
|
||||
const retrieveList = useCallback((srchCnd) => {
|
||||
// console.groupCollapsed("EgovAdminUsageList.retrieveList()");
|
||||
const retrieveListURL = '/admin/logs/file';
|
||||
|
||||
const requestOptions = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(srchCnd)
|
||||
}
|
||||
|
||||
EgovNet.requestFetch(
|
||||
retrieveListURL,
|
||||
requestOptions,
|
||||
(resp) => {
|
||||
let mutListTag = [];
|
||||
|
||||
const resultCnt = parseInt(resp.result.resultCnt);
|
||||
const currentPageNo = 1; // resp.result.paginationInfo.currentPageNo;
|
||||
const pageSize = resultCnt; // resp.result.paginationInfo.pageSize;
|
||||
|
||||
// 리스트 항목 구성
|
||||
if (resultCnt === 0) {
|
||||
mutListTag.push(<p className="no_data" key="0">데이터가 없습니다.</p>);
|
||||
} else {
|
||||
resp.result.resultList.forEach(function (item, index) {
|
||||
if (index === 0) mutListTag = []; // 목록 초기화
|
||||
const listIdx = itemIdxByPage(resultCnt, currentPageNo, pageSize, index);
|
||||
|
||||
mutListTag.push(
|
||||
<div key={listIdx} className="list_item">
|
||||
<div>{item[0]}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[1].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[2].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[3].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[4].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[5].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[6].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[7].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[8].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[9].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[10].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[11].toLocaleString()}</div>
|
||||
<div style={{textAlign: 'right', paddingRight: '10px'}}>{item[12].toLocaleString()}</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
}
|
||||
setListTag(mutListTag);
|
||||
|
||||
// chart values
|
||||
let chartDataArray = resp.result.resultList.map((item, index) => ({
|
||||
logdt: item[0], // Assuming logdt is the x-axis data
|
||||
"설계기준": item[1], // Assuming menuTitle is the y-axis data
|
||||
"표준시방서": item[2],
|
||||
"서울특별시": item[3],
|
||||
"고속도로공사": item[4],
|
||||
"농업생산기반시설": item[5],
|
||||
"철도건설공사": item[6],
|
||||
"LH": item[7],
|
||||
"K-water": item[8],
|
||||
"(구)설계기준": item[9],
|
||||
"(구)표준시방서": item[10],
|
||||
"(구)전문시방서": item[11],
|
||||
"(구)훈령.예규.지침": item[12],
|
||||
}));
|
||||
setChartData(chartDataArray);
|
||||
|
||||
// excel value
|
||||
let filteredExcelData = resp.result.resultList.map((item) => ({
|
||||
logdt: item[0],
|
||||
group10: item[1],
|
||||
group20: item[2],
|
||||
group40: item[3],
|
||||
group50: item[4],
|
||||
group60: item[5],
|
||||
group70: item[6],
|
||||
group80: item[7],
|
||||
group90: item[8],
|
||||
groupO2: item[9],
|
||||
groupO3: item[10],
|
||||
groupO4: item[11],
|
||||
groupO567: item[12]
|
||||
}));
|
||||
setExcelData(filteredExcelData);
|
||||
},
|
||||
function (resp) {
|
||||
console.log("err response : ", resp);
|
||||
}
|
||||
);
|
||||
// console.groupEnd("EgovAdminPrivacyList.retrieveList()");
|
||||
},[listTag]);
|
||||
|
||||
const CustomTooltip = ({ active, payload, label }) => {
|
||||
if (active && payload && payload.length) {
|
||||
return (
|
||||
<div className="custom-tooltip">
|
||||
<p className="intro">파일 다운 현황 [{`${label}`}]</p>
|
||||
<p className="label">설계기준 : {`${payload[0].value}`}회</p>
|
||||
<p className="label">표준시방서 : {`${payload[1].value}`}회</p>
|
||||
<p className="label">서울특별시 : {`${payload[2].value}`}회</p>
|
||||
<p className="label">고속도로공사 : {`${payload[3].value}`}회</p>
|
||||
<p className="label">농업생산기반시설 : {`${payload[4].value}`}회</p>
|
||||
<p className="label">철도건설공사 : {`${payload[5].value}`}회</p>
|
||||
<p className="label">LH : {`${payload[6].value}`}회</p>
|
||||
<p className="label">K-water : {`${payload[7].value}`}회</p>
|
||||
<p className="label">(구)설계기준 : {`${payload[8].value}`}회</p>
|
||||
<p className="label">(구)표준시방서 : {`${payload[9].value}`}회</p>
|
||||
<p className="label">(구)전문시방서 : {`${payload[10].value}`}회</p>
|
||||
<p className="label">(구)훈령.예규.지침 : {`${payload[11].value}`}회</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
retrieveList(searchCondition);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [start_date, end_date]);
|
||||
|
||||
// console.log("------------------------------EgovAdminPrivacyList [End]");
|
||||
// console.groupEnd("EgovAdminPrivacyList");
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
FileDownloadStatus
|
||||
<div className="c_wrap">
|
||||
{/* <!-- Location --> */}
|
||||
<div className="location">
|
||||
<ul>
|
||||
<li><Link to={URL.MAIN} className="home">Home</Link></li>
|
||||
<li><Link to={URL.ADMIN} >사이트관리</Link></li>
|
||||
<li>로그현황</li>
|
||||
<li>파일 다운 현황</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/* <!--// Location --> */}
|
||||
|
||||
<div className="layout">
|
||||
{/* <!-- Navigation --> */}
|
||||
<EgovLeftNav></EgovLeftNav>
|
||||
{/* <!--// Navigation --> */}
|
||||
|
||||
<div className="contents NOTICE_LIST" id="contents">
|
||||
{/* <!-- 본문 --> */}
|
||||
|
||||
<div className="top_tit">
|
||||
<h1 className="tit_1">파일 다운 현황</h1>
|
||||
</div>
|
||||
|
||||
{/* <!-- 검색조건 --> */}
|
||||
<div className="condition">
|
||||
<ul>
|
||||
<li className="half L">
|
||||
<DatePicker
|
||||
dateFormat='yyyy-MM-dd' // 날짜 형태
|
||||
shouldCloseOnSelect // 날짜를 선택하면 datepicker가 자동으로 닫힘
|
||||
minDate={new Date('2017-01-01')} // minDate 이전 날짜 선택 불가
|
||||
maxDate={new Date()} // maxDate 이후 날짜 선택 불가
|
||||
selected={start_date}
|
||||
locale={ko}
|
||||
className="f_input1 al_c"
|
||||
selectsStart
|
||||
startDate={start_date}
|
||||
endDate={end_date}
|
||||
onChange={(date) => {
|
||||
setStartDate(date);
|
||||
setSearchCondition({
|
||||
start_date: format(date, "yyyy-MM-dd"),
|
||||
end_date: format(end_date, "yyyy-MM-dd")
|
||||
});
|
||||
}}
|
||||
/> -
|
||||
</li>
|
||||
<li className="half R">
|
||||
<DatePicker
|
||||
dateFormat='yyyy-MM-dd' // 날짜 형태
|
||||
shouldCloseOnSelect // 날짜를 선택하면 datepicker가 자동으로 닫힘
|
||||
minDate={new Date('2017-01-01')} // minDate 이전 날짜 선택 불가
|
||||
maxDate={new Date()} // maxDate 이후 날짜 선택 불가
|
||||
selected={end_date}
|
||||
locale={ko}
|
||||
className="f_input1 al_c"
|
||||
selectsEnd
|
||||
startDate={start_date}
|
||||
endDate={end_date}
|
||||
onChange={(date) => {
|
||||
setEndDate(date);
|
||||
setSearchCondition({
|
||||
start_date: format(start_date, "yyyy-MM-dd"),
|
||||
end_date: format(date, "yyyy-MM-dd")
|
||||
});
|
||||
}}
|
||||
/>
|
||||
{/*<button type="button" className="btn btn_blue_h32 ms-2" onClick={getExcelData}>엑셀 다운로드</button> */}
|
||||
<CSVLink data={excelData}
|
||||
headers={excelHeaders}
|
||||
filename={"파일 다운 현황.csv"}
|
||||
target="_blank"
|
||||
className="btn btn_blue_h32 ms-2"
|
||||
separator={";"}
|
||||
>CSV ⬇</CSVLink>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/* <!--// 검색조건 --> */}
|
||||
|
||||
{/* <!-- 목록 --> */}
|
||||
<div className="board_list BRD011">
|
||||
<div className="head">
|
||||
<span>일자</span>
|
||||
<span>설계기준</span>
|
||||
<span>표준시방서</span>
|
||||
<span>서울특별시</span>
|
||||
<span>고속도로공사</span>
|
||||
<span>농업생산기반시설</span>
|
||||
<span>철도건설공사</span>
|
||||
<span>LH</span>
|
||||
<span>K-water</span>
|
||||
<span>(구)설계기준</span>
|
||||
<span>(구)표준시방서</span>
|
||||
<span>(구)전문시방서</span>
|
||||
<span>(구)훈령.예규.지침</span>
|
||||
</div>
|
||||
<div className="result">
|
||||
{listTag}
|
||||
</div>
|
||||
</div>
|
||||
<div className="">
|
||||
<ResponsiveContainer width="100%" height={477}>
|
||||
<LineChart data={chartData}
|
||||
height={477}
|
||||
margin={{
|
||||
top: 5,
|
||||
right: 0,
|
||||
left: 0,
|
||||
bottom: 0,
|
||||
}}
|
||||
>
|
||||
<CartesianGrid strokeDasharray="3 3" />
|
||||
<XAxis type="category" dataKey="logdt" tick={{ fontSize: 10, whiteSpace: 'nowrap' }} />
|
||||
<YAxis type="number" />
|
||||
<Tooltip content={<CustomTooltip/>} />
|
||||
<Legend />
|
||||
<Line type="monotone" dataKey="설계기준" stroke="#87CEFA" />
|
||||
<Line type="monotone" dataKey="표준시방서" stroke="#82ca9d" />
|
||||
<Line type="monotone" dataKey="서울특별시" stroke="#8884d8" />
|
||||
<Line type="monotone" dataKey="고속도로공사" stroke="#87B17A" />
|
||||
<Line type="monotone" dataKey="농업생산기반시설" stroke="#F2857A" />
|
||||
<Line type="monotone" dataKey="철도건설공사" stroke="#F6C86B" />
|
||||
<Line type="monotone" dataKey="LH" stroke="#EA3322" />
|
||||
<Line type="monotone" dataKey="K-water" stroke="#333" />
|
||||
<Line type="monotone" dataKey="(구)설계기준" stroke="#F5C2CB" />
|
||||
<Line type="monotone" dataKey="(구)표준시방서" stroke="#3B86F6" />
|
||||
<Line type="monotone" dataKey="(구)전문시방서" stroke="#9CDE54" />
|
||||
<Line type="monotone" dataKey="(구)훈령.예규.지침" stroke="#008080" />
|
||||
</LineChart>
|
||||
</ResponsiveContainer>
|
||||
</div>
|
||||
{/* <!--// 목록 --> */}
|
||||
|
||||
{/* <!--// 본문 --> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default FileDownloadStatus;
|
||||
export default FileConnections;
|
||||
|
|
@ -4068,6 +4068,11 @@ date-fns@^2.24.0:
|
|||
resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz"
|
||||
integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==
|
||||
|
||||
date-fns@^3.2.0:
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.2.0.tgz#c97cf685b62c829aa4ecba554e4a51768cf0bffc"
|
||||
integrity sha512-E4KWKavANzeuusPi0jUjpuI22SURAznGkx7eZV+4i6x2A+IZxAMcajgkvuDAU1bg40+xuhW1zRdVIIM/4khuIg==
|
||||
|
||||
debug@2.6.9, debug@^2.6.0:
|
||||
version "2.6.9"
|
||||
resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
|
||||
|
|
@ -8198,6 +8203,11 @@ react-bootstrap@^2.9.0:
|
|||
uncontrollable "^7.2.1"
|
||||
warning "^4.0.3"
|
||||
|
||||
react-csv@^2.2.2:
|
||||
version "2.2.2"
|
||||
resolved "https://registry.yarnpkg.com/react-csv/-/react-csv-2.2.2.tgz#5bbf0d72a846412221a14880f294da9d6def9bfb"
|
||||
integrity sha512-RG5hOcZKZFigIGE8LxIEV/OgS1vigFQT4EkaHeKgyuCbUAu9Nbd/1RYq++bJcJJ9VOqO/n9TZRADsXNDR4VEpw==
|
||||
|
||||
react-datepicker@^4.8.0:
|
||||
version "4.10.0"
|
||||
resolved "https://registry.npmjs.org/react-datepicker/-/react-datepicker-4.10.0.tgz"
|
||||
|
|
|
|||
|
|
@ -136,5 +136,52 @@ public class SchedulesApiController {
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* 일정(월별) 목록을 조회한다.
|
||||
* @param request
|
||||
* @param commandMap
|
||||
* @return resultVO
|
||||
* @throws Exception
|
||||
*/
|
||||
@Operation(
|
||||
summary = "월별 일정 조회",
|
||||
description = "일정(월별) 목록을 조회",
|
||||
tags = {"EgovIndvdlSchdulManageApiController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||
})
|
||||
@GetMapping(value = "/schedule/month")
|
||||
public ResultVO scheduleMonth(@AuthenticationPrincipal LoginVO user,
|
||||
HttpServletRequest request,
|
||||
@RequestParam Map<String, Object> commandMap) throws Exception {
|
||||
|
||||
|
||||
ResultVO resultVO = new ResultVO();
|
||||
|
||||
try {
|
||||
resultVO = egovIndvdlSchdulManageService.scheduleMonth(resultVO, request, user, commandMap);
|
||||
} catch (Exception e) {
|
||||
resultVO.setResultCode(-1);
|
||||
resultVO.setResultMessage(e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
System.out.println(
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " OUT:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"resultVO.toString():" + "\n" +
|
||||
resultVO.toString() + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
);
|
||||
|
||||
return resultVO;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 일정관리를 처리하는 서비스인터페이스 클래스
|
||||
|
|
@ -36,5 +37,8 @@ public interface EgovIndvdlSchdulManageService {
|
|||
|
||||
public ResultVO scheduleDetail(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long scheduleId) throws Exception;
|
||||
|
||||
public ResultVO scheduleMonth(ResultVO resultVO, HttpServletRequest request, LoginVO user, Map<String, Object> scheduleId) throws Exception;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -4,7 +4,9 @@ package com.dbnt.kcscbackend.admin.committee.schedules.service.impl;
|
|||
import com.dbnt.kcscbackend.admin.committee.schedules.model.CreateScheduleVO;
|
||||
import com.dbnt.kcscbackend.admin.committee.schedules.service.EgovIndvdlSchdulManageService;
|
||||
import com.dbnt.kcscbackend.auth.entity.LoginVO;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TnCmtEvent;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TnCmtOrg;
|
||||
import com.dbnt.kcscbackend.config.common.ResponseCode;
|
||||
import com.dbnt.kcscbackend.commonCode.repository.TcCodeItemRepository;
|
||||
import com.dbnt.kcscbackend.commonCode.repository.TnCmtEventRepository;
|
||||
|
|
@ -150,12 +152,12 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
|
|||
public ResultVO scheduleDetail(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long scheduleId) throws Exception {
|
||||
|
||||
System.out.println(
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " IN:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"scheduleId:" + "\n" +
|
||||
scheduleId + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " IN:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"scheduleId:" + "\n" +
|
||||
scheduleId + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
);
|
||||
|
||||
|
||||
|
|
@ -167,16 +169,21 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
|
|||
|
||||
TnCmtEvent tnCmtEvent = tnCmtEventRepository.findByEvtSeq(scheduleId);
|
||||
|
||||
TcCodeItem tcCodeItem = tcCodeItemRepository.findByItemCdAndUseYn(tnCmtEvent.getEvtType(), "Y");
|
||||
|
||||
TnCmtOrg tnCmtOrgForUpCommitteeNm = tnCmtOrgRepository.findByUseYnAndCmtSeq("Y", tnCmtEvent.getUpCmtSeq());
|
||||
TnCmtOrg tnCmtOrgForCommitteeNm = tnCmtOrgRepository.findByUseYnAndCmtSeq("Y", tnCmtEvent.getCmtSeq());
|
||||
|
||||
Map<String, Object> dto = new HashMap<String, Object>();
|
||||
dto.put("evtSeq", tnCmtEvent.getEvtSeq()); // sequence
|
||||
dto.put("divMeet", tnCmtEvent.getEvtType()); // 구분
|
||||
dto.put("upCommittee", tnCmtEvent.getUpCmtSeq()); // 심의위원회 상위 코드 번호
|
||||
dto.put("committee", tnCmtEvent.getCmtSeq()); // 심의위원회 하위 코드 번호
|
||||
dto.put("title", tnCmtEvent.getEvtTitle()); // 제목
|
||||
dto.put("location", tnCmtEvent.getEvtLocation()); // 장소
|
||||
dto.put("contents", tnCmtEvent.getEvtContents()); // 내용
|
||||
dto.put("startDate", tnCmtEvent.getEvtStartDt()); // 날짜/시간의 시작 일시
|
||||
dto.put("endDate", tnCmtEvent.getEvtEndDt()); // 날짜/시간의 종료 일시
|
||||
dto.put("evtSeq", tnCmtEvent.getEvtSeq()); // sequence
|
||||
dto.put("divMeetNm", tcCodeItem.getItemNm()); // 구분
|
||||
dto.put("upCommitteeNm", tnCmtOrgForUpCommitteeNm.getCmtNm()); // 심의위원회 상위 이름
|
||||
dto.put("committeeNm", tnCmtOrgForCommitteeNm.getCmtNm()); // 심의위원회 하위 이름
|
||||
dto.put("title", tnCmtEvent.getEvtTitle()); // 제목
|
||||
dto.put("location", tnCmtEvent.getEvtLocation()); // 장소
|
||||
dto.put("contents", tnCmtEvent.getEvtContents()); // 내용
|
||||
dto.put("startDate", tnCmtEvent.getEvtStartDt()); // 날짜/시간의 시작 일시
|
||||
dto.put("endDate", tnCmtEvent.getEvtEndDt()); // 날짜/시간의 종료 일시
|
||||
|
||||
// 문자열로 리턴하도록 수정해야 함.
|
||||
|
||||
|
|
@ -190,6 +197,67 @@ public class EgovIndvdlSchdulManageServiceImpl extends EgovAbstractServiceImpl i
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ResultVO scheduleMonth(ResultVO resultVO, HttpServletRequest request, LoginVO user, Map<String, Object> commandMap) throws Exception {
|
||||
|
||||
System.out.println(
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " IN:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"String.valueOf(commandMap.get(\"year\")):" + "\n" +
|
||||
String.valueOf(commandMap.get("year")) + "\n" +
|
||||
"String.valueOf(commandMap.get(\"month\")):" + "\n" +
|
||||
String.valueOf(commandMap.get("month")) + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
);
|
||||
|
||||
Map<String, Object> dto = new HashMap<String, Object>();
|
||||
|
||||
//일정구분 검색 유지
|
||||
dto.put("searchKeyword",
|
||||
commandMap.get("searchKeyword") == null ? "" : (String)commandMap.get("searchKeyword"));
|
||||
dto.put("searchCondition",
|
||||
commandMap.get("searchCondition") == null ? "" : (String)commandMap.get("searchCondition"));
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
String sYear = String.valueOf(commandMap.get("year")); // 예 "2024"
|
||||
String sMonth = String.valueOf(commandMap.get("month")); // 예 "2" zeo-base. 0= 1월, 1=2월, 2=3월. 즉 "2"라면 3월
|
||||
|
||||
int iYear = cal.get(Calendar.YEAR);
|
||||
int iMonth = cal.get(Calendar.MONTH);
|
||||
//int iDate = cal.get(java.util.Calendar.DATE);
|
||||
|
||||
//검색 설정
|
||||
String sSearchDate = "";
|
||||
if (sYear == null || sMonth == null) {
|
||||
sSearchDate += Integer.toString(iYear);
|
||||
sSearchDate += Integer.toString(iMonth + 1).length() == 1 ? "0" + Integer.toString(iMonth + 1)
|
||||
: Integer.toString(iMonth + 1);
|
||||
} else {
|
||||
iYear = Integer.parseInt(sYear);
|
||||
iMonth = Integer.parseInt(sMonth);
|
||||
sSearchDate += sYear;
|
||||
sSearchDate += Integer.toString(iMonth + 1).length() == 1 ? "0" + Integer.toString(iMonth + 1)
|
||||
: Integer.toString(iMonth + 1);
|
||||
}
|
||||
|
||||
// sSearchDate는 검색할 월. 예 202403
|
||||
commandMap.put("searchMonth", sSearchDate);
|
||||
commandMap.put("searchMode", "MONTH");
|
||||
|
||||
dto.put("prevRequest", commandMap);
|
||||
dto.put("resultList", tnCmtEventRepository.getByYyyyMm(sSearchDate));
|
||||
|
||||
resultVO.setResult(dto);
|
||||
|
||||
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
|
||||
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
|
||||
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.dbnt.kcscbackend.admin.config;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.config.entity.TcMenu;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||
import com.dbnt.kcscbackend.admin.config.service.AdminConfigService;
|
||||
|
|
@ -14,11 +15,14 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||
import org.springframework.validation.Errors;
|
||||
import org.springframework.validation.FieldError;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
|
@ -232,4 +236,70 @@ public class AdminConfigController extends BaseController {
|
|||
resultVO.setResult(resultMap);
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
@Operation(
|
||||
summary = "메뉴 저장",
|
||||
description = "메뉴 저장",
|
||||
tags = {"AdminConfigController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "저장 성공"),
|
||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||
})
|
||||
@RequestMapping(method = RequestMethod.PUT, value = "/menu-mgt")
|
||||
public ResultVO saveMenuMgt(@RequestBody @Valid TcMenu menu, Errors errors, @AuthenticationPrincipal LoginVO user){
|
||||
ResultVO resultVO = new ResultVO();
|
||||
if(user == null){
|
||||
resultVO.setResultCode(ResponseCode.TOKEN_EXPIRED.getCode());
|
||||
}else {
|
||||
menu.setRoleGrpId(menu.getMenuTypeCd().equals("MNU_0000")?"ADMIN_USER":"ALL_USER");
|
||||
if(errors.hasErrors()){
|
||||
StringBuilder msg = new StringBuilder();
|
||||
for(FieldError error: errors.getFieldErrors()){
|
||||
msg.append(error.getDefaultMessage());
|
||||
msg.append("\n");
|
||||
}
|
||||
resultVO.setResultCode(ResponseCode.INPUT_CHECK_ERROR.getCode());
|
||||
resultVO.setResultMessage(msg.toString());
|
||||
}else if (!user.getUserSe().equals("ACC_TP01")) {
|
||||
resultVO.setResultCode(ResponseCode.AUTH_ERROR.getCode());
|
||||
resultVO.setResultMessage(ResponseCode.AUTH_ERROR.getMessage());
|
||||
} else {
|
||||
adminConfigService.saveMenu(menu, user.getId());
|
||||
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
|
||||
}
|
||||
}
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
@Operation(
|
||||
summary = "메뉴 삭제",
|
||||
description = "메뉴 삭제",
|
||||
tags = {"AdminConfigController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "삭제 성공"),
|
||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||
})
|
||||
@RequestMapping(method = RequestMethod.DELETE, value = "/menu-mgt")
|
||||
public ResultVO removeMenuMgt(@RequestBody TcMenu menu, @AuthenticationPrincipal LoginVO user){
|
||||
ResultVO resultVO = new ResultVO();
|
||||
if(user == null){
|
||||
resultVO.setResultCode(ResponseCode.TOKEN_EXPIRED.getCode());
|
||||
}else {
|
||||
if (!user.getUserSe().equals("ACC_TP01")) {
|
||||
resultVO.setResultCode(ResponseCode.AUTH_ERROR.getCode());
|
||||
resultVO.setResultMessage(ResponseCode.AUTH_ERROR.getMessage());
|
||||
} else {
|
||||
String result = adminConfigService.deleteMenu(menu.getMenuId(), user.getId());
|
||||
if(result==null){
|
||||
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
|
||||
}else if(result.equals("notFind")){
|
||||
resultVO.setResultCode(ResponseCode.SAVE_ERROR.getCode());
|
||||
resultVO.setResultMessage("대상이 존재하지 않습니다.");
|
||||
}
|
||||
}
|
||||
}
|
||||
return resultVO;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,8 @@ import org.hibernate.annotations.DynamicInsert;
|
|||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Getter
|
||||
|
|
@ -23,20 +21,24 @@ import java.time.LocalDateTime;
|
|||
public class TcMenu {
|
||||
@Id
|
||||
@Column(name = "menu_id")
|
||||
@NotBlank(message = "메뉴코드를 입력해주세요.")
|
||||
private String menuId;
|
||||
@Column(name = "role_grp_id")
|
||||
private String roleGrpId;
|
||||
@Column(name = "menu_title")
|
||||
@NotBlank(message = "메뉴이름을 입력해주세요.")
|
||||
private String menuTitle;
|
||||
@Column(name = "menu_group")
|
||||
private String menuGroup;
|
||||
@Column(name = "menu_level")
|
||||
private String menuLevel;
|
||||
private Integer menuLevel;
|
||||
@Column(name = "menu_sort")
|
||||
private String menuSort;
|
||||
private Integer menuSort;
|
||||
@Column(name = "menu_url")
|
||||
@NotBlank(message = "메뉴URI를 입력해주세요.")
|
||||
private String menuUrl;
|
||||
@Column(name = "menu_type_cd")
|
||||
@NotBlank(message = "타입을 선택해주세요.")
|
||||
private String menuTypeCd;
|
||||
@Column(name = "frst_crt_id")
|
||||
private String frstCrtId;
|
||||
|
|
@ -50,4 +52,7 @@ public class TcMenu {
|
|||
private LocalDateTime lastChgDt;
|
||||
@Column(name = "use_yn")
|
||||
private String useYn;
|
||||
|
||||
@Transient
|
||||
private String menuTypeValue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
package com.dbnt.kcscbackend.admin.config.mapper;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.config.entity.TcMenu;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TcMenuMapper {
|
||||
|
||||
List<TcMenu> selectMenuList();
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
package com.dbnt.kcscbackend.admin.config.service;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.config.entity.TcMenu;
|
||||
import com.dbnt.kcscbackend.admin.config.mapper.TcMenuMapper;
|
||||
import com.dbnt.kcscbackend.admin.config.repository.TcMenuRepository;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeGrp;
|
||||
import com.dbnt.kcscbackend.commonCode.entity.TcCodeItem;
|
||||
|
|
@ -11,6 +12,7 @@ import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
|
|
@ -20,6 +22,7 @@ public class AdminConfigService extends EgovAbstractServiceImpl {
|
|||
private final TcCodeGrpRepository codeGrpRepository;
|
||||
private final TcCodeItemRepository codeItemRepository;
|
||||
private final TcMenuRepository menuRepository;
|
||||
private final TcMenuMapper menuMapper;
|
||||
|
||||
public List<TcCodeGrp> selectCodeGrpList(){
|
||||
return codeGrpRepository.findByUseYn("Y");
|
||||
|
|
@ -100,6 +103,41 @@ public class AdminConfigService extends EgovAbstractServiceImpl {
|
|||
}
|
||||
|
||||
public List<TcMenu> selectMenuList() {
|
||||
return menuRepository.findByUseYnOrderByMenuIdAsc("Y");
|
||||
return menuMapper.selectMenuList();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void saveMenu(TcMenu menu, String userId) {
|
||||
TcMenu savedMenu = menuRepository.findById(menu.getMenuId()).orElse(null);
|
||||
if(savedMenu==null){
|
||||
menu.setFrstCrtDt(LocalDateTime.now());
|
||||
menu.setFrstCrtId(userId);
|
||||
menu.setUseYn("Y");
|
||||
menuRepository.save(menu);
|
||||
}else{
|
||||
savedMenu.setMenuTitle(menu.getMenuTitle());
|
||||
savedMenu.setMenuGroup(menu.getMenuGroup());
|
||||
savedMenu.setMenuLevel(menu.getMenuLevel());
|
||||
savedMenu.setMenuSort(menu.getMenuSort());
|
||||
savedMenu.setMenuUrl(menu.getMenuUrl());
|
||||
savedMenu.setMenuTypeCd(menu.getMenuTypeCd());
|
||||
savedMenu.setUseYn("Y");
|
||||
savedMenu.setLastChgId(userId);
|
||||
savedMenu.setLastChgDt(LocalDateTime.now());
|
||||
menuRepository.save(savedMenu);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public String deleteMenu(String menuId, String userId) {
|
||||
TcMenu savedMenu = menuRepository.findById(menuId).orElse(null);
|
||||
if(savedMenu==null){
|
||||
return "notFind";
|
||||
}else{
|
||||
savedMenu.setUseYn("N");
|
||||
savedMenu.setLastChgDt(LocalDateTime.now());
|
||||
savedMenu.setLastChgId(userId);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.dbnt.kcscbackend.admin.logs;
|
|||
|
||||
import com.dbnt.kcscbackend.admin.logs.entity.TnDailyMenuLog;
|
||||
import com.dbnt.kcscbackend.admin.logs.entity.ThPrivacyLog;
|
||||
import com.dbnt.kcscbackend.admin.logs.service.AdminFileService;
|
||||
import com.dbnt.kcscbackend.admin.logs.service.AdminMenuService;
|
||||
import com.dbnt.kcscbackend.admin.logs.service.AdminLogsService;
|
||||
import com.dbnt.kcscbackend.admin.logs.service.AdminUserService;
|
||||
|
|
@ -35,6 +36,7 @@ public class AdminLogsController extends BaseController {
|
|||
private final AdminMenuService adminMenuService;
|
||||
private final AdminUserService adminUserService;
|
||||
private final AdminLogsService adminLogsService;
|
||||
private final AdminFileService adminFileService;
|
||||
|
||||
@Operation(
|
||||
summary = "로그현황 - 메뉴별 접속현황",
|
||||
|
|
@ -93,6 +95,7 @@ public class AdminLogsController extends BaseController {
|
|||
return resultVO;
|
||||
}
|
||||
|
||||
|
||||
@Operation(
|
||||
summary = "로그현황 - 개인정보 로그",
|
||||
description = "개인정보 로그현황",
|
||||
|
|
@ -120,4 +123,32 @@ public class AdminLogsController extends BaseController {
|
|||
return resultVO;
|
||||
}
|
||||
|
||||
|
||||
@Operation(
|
||||
summary = "로그현황 - 파일 다운 현황",
|
||||
description = "파일 다운 현황",
|
||||
tags = {"AdminLogsController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "조회 성공"),
|
||||
@ApiResponse(responseCode = "403", description = "인가된 사용자가 아님")
|
||||
})
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/file", consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
public ResultVO FileListCount(@RequestBody Map<String, String> dateRange,
|
||||
@AuthenticationPrincipal LoginVO user)
|
||||
throws Exception {
|
||||
|
||||
ResultVO resultVO = new ResultVO();
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
String startDate = dateRange.get("start_date");
|
||||
String endDate = dateRange.get("end_date");
|
||||
|
||||
resultMap.put("resultCnt", adminFileService.selectFileCountCnt(startDate, endDate));
|
||||
resultMap.put("resultList", adminFileService.selectFileCount(startDate, endDate));
|
||||
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
|
||||
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
|
||||
resultVO.setResult(resultMap);
|
||||
return resultVO;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
package com.dbnt.kcscbackend.admin.logs.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.time.LocalDate;
|
||||
import java.awt.*;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Accessors(chain = true)
|
||||
@Entity
|
||||
@NoArgsConstructor
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "th_attach_file_log")
|
||||
public class ThAttachFileLog {
|
||||
@Id
|
||||
@Column(name = "file_log_seq")
|
||||
private Long fileLogSeq;
|
||||
|
||||
@Column(name = "access_type")
|
||||
private Long accessType;
|
||||
|
||||
@Column(name = "access_dt")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate accessDt;
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.dbnt.kcscbackend.admin.logs.repository;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.logs.entity.ThAttachFileLog;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface FileLogsRepository extends JpaRepository<ThAttachFileLog, Long> {
|
||||
|
||||
@Query(value = "SELECT COUNT(DISTINCT TO_CHAR(access_dt, 'YYYY-MM-DD')) "
|
||||
+ "FROM th_attach_file_log "
|
||||
+ "WHERE access_dt BETWEEN TO_DATE(:startDate, 'YYYY-MM-DD') AND TO_DATE(:endDate, 'YYYY-MM-DD')", nativeQuery = true)
|
||||
long countDistinctFileIds(@Param("startDate") String startDate, @Param("endDate") String endDate);
|
||||
|
||||
@Query(value = "SELECT TO_CHAR(access_dt, 'YYYY-MM-DD') as log_dt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '10' THEN 1 ELSE NULL END) AS Code10Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '20' THEN 1 ELSE NULL END) AS Code20Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '40' THEN 1 ELSE NULL END) AS Code40Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '50' THEN 1 ELSE NULL END) AS Code50Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '60' THEN 1 ELSE NULL END) AS Code60Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '70' THEN 1 ELSE NULL END) AS Code70Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '80' THEN 1 ELSE NULL END) AS Code80Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = '90' THEN 1 ELSE NULL END) AS Code90Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = 'O2' THEN 1 ELSE NULL END) AS CodeO2Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = 'O3' THEN 1 ELSE NULL END) AS CodeO3Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd = 'O4' THEN 1 ELSE NULL END) AS CodeO4Cnt,"
|
||||
+ " COUNT(CASE WHEN group_cur_cd IN ('O5', 'O6', 'O7') THEN 1 ELSE NULL END) AS CodeO5Cnt "
|
||||
+ "FROM th_attach_file_log "
|
||||
+ "WHERE access_dt BETWEEN TO_DATE(:startDate, 'YYYY-MM-DD') AND TO_DATE(:endDate, 'YYYY-MM-DD') "
|
||||
+ "GROUP BY TO_CHAR(access_dt, 'YYYY-MM-DD') "
|
||||
+ "ORDER BY log_dt asc", nativeQuery = true)
|
||||
List<Object[]> selectCountFile(@Param("startDate") String startDate, @Param("endDate") String endDate);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.dbnt.kcscbackend.admin.logs.service;
|
||||
|
||||
import com.dbnt.kcscbackend.admin.logs.repository.FileLogsRepository;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class AdminFileService extends EgovAbstractServiceImpl {
|
||||
private final FileLogsRepository fileLogsRepository;
|
||||
|
||||
// 파일 다운 횟수
|
||||
public List<Object[]> selectFileCount(String startDate, String endDate) {
|
||||
return fileLogsRepository.selectCountFile(startDate, endDate);
|
||||
}
|
||||
|
||||
// 전체 레코드 수 가져오기
|
||||
public long selectFileCountCnt(String startDate, String endDate) {
|
||||
return fileLogsRepository.countDistinctFileIds(startDate, endDate);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,4 +7,5 @@ import java.util.List;
|
|||
|
||||
public interface TcCodeItemRepository extends JpaRepository<TcCodeItem, TcCodeItem.TcCodeItemId> {
|
||||
List<TcCodeItem> findByGrpCdAndUseYnOrderByGrpOrder(String grpCd, String useYn);
|
||||
TcCodeItem findByItemCdAndUseYn(String itemCd, String useYn);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,28 +18,6 @@ import java.util.Map;
|
|||
|
||||
public interface TnCmtEventRepository extends JpaRepository<TnCmtEvent, TnCmtEvent.TnCmtEventId> {
|
||||
|
||||
@Transactional
|
||||
@Modifying
|
||||
@Query(value = "SET datestyle TO ISO, MDY", nativeQuery = true)
|
||||
int setDateStyle();
|
||||
|
||||
@Procedure
|
||||
int sp_add_tn_cmt_event(
|
||||
@Param("_evt_type") String evtType,
|
||||
@Param("_up_cmt_seq") Integer upCmtSeq,
|
||||
@Param("_cmt_seq") Integer cmtSeq,
|
||||
@Param("_evt_title") String evtTitle,
|
||||
@Param("_evt_location") String evtLocation,
|
||||
@Param("_evt_contents") String evtContents,
|
||||
@Param("_evt_start_dt") Date evtStartDt,
|
||||
@Param("_evt_end_dt") Date evtEndDt,
|
||||
@Param("_modi_id") String modiId,
|
||||
@Param("_evt_seq") Integer _evt_seq,
|
||||
@Param("_result_count") Integer _result_count,
|
||||
@Param("_result_code") String _result_code,
|
||||
@Param("_error_message") String _error_message
|
||||
);
|
||||
|
||||
@Query(value = "CALL sp_add_tn_cmt_event (" +
|
||||
":_evt_type, " +
|
||||
":_up_cmt_seq, " +
|
||||
|
|
@ -84,16 +62,31 @@ public interface TnCmtEventRepository extends JpaRepository<TnCmtEvent, TnCmtEve
|
|||
@Procedure
|
||||
int sp_is_valid_tn_cmt_event_id( Integer evtSeq );
|
||||
|
||||
@Query(value = "CALL sp_is_valid_tn_cmt_event_id ( :_evt_seq )",
|
||||
nativeQuery = true)
|
||||
int spIsValidTnCmtEventId(
|
||||
@Param("_evt_seq") Long evtSeq
|
||||
);
|
||||
|
||||
|
||||
|
||||
TnCmtEvent findByEvtSeq(Long evtSeq);
|
||||
|
||||
@Query(value = "\n" +
|
||||
"SELECT" + " \n" +
|
||||
" *" + " \n" +
|
||||
"FROM" + " \n" +
|
||||
" tn_cmt_event tce" + " \n" +
|
||||
"WHERE" + " " +
|
||||
" TO_TIMESTAMP(" + " \n" +
|
||||
" :sSearchDate," + " \n" +
|
||||
" 'YYYYMM'" + " \n" +
|
||||
" ) <= tce.evt_start_dt AND" + " \n" +
|
||||
|
||||
" tce.evt_start_dt < TO_TIMESTAMP(" + " \n" +
|
||||
" :sSearchDate," + " \n" +
|
||||
" 'YYYYMM'" + " \n" +
|
||||
" ) + INTERVAL '1 MONTH';\n",
|
||||
nativeQuery = true)
|
||||
List<Map<String, Object>> getByYyyyMm(
|
||||
@Param("sSearchDate") String sSearchDate
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ import java.util.List;
|
|||
|
||||
public interface TnCmtOrgRepository extends JpaRepository<TnCmtOrg, TnCmtOrg.TnCmtOrgId> {
|
||||
List<TnCmtOrg> findByUseYnAndUpCmtSeqOrderByCmtOrder(String useYn, Long upCmtSeq);
|
||||
TnCmtOrg findByUseYnAndCmtSeq(String useYn, Long cmtSeq);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ spring.datasource.hikari.maximum-pool-size=4
|
|||
#spring.datasource.username=kcsc
|
||||
#spring.datasource.password=dbnt0928!
|
||||
spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||
#spring.datasource.url=jdbc:log4jdbc:postgresql://127.0.0.1:5432/kcsc
|
||||
spring.datasource.url=jdbc:log4jdbc:postgresql://118.219.150.34:50503/kcsc
|
||||
spring.datasource.url=jdbc:log4jdbc:postgresql://127.0.0.1:5432/kcsc
|
||||
#spring.datasource.url=jdbc:log4jdbc:postgresql://118.219.150.34:50503/kcsc
|
||||
spring.datasource.username=dbnt0031
|
||||
spring.datasource.password=dbnt0928!
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.dbnt.kcscbackend.admin.config.mapper.TcMenuMapper">
|
||||
|
||||
<select id="selectMenuList" resultType="TcMenu">
|
||||
select a.menu_id,
|
||||
a.menu_title,
|
||||
a.role_grp_id,
|
||||
a.menu_group,
|
||||
a.menu_level,
|
||||
a.menu_sort,
|
||||
a.menu_url,
|
||||
a.menu_type_cd,
|
||||
a.use_yn,
|
||||
a.frst_crt_id,
|
||||
a.frst_crt_dt,
|
||||
a.last_chg_id,
|
||||
a.last_chg_dt,
|
||||
b.item_nm as menu_type_value
|
||||
from tc_menu a
|
||||
inner join tc_code_item b on a.menu_type_cd = b.item_cd
|
||||
where a.use_yn = 'Y'
|
||||
order by menu_id asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue