List roles = Stream.of( activityAppraiseeService.existByEmpCode(empCode) ? UserTypeEnum.APPRAISEE.getValue() : null, activityExaminerService.existByEmpCode(empCode) ? UserTypeEnum.EXAMINER.getValue() : null) .filter(Objects::nonNull) .collect(Collectors.toList());

final ListInteger roles = ListsnewArrayList; if activityAppraiseeServiceexistByEmpCodeempCode rolesaddUserTypeEnumAPPRAISEEgetValue; if activityExaminerServiceexistBy

原文地址: http://www.cveoy.top/t/topic/hCpM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录