1、
List<BusinessTripApplyDetail> detailsToDelete = genericService.find(BusinessTripApplyDetail.class, cond, null);
List<String> deleteIds=detailsToDelete.stream().map(BusinessTripApplyDetail::getId).collect(Collectors.toList());
2、
// 获取当前用户有权限的组织树
Map<String, AdminOrg> orgTree = orgPowerService.queryUserPowererOrgMap(userId, IServceCodeConstant.ATTEND_SET, 3);
//获取id集合
List<String> orgIds = orgTree.keySet().stream().collect(Collectors.toList());
3、
List<String> shiftBeforeIds = Optional.ofNullable(shiftBeforeIds).orElse(new ArrayList<>());
4、
Optional.ofNullable(staff).orElseThrow(() -> new AdderBusinessException("获取用户信息失败!", "attend.process.i18n0002"));
5、
String year = StringUtils.defaultIfEmpty(year,"");
6、
List<OvertimeOriBillVO>
CollectionUtils.isNotEmpty(orgList)
7、
String[] ids
ArrayUtils.isNotEmpty(ids)
8、
String instanceid
StringUtils.isNotEmpty(instanceid)
9、
ArrayUtils.isEmpty(tripApplys)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/69942664/viewspace-2652519/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/69942664/viewspace-2652519/