部门名
This commit is contained in:
parent
381c32fd30
commit
bcf940114c
|
@ -7,6 +7,8 @@ import io.renren.common.utils.Result;
|
|||
import io.renren.modules.processForm.service.TAbilityApplicationService;
|
||||
import io.renren.modules.resource.service.ResourceService;
|
||||
import io.renren.modules.resourceBrowse.service.ResourceBrowseService;
|
||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||
import io.renren.modules.sys.service.SysDeptService;
|
||||
import io.renren.modules.sys.service.SysUserService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
@ -39,6 +41,8 @@ public class CensusController {
|
|||
private TAbilityApplicationService tAbilityApplicationService;
|
||||
@Autowired
|
||||
private ResourceBrowseService resourceBrowseService;
|
||||
@Autowired
|
||||
private SysDeptService sysDeptService;
|
||||
|
||||
@Value("${census.type}")
|
||||
private String[] censusTypes; // 需要进行统计的资源类型
|
||||
|
@ -192,10 +196,12 @@ public class CensusController {
|
|||
db.stream().flatMap(index_ -> Arrays.stream(index_.split(";"))).filter(index_ -> StringUtils.isNotEmpty(index_)).collect(Collectors.toSet());
|
||||
return type;
|
||||
}).thenAccept(type -> {
|
||||
SysDeptDTO deptDTO = sysDeptService.get(deptId);
|
||||
result.add(new HashMap<String, Object>() {
|
||||
{
|
||||
put("provide", type);
|
||||
put("deptId", deptId);
|
||||
put("deptName", deptDTO.getName());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -224,10 +230,12 @@ public class CensusController {
|
|||
db.stream().flatMap(index_ -> Arrays.stream(index_.split(";"))).filter(index_ -> StringUtils.isNotEmpty(index_)).collect(Collectors.toSet());
|
||||
return type;
|
||||
}).thenAccept(type -> {
|
||||
SysDeptDTO deptDTO = sysDeptService.get(deptId);
|
||||
result.add(new HashMap<String, Object>() {
|
||||
{
|
||||
put("provide", type);
|
||||
put("deptId", deptId);
|
||||
put("deptName", deptDTO.getName());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue