|
@@ -52,14 +52,15 @@ class StudentService extends CrudService {
|
|
|
}
|
|
|
|
|
|
// 查询
|
|
|
- async seek({ termid, type, skip, limit }) {
|
|
|
+ async seek({ termid, type, batchid, skip, limit }) {
|
|
|
const total = await this.model.count({
|
|
|
termid,
|
|
|
type,
|
|
|
+ batchid,
|
|
|
$or: [{ classid: null }, { classid: '' }],
|
|
|
});
|
|
|
const data = await this.model
|
|
|
- .find({ termid, type, $or: [{ classid: null }, { classid: '' }] })
|
|
|
+ .find({ termid, type, batchid, $or: [{ classid: null }, { classid: '' }] })
|
|
|
.skip(Number(skip))
|
|
|
.limit(Number(limit));
|
|
|
const result = { total, data };
|