Commit f87fc522 by 王昆

gsb

parent 5e550033
......@@ -22,6 +22,13 @@ class Dao{
});
}
}
//批量插入
async bulkCreate(objs) {
if (!objs || objs.length == 0) {
return;
}
return await this.model.bulkCreate(objs);
}
static getModelName(ClassObj){
return ClassObj["name"].substring(0,ClassObj["name"].lastIndexOf("Dao")).toLowerCase()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment