Bläddra i källkod

修改查询报表接口

zhonghui 3 år sedan
förälder
incheckning
8f0c6a88df

+ 3 - 3
boman-report/src/main/java/com/boman/report/controller/StatisticReportController.java

@@ -29,9 +29,9 @@ public class StatisticReportController extends BaseController {
      *
      * @return
      */
-    @RequestMapping("/datas")
-    public AjaxResult datas(@RequestBody StatisticReport report) {
-        return AjaxResult.success(reportService.datas(report));
+    @GetMapping("/datas")
+    public AjaxResult datas() {
+        return AjaxResult.success(reportService.datas());
     }
 
     /**

+ 1 - 1
boman-report/src/main/java/com/boman/report/service/StatisticReportService.java

@@ -20,7 +20,7 @@ import java.util.List;
  **/
 public interface StatisticReportService {
 
-    Map<String, Object> datas(StatisticReport report);
+    Map<String, Object> datas();
 
     List<StatisticReport> selectList(StatisticReport report);
 

+ 1 - 1
boman-report/src/main/java/com/boman/report/service/impl/StatisticReportServiceImpl.java

@@ -90,7 +90,7 @@ public class StatisticReportServiceImpl implements StatisticReportService {
     }
 
     @Override
-    public Map<String, Object> datas(StatisticReport report) {
+    public Map<String, Object> datas() {
         Map<String, Object> result = new HashMap<>();
         List<StatisticReportDto> reportDtos = statisticReportMapper.selectReportInfo(SecurityUtils.getUsername());
         result.put("reports", reportDtos);