浏览代码

添加报表配置查询接口

fengyanjie@sagacloud.cn 4 年之前
父节点
当前提交
b74cae0d47
共有 1 个文件被更改,包括 25 次插入0 次删除
  1. 25 0
      dmp-report/src/main/java/com/persagy/dmp/report/controller/ReportConfigController.java

+ 25 - 0
dmp-report/src/main/java/com/persagy/dmp/report/controller/ReportConfigController.java

@@ -0,0 +1,25 @@
+package com.persagy.dmp.report.controller;
+
+import com.persagy.common.web.PagedResponse;
+import com.persagy.dmp.report.common.criteria.JacksonCriteria;
+import com.persagy.dmp.report.entity.ReportConfig;
+import com.persagy.dmp.report.service.ReportConfigService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/report/config")
+public class ReportConfigController {
+
+    @Autowired
+    private ReportConfigService service;
+
+    @PostMapping("/query")
+    public PagedResponse<ReportConfig> query(@RequestBody JacksonCriteria criteria) {
+        return service.query(criteria);
+    }
+
+}