Browse Source

哈哈哈

liuyu 4 years ago
parent
commit
43a0330b23
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/service/school.js

+ 4 - 4
app/service/school.js

@@ -57,13 +57,13 @@ class SchoolService extends CrudService {
     }
     const nowtime = moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss');
     if (studatas.length > num_) {
-      const jobdata = { code: schid, name: schname, planid: plan.id, termid, term: trem_.term, filepath, studs: JSON.stringify(studatas), plannum: num_, schnum: studatas.length, isstore: '0', createtime: nowtime, type, reason: '学校上传人数超过预期人数' };
+      const jobdata = { code: schid, name: schname, planid: plan.id, termid, term: trem_.term, filepath, studs: JSON.stringify(studatas), plannum: num_, schnum: studatas.length, isstore: '0', createtime: nowtime, type, reason: '学校上传人数超过预期人数,请联系中心管理员' };
       await this.jmodel.create(jobdata);
-      throw new BusinessError(ErrorCode.SERVICE_FAULT, '学校上传人数超过预期人数');
+      throw new BusinessError(ErrorCode.SERVICE_FAULT, '学校上传人数超过预期人数,请联系中心管理员');
     } else if (studatas.length < num_) {
-      const jobdata = { code: schid, name: schname, planid: plan.id, termid, term: trem_.term, filepath, studs: JSON.stringify(studatas), plannum: num_, schnum: studatas.length, isstore: '0', createtime: nowtime, type, reason: '学校上传人数少于预期人数' };
+      const jobdata = { code: schid, name: schname, planid: plan.id, termid, term: trem_.term, filepath, studs: JSON.stringify(studatas), plannum: num_, schnum: studatas.length, isstore: '0', createtime: nowtime, type, reason: '学校上传人数少于预期人数,请联系中心管理员' };
       await this.jmodel.create(jobdata);
-      throw new BusinessError(ErrorCode.SERVICE_FAULT, '学校上传人数少于预期人数');
+      throw new BusinessError(ErrorCode.SERVICE_FAULT, '学校上传人数少于预期人数,请联系中心管理员');
     }
     // 将数据存入数据库中
     for (const stu of studatas) {