派生自 projectDept/qhighschool

yn147
2023-11-25 63c8bc319fd02d9f39b729f136fb3af01c773de1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
 
}