liuyu %!s(int64=5) %!d(string=hai) anos
pai
achega
9fde67447a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;