登录获取组织ID 为Null bug 修复

yun-zuoyi
wei.peng 6 years ago
parent 96f9f3efe2
commit c8445c0ae5

@ -306,11 +306,13 @@ public class PersonnelServiceService implements IPersonnelService {
List<SysRefUserDepartment> refs = findSysRefUserDepartmentById(infoId); List<SysRefUserDepartment> refs = findSysRefUserDepartmentById(infoId);
if(refs != null && refs.size() > 0){ if(refs != null && refs.size() > 0){
Long[] ids = new Long[refs.size()]; List<Long> ids = new ArrayList<>();
for (int i = 0; i < refs.size(); i++) { refs.forEach(ref -> {
ids[i] = refs.get(i).getOrganizeId(); if(ref.getOrganizeId() != null){
} ids.add(ref.getOrganizeId());
String idWhere = CoreHqlPack.packHqlIds("id", ids); }
});
String idWhere = CoreHqlPack.packHqlIds("id", ids.toArray(new Long[ids.size()]));
return organizeRDao.findByHqlWhere(idWhere); return organizeRDao.findByHqlWhere(idWhere);
} }
return result; return result;

Loading…
Cancel
Save