|
@@ -44,7 +44,8 @@ class StudentService extends CrudService {
|
|
|
if (!data) return { filter, body };
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ await this.model.updateOne({ student_id: id }, { student_id: data._id });
|
|
|
await this.model.deleteOne({ _id: ObjectId(id) });
|
|
|
throw new BusinessError(ErrorCode.DATA_EXISTED, '该用户已存在学员数据,不可以重复绑定');
|
|
|
}
|