Ver código fonte

添加报表配置查询接口

fengyanjie@sagacloud.cn 4 anos atrás
pai
commit
b74cae0d47

+ 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);
+    }
+
+}