|
|
@@ -3,6 +3,7 @@ package com.uas.sso.controller;
|
|
|
import com.uas.account.exception.AccountException;
|
|
|
import com.uas.sso.core.Const;
|
|
|
import com.uas.sso.entity.*;
|
|
|
+import com.uas.sso.i.CountCallBack;
|
|
|
import com.uas.sso.service.ApplyUserSpaceService;
|
|
|
import com.uas.sso.service.UserService;
|
|
|
import com.uas.sso.service.UserspaceService;
|
|
|
@@ -446,11 +447,12 @@ public class UserManagerController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 统计指定应用个人用户总数
|
|
|
+ *
|
|
|
* @param fromApps
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/count/apps",method = RequestMethod.GET)
|
|
|
- public ModelMap countForApp(String fromApps){
|
|
|
+ @RequestMapping(value = "/count/apps", method = RequestMethod.GET)
|
|
|
+ public ModelMap countForApp(String fromApps) {
|
|
|
String[] apps = fromApps.split(",");
|
|
|
return success(userService.count(new ArrayList<>(Arrays.asList(apps))));
|
|
|
}
|
|
|
@@ -567,16 +569,31 @@ public class UserManagerController extends BaseController {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 统计指定时间内个人用户登录总数
|
|
|
*/
|
|
|
@RequestMapping(value = "/count/login", method = RequestMethod.GET)
|
|
|
- public ModelMap countByLogin(String start,String end) throws ParseException {
|
|
|
- return new ModelMap("count", userService.countByLogin(start,end));
|
|
|
+ public ModelMap countByLogin(String start, String end) throws ParseException {
|
|
|
+ return new ModelMap("count", userService.countByLogin(start, end));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 统计指定时间内个人用户登录总数
|
|
|
+ * 统计指定时间内X未登录用户数
|
|
|
+ *
|
|
|
+ * @param start
|
|
|
+ * @param end
|
|
|
+ * @param month
|
|
|
+ * @return
|
|
|
+ * @throws ParseException
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/count/notlgoin/month", method = RequestMethod.GET)
|
|
|
+ public ModelMap countByNotLogin(String start, String end, int month) throws ParseException {
|
|
|
+ return new ModelMap("count", userService.countByLoginInputMonth(start, end, month));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 统计指定时间内个人用户未登录总数
|
|
|
*/
|
|
|
@RequestMapping(value = "/count/notlogin", method = RequestMethod.GET)
|
|
|
public ModelMap countByNotLogin(int month) throws ParseException {
|