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;
|
}
|
|
}
|