|
@@ -63,7 +63,7 @@ class UploadquestionService extends CrudService {
|
|
|
const stus = await this.smodel.find({ classid: typeid });
|
|
|
for (const elm of stus) {
|
|
|
// 取得当前期学生答问卷数
|
|
|
- const answer = await this.model.find({ studentid: elm.id, questionnaireid });
|
|
|
+ const answer = await this.model.findOne({ studentid: elm.id, questionnaireid });
|
|
|
let completion = '';
|
|
|
if (answer) {
|
|
|
completion = '100%';
|