50,530
社区成员
发帖
与我相关
我的任务
分享
public Long getCompanyIdByUser(Long id) {
Session session = sessionFactory.getCurrentSession();
Query q = session.createQuery("select companyId from USER where id=?id");
Long Companyid = (Long)q.uniqueResult();
return Companyid;
}