派生自 projectDept/qhighschool

11
EricsHu
2023-05-26 1bce00f5b3614ca12b683dfe8a3cf733e1ed68b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.qxueyou.scc.admin.teacher.dao;
 
import org.springframework.stereotype.Repository;
 
import com.qxueyou.scc.base.dao.BaseDAO;
import com.qxueyou.scc.base.util.CollectionUtils;
 
@Repository
public class TeacherDAO extends BaseDAO {
 
    public boolean exists(String teacherNo) {
        return findCount("from UserTeacher where deleteFlag is false and teacherNo = ?",
                CollectionUtils.newList(teacherNo)) > 0;
    }
 
    public boolean exists(String mobilePhone, String exceptTeacherId) {
        return findCount("from UserTeacher where deleteFlag is false and mobilePhone=? and teacherId!=?",
                CollectionUtils.newList(mobilePhone, exceptTeacherId)) > 0;
    }
 
}