SysExcelParseController.java
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.skua.modules.system.controller;
import java.util.List;
import java.util.Map;
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 com.alibaba.fastjson.JSONObject;
import com.skua.core.api.vo.Result;
import com.skua.common.report.CustomReportUtil;
import com.skua.common.report.MockData;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import springfox.documentation.annotations.ApiIgnore;
/**
* <pre>
* 自定义报表controller类
* </pre>
* @author Li Yuanyuan
* @version V0.1, 2020年5月14日 下午1:51:14
*/
@Slf4j
@Api(tags="excel解析")
@ApiIgnore
@RestController
@RequestMapping("/sys/sysExcelParse")
public class SysExcelParseController {
@PostMapping(value = "/parse")
public Result<String> queryPageList(@RequestBody JSONObject parm) {
Result<String> result = new Result<String>();
//获取数据结果集
Map<String,List<Map<String,String>>> dataMap = MockData.getData();
//String html = CustomReportUtil.showReport(parm, dataMap,'1','1');
String html = "";
result.success("成功");
result.setResult(html);
return result;
}
}