@Controller
public class CoreImportController
extends java.lang.Object
构造器和说明 |
---|
CoreImportController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
excelin(org.springframework.web.multipart.MultipartFile file,
java.lang.String params)
通过模板文件导入excel
|
RetVo |
excelScriptIn(java.lang.String modelId,
java.lang.String cmpId,
javax.servlet.http.HttpServletRequest request)
通过执行脚本导入excel数据
|
RetVo |
wordlin(java.lang.String modelId,
java.lang.String cmpId,
javax.servlet.http.HttpServletRequest request)
导入word
|
@ResponseBody @RequestMapping(value="core/excel/excelin", method=POST) public RetVo excelin(@RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="param",required=false) java.lang.String params) throws java.lang.Exception
file
- 文件对象params
- 参数Mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="core/excel/scriptin", method=POST) public RetVo excelScriptIn(@RequestParam(value="modelId") java.lang.String modelId, @RequestParam(value="cmpId") java.lang.String cmpId, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
file
- 文件对象params
- 参数Mapjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="core/word/wordin", method=POST) public RetVo wordlin(@RequestParam(value="modelId") java.lang.String modelId, @RequestParam(value="cmpId") java.lang.String cmpId, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
modelId
- 表单模型idcmpId
- 导入组件idrequest
- 请求对象java.lang.Exception
- 出错会抛出异常