فهرست منبع

报表显示问题

MaxKey 4 سال پیش
والد
کامیت
370fb0bc71

+ 3 - 0
maxkey-persistence/src/main/resources/org/maxkey/persistence/mapper/xml/mysql/ReportMapper.xml

@@ -36,6 +36,7 @@
     	WHERE 
     		DATE(LOGINTIME) =curdate()
     	GROUP BY REPORTSTRING
+    	ORDER BY REPORTSTRING
     </select>
     <!-- 30 DAY COUNT 最近30天每天访问量-->   
     <select id="analysisMonth" parameterType="String" resultType="Map">
@@ -45,6 +46,7 @@
     	WHERE 
     		DATE(LOGINTIME) >date_add(curdate(), interval - day(curdate()) -31 day)
     	GROUP BY REPORTSTRING
+    	ORDER BY REPORTSTRING
     </select>
     
     <!-- 30天浏览器的访问统计 -->
@@ -55,6 +57,7 @@
     	WHERE 
     		DATE(LOGINTIME) >date_add(curdate(), interval - day(curdate()) -31 day)
     	GROUP BY REPORTSTRING
+    	ORDER BY REPORTCOUNT DESC
     </select>
     
     <!-- 30天应用单点登录的访问统计 -->

+ 2 - 2
maxkey-web-manage/src/main/resources/templates/views/main.ftl

@@ -206,7 +206,7 @@
 				}],
 				yAxes: [{
 					display: true,
-					type: 'logarithmic',
+					stacked: true
 				}]
 			}
 		}
@@ -235,7 +235,7 @@
 					}],
 					yAxes: [{
 						display: true,
-						type: 'logarithmic',
+						stacked: true
 					}]
 				}
 			}