From e47230aff0ae571f5257999bfd090b6210280315 Mon Sep 17 00:00:00 2001 From: zhangdongxu Date: Tue, 6 Nov 2018 11:43:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?1=E3=80=81=E7=94=A8=E6=88=B7=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA=E7=BB=9F=E8=AE=A1Bug=E4=BF=AE=E6=94=B9=EF=BC=9B=202?= =?UTF-8?q?=E3=80=81pom.xml=E5=88=A0=E9=99=A4resources=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 36 ------------------- .../restful/SingleDimensionReport.java | 2 +- .../java/com/nis/web/dao/NtcReportDao.xml | 16 ++++----- 3 files changed, 7 insertions(+), 47 deletions(-) diff --git a/pom.xml b/pom.xml index ded490f..fcae2ab 100644 --- a/pom.xml +++ b/pom.xml @@ -36,42 +36,6 @@ - - - - src/main/resources - - **/*.properties - **/*.xml - **/*.xsd - **/*.yml - - true - - - - src/main/resources - false - - **/*.mmdb - **/*.dat - **/*.sh - **/*.bat - **/*.sql - - - - - src/main/java - - **/*.properties - **/*.xml - - true - - - - diff --git a/src/main/java/com/nis/web/controller/restful/SingleDimensionReport.java b/src/main/java/com/nis/web/controller/restful/SingleDimensionReport.java index b3fcb89..0408102 100644 --- a/src/main/java/com/nis/web/controller/restful/SingleDimensionReport.java +++ b/src/main/java/com/nis/web/controller/restful/SingleDimensionReport.java @@ -433,7 +433,7 @@ public class SingleDimensionReport extends BaseRestController { String groupType ="hour"; if (!(StringUtil.isEmpty(ntcRadiusReport.getSearchReportStartTime())&&StringUtil.isEmpty(ntcRadiusReport.getSearchReportEndTime()))) { Long times = DateUtil.convertStringToTimestamp(ntcRadiusReport.getSearchReportEndTime(), DateUtil.YYYY_MM_DD_HH24_MM_SS)-DateUtil.convertStringToTimestamp(ntcRadiusReport.getSearchReportStartTime(), DateUtil.YYYY_MM_DD_HH24_MM_SS); - if (times>0&×<=30*24*60*60L) { + if (times>24*60*60L&×<=30*24*60*60L) { groupType ="day"; }else if(times>30*24*60*60L){ groupType ="month"; diff --git a/src/main/java/com/nis/web/dao/NtcReportDao.xml b/src/main/java/com/nis/web/dao/NtcReportDao.xml index 65b0ca3..de38634 100644 --- a/src/main/java/com/nis/web/dao/NtcReportDao.xml +++ b/src/main/java/com/nis/web/dao/NtcReportDao.xml @@ -645,12 +645,8 @@