@Controller @RequestMapping(value="manager/version/") public class CoreVersionController extends BaseController
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreVersionService |
coreVersionService |
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreVersionController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(CoreVersion table) |
protected java.util.List<UploadFileVo> |
commonsUploadEx(java.lang.String rootDir,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
downLoad(java.lang.String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
更新包下载
|
RetVo |
getUpdateProcess()
获取初更新的进度信息
|
java.lang.String |
main(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
maxVersion(javax.servlet.http.HttpServletRequest request) |
RetVo |
modify(CoreVersion table) |
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params)
查询数据
|
RetVo |
queryByCondition(java.util.Map<java.lang.String,java.lang.Object> params)
查询系统更新信息
|
RetVo |
querySsxt()
查询所属系统并分组,不包涵平台所属
|
RetVo |
queryversion()
查询当前平台版本
|
RetVo |
remove(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
startUpdate(java.lang.String rwid)
开始更新
|
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 CoreVersionService coreVersionService
@RequestMapping(value="/", method=GET) public java.lang.String main(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="maxVersion/", method=GET) public java.lang.String maxVersion(javax.servlet.http.HttpServletRequest request)
@ResponseBody @RequestMapping(value="modify", method=POST) public RetVo modify(@RequestBody CoreVersion table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="add", method=PUT) public RetVo add(@RequestBody CoreVersion table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="remove", method=DELETE) public RetVo remove(@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
params
- 参数java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="startupdate", method=POST) public RetVo startUpdate(@RequestParam(value="RWID") java.lang.String rwid) throws java.lang.Exception
rwid
- 对应的版本记录IDjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/queryupdateprocess", method=GET) public RetVo getUpdateProcess() throws java.lang.Exception
java.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="download", method=GET) public void downLoad(@RequestParam java.lang.String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
id
- 下载idrequest
- 请求对象response
- 响应对象java.io.IOException
- 出错抛出异常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
- 出错会抛出异常protected java.util.List<UploadFileVo> commonsUploadEx(java.lang.String rootDir, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@ResponseBody @RequestMapping(value="queryversion", method=GET) public RetVo queryversion()
@ResponseBody @RequestMapping(value="querybycondition", method=POST) public RetVo queryByCondition(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params)
params
- 参数@ResponseBody @RequestMapping(value="queryssxt", method=POST) public RetVo querySsxt()