add 每日新增用户和每日新增支付金额图表

This commit is contained in:
王鹏
2025-10-31 09:44:37 +08:00
parent 4d2d38aadd
commit da05a94acb
12 changed files with 251 additions and 12 deletions

View File

@@ -1,17 +1,11 @@
package com.ruoyi.web.controller.app;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
@@ -101,4 +95,15 @@ public class AppPayOrderController extends BaseController
{
return toAjax(appPayOrderService.deleteAppPayOrderByIds(ids));
}
/**
* 查询每日新增支付金额统计
*/
@PreAuthorize("@ss.hasPermi('app:order:list')")
@GetMapping("/dailyPayAmount")
public AjaxResult dailyPayAmount(@RequestParam(defaultValue = "30") Integer days)
{
List<Map<String, Object>> list = appPayOrderService.selectDailyPayAmount(days);
return AjaxResult.success(list);
}
}

View File

@@ -290,4 +290,14 @@ public class SysUserController extends BaseController
ajax.put("user", sysUser);
return ajax;
}
/**
* 获取每天新增用户数量
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/countByDay")
public AjaxResult countByDay()
{
return AjaxResult.success(userService.selectUserCountByDay());
}
}