src/main/java/com/ruoyi/project/system/report/controller/ReportContoller.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.ruoyi.project.system.report.controller;/**
* @author qinjiasheng
* @create 2024-05-05 21:25
*/
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.report.domain.CarReport;
import com.ruoyi.project.system.report.service.IReportService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
@author qinjiasheng
@create 2024-05-05 21:25
*/
@Controller
@RequestMapping("/system/report")
public class ReportContoller {
private String prefix = "system/report";
@Autowired
private IReportService reportService;
//出租统计首页
@GetMapping("/carstatistics")
public String carstatistics()
{
return prefix + "/carstatistics";
}
//收入统计首页
@GetMapping("/carincomes")
public String sysbaoxianinfotabel()
{
return prefix + "/carincomes";
}
@PostMapping("/echarts/getCarStatistics")
@ResponseBody
public AjaxResult getCarStatistics(@RequestParam Map<String, String> params){
System.out.println(params);
String showType = params.get("showType");
String statisticsType = params.get("statisticsType");
if("次".equals(showType)){
if("月".equals(statisticsType)){
}
else if("月".equals(statisticsType)){
return AjaxResult.success(reportService.getCarincomeByMonth());
}else if("年".equals(statisticsType)){
return AjaxResult.success(reportService.getCarincomeByYear());
}if("天".equals(showType)){
}
}
后面还有 60 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
