liuyu 4 年之前
父節點
當前提交
542cfbd08d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/job.js

+ 1 - 1
app/service/job.js

@@ -22,7 +22,7 @@ class JobService extends CrudService {
     job.isstore = data.isstore;
     job.isstore = data.isstore;
     const res = await job.save();
     const res = await job.save();
     if (res && data.isstore === '1') {
     if (res && data.isstore === '1') {
-      const studatas = job.studs;
+      const studatas = JSON.parse(job.studs);
       for (const stu of studatas) {
       for (const stu of studatas) {
         await this.smodel.create(stu);
         await this.smodel.create(stu);
       }
       }