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;