添加excel功能

This commit is contained in:
xiangwb
2017-11-20 17:46:27 +08:00
parent 737ba5223c
commit d7476276f0
6 changed files with 400 additions and 1 deletions
@@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
@@ -211,4 +212,11 @@ public class SysUserControl {
List<SysAuthority> list = sysUserService.queryAuthority(userId, enable);
return JSONObjResult.toJSONObj(list, true, "");
}
@LogInfo("导出用户excel表")
@GetMapping("exportReport")
@ApiOperation(value = "导出用户excel表")
public void exportReport(HttpServletResponse response) {
sysUserService.exportReport(response);
}
}