add - 通用看板接口
parent
e8eca651d4
commit
65367c5c3c
@ -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…
Reference in New Issue