add - 通用看板接口

master
yinq 1 year ago
parent e8eca651d4
commit 65367c5c3c

@ -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()

@ -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<String, String> paramMap) {
return AjaxResult.success(boardReportService.generalInterfaceList(paramMap));
}
}

@ -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<HashMap<String, Object>> generalInterfaceList(HashMap paramMap);
}

@ -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<HashMap<String, Object>> generalInterfaceList(HashMap paramMap);
}

@ -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<HashMap<String, Object>> generalInterfaceList(HashMap paramMap) {
return boardReportMapper.generalInterfaceList(paramMap);
}
}

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aucma.report.mapper.BoardReportMapper">
<select id="generalInterfaceList" resultType="java.util.HashMap" parameterType="java.util.HashMap">
SELECT * FROM TABLE (${method})
</select>
</mapper>
Loading…
Cancel
Save