|
@@ -0,0 +1,60 @@
|
|
|
+package com.anjiplus.template.gaea.business.modules.data.report.controller;
|
|
|
+
|
|
|
+import com.anji.plus.gaea.annotation.Permission;
|
|
|
+import com.anji.plus.gaea.annotation.log.GaeaAuditLog;
|
|
|
+import com.anji.plus.gaea.bean.ResponseBean;
|
|
|
+import com.anji.plus.gaea.curd.controller.GaeaBaseController;
|
|
|
+import com.anji.plus.gaea.curd.service.GaeaBaseService;
|
|
|
+import com.anjiplus.template.gaea.business.modules.data.report.controller.dto.ReportDto;
|
|
|
+import com.anjiplus.template.gaea.business.modules.data.report.controller.param.ReportParam;
|
|
|
+import com.anjiplus.template.gaea.business.modules.data.report.dao.entity.Report;
|
|
|
+import com.anjiplus.template.gaea.business.modules.data.report.service.ReportService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * TODO
|
|
|
+ *
|
|
|
+ * @author chenkening
|
|
|
+ * @date 2021/3/26 10:19
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@Api(tags = "报表数据管理")
|
|
|
+@RequestMapping("/report")
|
|
|
+public class ReportController extends GaeaBaseController<ReportParam, Report, ReportDto> {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ReportService reportService;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public GaeaBaseService<ReportParam, Report> getService() {
|
|
|
+ return reportService;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Report getEntity() {
|
|
|
+ return new Report();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ReportDto getDTO() {
|
|
|
+ return new ReportDto();
|
|
|
+ }
|
|
|
+
|
|
|
+ @DeleteMapping("/delReport")
|
|
|
+ @Permission(
|
|
|
+ code = "DELETE",
|
|
|
+ name = "删除"
|
|
|
+ )
|
|
|
+ @GaeaAuditLog(
|
|
|
+ pageTitle = "删除"
|
|
|
+ )
|
|
|
+ public ResponseBean delReport(@RequestBody ReportDto reportDto) {
|
|
|
+ reportService.delReport(reportDto);
|
|
|
+ return ResponseBean.builder().build();
|
|
|
+ }
|
|
|
+}
|