From 44e7aaee731e2dc17b7ed6e57d8f161c00a02fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=84=9D=20=EC=B5=9C?= Date: Mon, 28 Feb 2022 09:09:19 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/mca/cmmn/service/LogService.java | 3 --- src/main/java/com/mca/cmmn/web/AdminController.java | 2 +- src/main/resources/egovframework/property/globals.properties | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mca/cmmn/service/LogService.java b/src/main/java/com/mca/cmmn/service/LogService.java index d918ec1..90e5dcd 100644 --- a/src/main/java/com/mca/cmmn/service/LogService.java +++ b/src/main/java/com/mca/cmmn/service/LogService.java @@ -21,8 +21,5 @@ public class LogService { return logMapper.selectLoginCnt(searchVO); } -// public LayersVO selectFacility(String layer) { -// return layersMapper.selectFacility(layer); -// } } diff --git a/src/main/java/com/mca/cmmn/web/AdminController.java b/src/main/java/com/mca/cmmn/web/AdminController.java index a119e3e..2da6da6 100644 --- a/src/main/java/com/mca/cmmn/web/AdminController.java +++ b/src/main/java/com/mca/cmmn/web/AdminController.java @@ -86,12 +86,12 @@ public class AdminController { int standByCount = userService.selectUserStandByCount(); model.addAttribute("standByCount", standByCount); + // 일, 월 방문자 수 BaseSearchVO searchVO = new BaseSearchVO(); LocalDate searchStartDate = LocalDate.now(); searchVO.setSearchStartDate(searchStartDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); searchVO.setSearchEndDate(searchStartDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); model.addAttribute("dayLoginCount", logService.selectLoginCnt(searchVO)); - searchVO.setSearchStartDate(searchStartDate.minusMonths(1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); model.addAttribute("monthLoginCount", logService.selectLoginCnt(searchVO)); diff --git a/src/main/resources/egovframework/property/globals.properties b/src/main/resources/egovframework/property/globals.properties index f4bb33f..f421353 100644 --- a/src/main/resources/egovframework/property/globals.properties +++ b/src/main/resources/egovframework/property/globals.properties @@ -18,7 +18,7 @@ Global.fileStorePath = C:/MCA/upload/ #TEST DB Global.datasource.driverClassName=com.mysql.cj.jdbc.Driver -Global.datasource.url=jdbc:mysql://106.247.244.146:57306/gg_mobile_220214?useSSL=false&serverTimezone=UTC +Global.datasource.url=jdbc:mysql://106.247.244.146:57306/gg_mobile_220214?useSSL=false&serverTimezone=Asia/Seoul Global.datasource.username=root Global.datasource.password=dbnt0928