|
|
@@ -402,8 +402,8 @@ public class UserspaceManagerController extends BaseController {
|
|
|
* 企业信息库总数
|
|
|
*/
|
|
|
@RequestMapping(value = "/count", method = RequestMethod.GET)
|
|
|
- public long getEnterpriseCount() {
|
|
|
- return userspaceService.getCount();
|
|
|
+ public ModelMap getEnterpriseCount() {
|
|
|
+ return success(new ModelMap("count", userspaceService.getCount()));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -411,13 +411,13 @@ public class UserspaceManagerController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/currentMonth/count", method = RequestMethod.GET)
|
|
|
- public long getCurrentMonthCount() {
|
|
|
+ public ModelMap getCurrentMonthCount() {
|
|
|
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);
|
|
|
- return userspaceService.getCountByRegisterDate(start, end);
|
|
|
+ return success(new ModelMap("count", userspaceService.getCountByRegisterDate(start, end)));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -425,13 +425,13 @@ public class UserspaceManagerController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/lastMonth/enterprise/count", method = RequestMethod.GET)
|
|
|
- public long getLastMonthEnterpriseCount() {
|
|
|
+ public ModelMap getLastMonthEnterpriseCount() {
|
|
|
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);
|
|
|
- return userspaceService.getCountByRegisterDate(start, end);
|
|
|
+ return success(new ModelMap("count", userspaceService.getCountByRegisterDate(start, end)));
|
|
|
}
|
|
|
|
|
|
}
|