|
@@ -146,7 +146,7 @@ class SchoolService extends CrudService {
|
|
data.msg = data.msg + '手机号不正确,';
|
|
data.msg = data.msg + '手机号不正确,';
|
|
|
|
|
|
}
|
|
}
|
|
- const res = await this.model.findOne({ id_number: data.id_number });
|
|
|
|
|
|
+ const res = await this.smodel.findOne({ id_number: data.id_number });
|
|
if (res) {
|
|
if (res) {
|
|
errorcode = '1';
|
|
errorcode = '1';
|
|
data.msg = data.msg + '学生已经存在请检查,';
|
|
data.msg = data.msg + '学生已经存在请检查,';
|