|
@@ -17,8 +17,8 @@ class ApplyService extends CrudService {
|
|
|
// 查询
|
|
|
async queryteacher(num) {
|
|
|
console.log(num);
|
|
|
- const data = await this.model.find(num);
|
|
|
- console.log(data);
|
|
|
+ const { termid, subid } = num;
|
|
|
+ const data = await this.model.find({ termid, subid });
|
|
|
const teachers = [];
|
|
|
for (const _data of data) {
|
|
|
const teacherid = _data.teacherid;
|