|
|
@@ -583,13 +583,20 @@ public class UserManagerController extends BaseController {
|
|
|
*
|
|
|
* @param start
|
|
|
* @param end
|
|
|
- * @param month
|
|
|
+ * @param
|
|
|
* @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));
|
|
|
+ public Map<String, Long> countByNotLogin(String start, String end, String months) throws ParseException {
|
|
|
+ Map<String, Long> data = new HashMap<>();
|
|
|
+ List<String> monthss = Arrays.asList(months.split(","));
|
|
|
+ for (String smonth : monthss) {
|
|
|
+ int month = Integer.parseInt(smonth);
|
|
|
+ long count = userService.countByLoginInputMonth(start, end, month);
|
|
|
+ data.put(smonth,count);
|
|
|
+ }
|
|
|
+ return data;
|
|
|
}
|
|
|
|
|
|
/**
|