Commit fbb116ac authored by zengtianlai3's avatar zengtianlai3

修改文件无法下载问题

parent d2d3afe0
......@@ -28,10 +28,9 @@ public class ResourceContrller {
@ApiOperation(value = "资源下载接口", notes = "用于下载资源")
@GetMapping("/download")
@MyLog(title = "下载资源", businessType = BusinessType.OTHER)
public void downloadWorkHourRecordTemplate(HttpServletResponse response) {
int userId = Integer.valueOf(XssUtil.checkXSS(UserUtils.getLoginUserId()));
@MyLog(title = "下载资源", optParam = "#{userId}", businessType = BusinessType.OTHER)
@ApiImplicitParam(name = "userId", value = "用户Id", required = true, dataType = "int")
public void downloadWorkHourRecordTemplate(HttpServletResponse response, @RequestParam(value = "userId") int userId) {
resourceManager.downloadDeviceInfoExcle(response, userId);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment