Compare commits

..

No commits in common. "3fc32a5a434791c80d9828d3eb14e20f13ae69eb" and "25d68b648b00a1fe12df39c6f594a1642a0f702b" have entirely different histories.

1 changed files with 2 additions and 11 deletions

View File

@ -286,7 +286,7 @@ public class TAbilityApplicationController {
@GetMapping("getByApplyFlag/{applyFlag}")
@ApiOperation("根据申请标识获取能力申请信息")
@LogOperation("根据申请标识获取能力申请信息")
public Result<TAbilityApplicationV2DTO> getByApplyFlag(@PathVariable("applyFlag") String applyFlag, @RequestParam Map<String, Object> requestParams) {
public Result<TAbilityApplicationV2DTO> getByApplyFlag(@PathVariable("applyFlag") String applyFlag) {
final UserDetail user = SecurityUser.getUser();
Map<String, Object> params = new HashMap<String, Object>() {
{
@ -309,14 +309,6 @@ public class TAbilityApplicationController {
return sysDeptDTO.getName();
}
}));
if (requestParams.containsKey("resourceDeptName") && StringUtils.isNotEmpty(requestParams.get("resourceDeptName").toString())) { // 限制只出该资源所属部门的申请情况
Map<String, List<TAbilityApplicationDTO>> finalResult = result;
result = new HashMap<String, List<TAbilityApplicationDTO>>() {{
put(requestParams.get("resourceDeptName").toString(), finalResult.get(requestParams.get("resourceDeptName").toString()));
}};
}
if (applicationDTOS.isEmpty()) {
return new Result<TAbilityApplicationV2DTO>().ok(null);
}
@ -330,9 +322,8 @@ public class TAbilityApplicationController {
}
}
});
Map<String, List<TAbilityApplicationDTO>> finalResult1 = result;
Map<String, List<Map<String, Object>>> re = result.keySet().stream().map(index -> {
final List<TAbilityApplicationDTO> tAbilityApplicationDTOList = finalResult1.get(index);
final List<TAbilityApplicationDTO> tAbilityApplicationDTOList = result.get(index);
if (tAbilityApplicationDTOList.isEmpty()) {
return null;
}