@Controller @RequestMapping(value="/manager/corefilesres") public class CoreFileResController extends BaseManagerController
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreFileResService |
coreFilesResService |
(专用程序包) ExcelService |
excelService |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreFileResController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(CoreFileRes table) |
RetVo |
delete(java.util.Map<java.lang.String,java.lang.Object> params) |
java.lang.String |
index(javax.servlet.http.HttpServletRequest request) |
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params) |
RetPageVo |
queryexport(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
RetVo |
update(CoreFileRes table) |
RetVo |
upload(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
上传接口
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@Autowired CoreFileResService coreFilesResService
@Autowired ExcelService excelService
@RequestMapping(value="/", method=GET) public java.lang.String index(javax.servlet.http.HttpServletRequest request)
@ResponseBody @RequestMapping(value="modify", method=POST) public RetVo update(@RequestBody CoreFileRes table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="add", method=PUT) public RetVo add(@RequestBody CoreFileRes table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="remove", method=DELETE) public RetVo delete(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="query", method=POST) public RetPageVo query(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="upload", method=POST) public RetVo upload(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
params
- 参数集合 catlog 存放文件的目录request
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="queryexport", method=POST) public RetPageVo queryexport(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception