问卷
This commit is contained in:
@@ -29,6 +29,11 @@ export default class SurveyRec extends BaseModel {
|
||||
return rec;
|
||||
}
|
||||
|
||||
public static async findByRole(roleId: string) {
|
||||
let rec: SurveyRecType[] = await SurveyRecModel.find({ roleId }).lean();
|
||||
return rec;
|
||||
}
|
||||
|
||||
public static async findByCode(code: string) {
|
||||
let rec: SurveyRecType = await SurveyRecModel.findOne({ code }).lean();
|
||||
return rec;
|
||||
|
||||
Reference in New Issue
Block a user