|
@@ -21,10 +21,14 @@ class JobService extends CrudService {
|
|
|
}
|
|
|
job.isstore = data.isstore;
|
|
|
const res = await job.save();
|
|
|
- if (res && data.isstore === '1') {
|
|
|
- const studatas = JSON.parse(job.studs);
|
|
|
- for (const stu of studatas) {
|
|
|
- await this.smodel.create(stu);
|
|
|
+ if (res) {
|
|
|
+ console.log(11111111);
|
|
|
+ if (data.isstore === '1') {
|
|
|
+ console.log('&&&&&&&&&&&&');
|
|
|
+ const studatas = JSON.parse(job.studs);
|
|
|
+ for (const stu of studatas) {
|
|
|
+ await this.smodel.create(stu);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return res;
|