|
|
@@ -437,13 +437,13 @@ public class UserManagerController extends BaseController {
|
|
|
* 获取本月用户注册数量
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/currentMonth/user/count", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/currentMonth/count", method = RequestMethod.GET)
|
|
|
public ModelMap getCurrentMonthUserCount() {
|
|
|
Calendar start = Calendar.getInstance();
|
|
|
start.setTime(new Date());
|
|
|
start.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH), 1, 0, 0, 0);
|
|
|
Calendar end = Calendar.getInstance();
|
|
|
- start.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH) + 1, 1, 0, 0, 0);
|
|
|
+ end.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH) + 1, 1, 0, 0, 0);
|
|
|
return success(new ModelMap("count", userService.getCountByRegisterDate(start, end)));
|
|
|
}
|
|
|
|
|
|
@@ -451,13 +451,13 @@ public class UserManagerController extends BaseController {
|
|
|
* 获取上个月用户注册数量
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/lastMonth/user/count", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/lastMonth/count", method = RequestMethod.GET)
|
|
|
public ModelMap getLastMonthUserCount() {
|
|
|
Calendar start = Calendar.getInstance();
|
|
|
start.setTime(new Date());
|
|
|
start.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH) - 1, 1, 0, 0, 0);
|
|
|
Calendar end = Calendar.getInstance();
|
|
|
- start.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH), 1, 0, 0, 0);
|
|
|
+ end.set(start.get(Calendar.YEAR), start.get(Calendar.MONTH) + 1, 1, 0, 0, 0);
|
|
|
return success(new ModelMap("count", userService.getCountByRegisterDate(start, end)));
|
|
|
}
|
|
|
}
|