SysExcelParseController.java 1.3 KB
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;
	}
	
}