...
This commit is contained in:
parent
184950d030
commit
8a4e11430e
|
@ -21,8 +21,6 @@ import io.renren.modules.resource.excel.census.config.CustomCellWriteWeightConfi
|
||||||
import io.renren.modules.resource.service.ResourceService;
|
import io.renren.modules.resource.service.ResourceService;
|
||||||
import io.renren.modules.resource.videoPreview.AbstractVideoPreviewService;
|
import io.renren.modules.resource.videoPreview.AbstractVideoPreviewService;
|
||||||
import io.renren.modules.resource.videoPreview.VideoPreviewFactory;
|
import io.renren.modules.resource.videoPreview.VideoPreviewFactory;
|
||||||
import io.renren.modules.security.user.SecurityUser;
|
|
||||||
import io.renren.modules.security.user.UserDetail;
|
|
||||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
import io.renren.modules.sys.service.SysDeptService;
|
import io.renren.modules.sys.service.SysDeptService;
|
||||||
|
@ -168,11 +166,11 @@ public class ResourceController {
|
||||||
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "approveStatus", value = "审核状态,可选值(通过、审核中)", paramType = "query", dataType = "String"),
|
||||||
})
|
})
|
||||||
public void exportSelectCensusResourceTable(@RequestParam Map<String, Object> params, HttpServletResponse response) throws IOException {
|
public void exportSelectCensusResourceTable(@RequestParam Map<String, Object> params, HttpServletResponse response) throws IOException {
|
||||||
UserDetail user = SecurityUser.getUser();
|
// UserDetail user = SecurityUser.getUser();
|
||||||
if (user.getDeptId() != null) {
|
// if (user.getDeptId() != null) {
|
||||||
SysDeptDTO sysDeptDTO = sysDeptService.get(user.getDeptId());
|
// SysDeptDTO sysDeptDTO = sysDeptService.get(user.getDeptId());
|
||||||
params.put("region", sysDeptDTO.getDistrict()); // 管理员只出本部门区域
|
// params.put("region", sysDeptDTO.getDistrict()); // 管理员只出本部门区域
|
||||||
}
|
// }
|
||||||
List<ResourceDTO> result = resourceService.list(params);
|
List<ResourceDTO> result = resourceService.list(params);
|
||||||
List<List<Object>> date = result.stream().map(index -> {
|
List<List<Object>> date = result.stream().map(index -> {
|
||||||
List<Object> data = new ArrayList<>();
|
List<Object> data = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue