1、用户行为统计Bug修改;
2、pom.xml删除resources引用
This commit is contained in:
36
pom.xml
36
pom.xml
@@ -36,42 +36,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.properties</include>
|
|
||||||
<include>**/*.xml</include>
|
|
||||||
<include>**/*.xsd</include>
|
|
||||||
<include>**/*.yml</include>
|
|
||||||
</includes>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<filtering>false</filtering>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.mmdb</include>
|
|
||||||
<include>**/*.dat</include>
|
|
||||||
<include>**/*.sh</include>
|
|
||||||
<include>**/*.bat</include>
|
|
||||||
<include>**/*.sql</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.properties</include>
|
|
||||||
<include>**/*.xml</include>
|
|
||||||
</includes>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
|
|
||||||
</resources>
|
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- <plugin> -->
|
<!-- <plugin> -->
|
||||||
<!-- <groupId>org.mybatis.generator</groupId> -->
|
<!-- <groupId>org.mybatis.generator</groupId> -->
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ public class SingleDimensionReport extends BaseRestController {
|
|||||||
String groupType ="hour";
|
String groupType ="hour";
|
||||||
if (!(StringUtil.isEmpty(ntcRadiusReport.getSearchReportStartTime())&&StringUtil.isEmpty(ntcRadiusReport.getSearchReportEndTime()))) {
|
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);
|
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";
|
groupType ="day";
|
||||||
}else if(times>30*24*60*60L){
|
}else if(times>30*24*60*60L){
|
||||||
groupType ="month";
|
groupType ="month";
|
||||||
|
|||||||
@@ -645,12 +645,8 @@
|
|||||||
<select id="findNtcRadiusReport" parameterType="com.nis.domain.restful.NtcRadiusReport"
|
<select id="findNtcRadiusReport" parameterType="com.nis.domain.restful.NtcRadiusReport"
|
||||||
resultMap="NtcRadiusReportMap">
|
resultMap="NtcRadiusReportMap">
|
||||||
SELECT
|
SELECT
|
||||||
<if test="searchAccount != null and searchAccount !=''">
|
|
||||||
nas_ip,
|
nas_ip,
|
||||||
</if>
|
|
||||||
<if test="searchNasIp != null and searchNasIp !=''">
|
|
||||||
account,
|
account,
|
||||||
</if>
|
|
||||||
<choose>
|
<choose>
|
||||||
<when test="groupType!= null and groupType!='' and groupType == 'day'">
|
<when test="groupType!= null and groupType!='' and groupType == 'day'">
|
||||||
DATE_FORMAT(REPORT_TIME, '%Y-%m-%d')
|
DATE_FORMAT(REPORT_TIME, '%Y-%m-%d')
|
||||||
@@ -665,10 +661,10 @@
|
|||||||
REPORT_TIME,sum(num) num
|
REPORT_TIME,sum(num) num
|
||||||
FROM ntc_radius_report
|
FROM ntc_radius_report
|
||||||
<where>
|
<where>
|
||||||
<if test="searchAccount != null and searchAccount !=''">
|
<if test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 2 and searchAccount != null and searchAccount !=''">
|
||||||
<![CDATA[AND account =#{searchAccount}]]>
|
<![CDATA[AND account =#{searchAccount}]]>
|
||||||
</if>
|
</if>
|
||||||
<if test="searchNasIp != null and searchNasIp !=''">
|
<if test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 and searchNasIp != null and searchNasIp !=''">
|
||||||
<![CDATA[AND nas_ip =#{searchNasIp}]]>
|
<![CDATA[AND nas_ip =#{searchNasIp}]]>
|
||||||
</if>
|
</if>
|
||||||
<choose>
|
<choose>
|
||||||
@@ -682,11 +678,11 @@
|
|||||||
</where>
|
</where>
|
||||||
|
|
||||||
GROUP BY
|
GROUP BY
|
||||||
<if test="searchAccount != null and searchAccount !=''">
|
<if test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 2">
|
||||||
<![CDATA[nas_ip]]>
|
<![CDATA[account,nas_ip]]>
|
||||||
</if>
|
</if>
|
||||||
<if test="searchNasIp != null and searchNasIp !=''">
|
<if test="searchBusinessType !=null and searchBusinessType != '' and searchBusinessType == 3 ">
|
||||||
<![CDATA[account]]>
|
<![CDATA[nas_ip,account]]>
|
||||||
</if>
|
</if>
|
||||||
,
|
,
|
||||||
<choose>
|
<choose>
|
||||||
|
|||||||
Reference in New Issue
Block a user