添加excel功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user