| | |
| | | attach.setAreaCode(HeaderUtils.getAreaCodeHeaderAreaCode(attach.getAreaCode())); |
| | | if (Objects.isNull(attach.getResultTypes())) { |
| | | // 使用常量定义避免魔法数字 |
| | | attach.setResultTypes(Arrays.asList(TypeOfOutcome.IMAGE.getType(), |
| | | TypeOfOutcome.VIDEO.getType(), |
| | | TypeOfOutcome.AI.getType(), |
| | | TypeOfOutcome.SURVEY.getType(), |
| | | TypeOfOutcome.PANORAMA.getType())); |
| | | // attach.setResultTypes(Arrays.asList(TypeOfOutcome.IMAGE.getType(), |
| | | // TypeOfOutcome.VIDEO.getType(), |
| | | // TypeOfOutcome.AI.getType(), |
| | | // TypeOfOutcome.SURVEY.getType(), |
| | | // TypeOfOutcome.PANORAMA.getType())); |
| | | } |
| | | List<Long> deptIdList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | String permissionCondition = permissionBuilder.buildDataPermissionCondition(AuthUtil.getUserId(), "attach"); |