liuyu 5 年之前
父节点
当前提交
9fde67447a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/schtime.js

+ 1 - 1
app/service/schtime.js

@@ -16,7 +16,7 @@ class SchtimeService extends CrudService {
   async updateschtimes(data) {
     assert(data, '缺少信息项');
     for (const elm of data) {
-      const schtime = await this.model.findById();
+      const schtime = await this.model.findById(elm.id);
       if (schtime) {
         schtime.schid = elm.schid;
         schtime.year = elm.year;