From 65367c5c3cc16b4bed1de67cf135d563866ce352 Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Tue, 31 Oct 2023 15:44:12 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E9=80=9A=E7=94=A8=E7=9C=8B=E6=9D=BF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/config/SecurityConfig.java | 4 +- .../controller/BoardReportController.java | 43 +++++++++++++++++++ .../report/mapper/BoardReportMapper.java | 25 +++++++++++ .../report/service/IBoardReportService.java | 25 +++++++++++ .../service/impl/BoardReportServiceImpl.java | 39 +++++++++++++++++ .../mapper/report/BoardReportMapper.xml | 14 ++++++ 6 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 aucma-report/src/main/java/com/aucma/report/controller/BoardReportController.java create mode 100644 aucma-report/src/main/java/com/aucma/report/mapper/BoardReportMapper.java create mode 100644 aucma-report/src/main/java/com/aucma/report/service/IBoardReportService.java create mode 100644 aucma-report/src/main/java/com/aucma/report/service/impl/BoardReportServiceImpl.java create mode 100644 aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml diff --git a/aucma-framework/src/main/java/com/aucma/framework/config/SecurityConfig.java b/aucma-framework/src/main/java/com/aucma/framework/config/SecurityConfig.java index 2f2dd8e..12a4c69 100644 --- a/aucma-framework/src/main/java/com/aucma/framework/config/SecurityConfig.java +++ b/aucma-framework/src/main/java/com/aucma/framework/config/SecurityConfig.java @@ -116,7 +116,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() // 开放SAP接口调试 - .antMatchers(HttpMethod.POST, "/sap/port/**").permitAll() +// .antMatchers(HttpMethod.POST, "/sap/port/**").permitAll() + // 开放看板接口 + .antMatchers(HttpMethod.POST, "/boardReport/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated() .and() diff --git a/aucma-report/src/main/java/com/aucma/report/controller/BoardReportController.java b/aucma-report/src/main/java/com/aucma/report/controller/BoardReportController.java new file mode 100644 index 0000000..6b4aafe --- /dev/null +++ b/aucma-report/src/main/java/com/aucma/report/controller/BoardReportController.java @@ -0,0 +1,43 @@ +package com.aucma.report.controller; + +import com.aucma.common.core.controller.BaseController; +import com.aucma.common.core.domain.AjaxResult; +import com.aucma.common.utils.DateUtils; +import com.aucma.report.domain.ReportDayDnb; +import com.aucma.report.service.IBoardReportService; +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; + +import java.util.HashMap; + +/** + * 看板报表Controller + * + * @Author YinQ + * @create 2023-10-26 10:49 + */ +@RestController +@RequestMapping("/boardReport" ) +public class BoardReportController extends BaseController { + + @Autowired + private IBoardReportService boardReportService; + + + /** + * 看板通用接口List + * @param paramMap + * @return + */ + @PostMapping("/generalInterfaceList") + public AjaxResult generalInterfaceList(@RequestBody HashMap paramMap) { + return AjaxResult.success(boardReportService.generalInterfaceList(paramMap)); + } + + + + +} diff --git a/aucma-report/src/main/java/com/aucma/report/mapper/BoardReportMapper.java b/aucma-report/src/main/java/com/aucma/report/mapper/BoardReportMapper.java new file mode 100644 index 0000000..e965dd9 --- /dev/null +++ b/aucma-report/src/main/java/com/aucma/report/mapper/BoardReportMapper.java @@ -0,0 +1,25 @@ +package com.aucma.report.mapper; + +import java.util.HashMap; +import java.util.List; + +/** + * 看板报表Mapper接口 + * + * @Author YinQ + * @create 2023-10-26 10:53 + */ +public interface BoardReportMapper { + + + /** + * 看板通用接口List + * @param paramMap + * @return + */ + List> generalInterfaceList(HashMap paramMap); + + + + +} diff --git a/aucma-report/src/main/java/com/aucma/report/service/IBoardReportService.java b/aucma-report/src/main/java/com/aucma/report/service/IBoardReportService.java new file mode 100644 index 0000000..1eba3af --- /dev/null +++ b/aucma-report/src/main/java/com/aucma/report/service/IBoardReportService.java @@ -0,0 +1,25 @@ +package com.aucma.report.service; + +import java.util.HashMap; +import java.util.List; + +/** + * 看板报表Service接口 + * + * @Author YinQ + * @create 2023-10-26 10:50 + */ +public interface IBoardReportService { + + + /** + * 看板通用接口List + * @param paramMap + * @return + */ + List> generalInterfaceList(HashMap paramMap); + + + + +} diff --git a/aucma-report/src/main/java/com/aucma/report/service/impl/BoardReportServiceImpl.java b/aucma-report/src/main/java/com/aucma/report/service/impl/BoardReportServiceImpl.java new file mode 100644 index 0000000..d6f355c --- /dev/null +++ b/aucma-report/src/main/java/com/aucma/report/service/impl/BoardReportServiceImpl.java @@ -0,0 +1,39 @@ +package com.aucma.report.service.impl; + +import com.aucma.report.mapper.BoardReportMapper; +import com.aucma.report.service.IBoardReportService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.HashMap; +import java.util.List; + +/** + * 看板报表Service业务层处理 + * + * @Author YinQ + * @create 2023-10-26 10:51 + */ +@Service +public class BoardReportServiceImpl implements IBoardReportService { + + @Autowired + private BoardReportMapper boardReportMapper; + + + /** + * 看板通用接口List + * @param paramMap + * @return + */ + @Override + public List> generalInterfaceList(HashMap paramMap) { + return boardReportMapper.generalInterfaceList(paramMap); + } + + + + + + +} diff --git a/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml b/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml new file mode 100644 index 0000000..308a7f6 --- /dev/null +++ b/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml @@ -0,0 +1,14 @@ + + + + + + + + + +