package com.qxueyou.scc.teach.student.dao; import org.springframework.stereotype.Repository; import com.qxueyou.scc.base.dao.BaseDAO; import com.qxueyou.scc.base.util.CollectionUtils; @Repository public class StudentDAO extends BaseDAO { public boolean exists(String studentNo,String organizationId) { return findCount("from StuStudent s,User u where s.userId=u.userId and s.studentNo=? and u.organizationId=? and s.deleteFlag is false ", CollectionUtils.newList(studentNo,organizationId))>0; } }