guhongwei 3 years ago
parent
commit
ff4f2363b3
5 changed files with 5 additions and 5 deletions
  1. 1 1
      app/model/analysis.js
  2. 1 1
      app/model/apply.js
  3. 1 1
      app/model/assessment.js
  4. 1 1
      app/model/safe.js
  5. 1 1
      app/model/trans.js

+ 1 - 1
app/model/analysis.js

@@ -14,7 +14,7 @@ const analysis = {
   email: { type: String, required: false }, // 电子邮箱
   questions: { type: Object, required: false }, // 其他内容合集
   file: { type: Array, required: false }, // 报告文件
-  status: { type: String, required: false }, // 状态:0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
+  status: { type: String, required: false, default: '0' }, // 状态:0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
 };
 const schema = new Schema(analysis, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });

+ 1 - 1
app/model/apply.js

@@ -17,7 +17,7 @@ const apply = {
   check_url: { type: Array, required: false }, // 审查文件
   apply_url: { type: Array, required: false }, // 申请文件
   questions: { type: Object, required: false }, // 其他内容合集
-  status: { type: String, required: false }, // 状态
+  status: { type: String, required: false, default: '0' }, // 状态
 };
 const schema = new Schema(apply, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });

+ 1 - 1
app/model/assessment.js

@@ -21,7 +21,7 @@ const assessment = {
   techol_stable: { type: String, required: false }, // 技术稳定性
   techol_advanced: { type: String, required: false }, // 技术先进性
   is_money: { type: String, required: false }, // 是否缴费
-  status: { type: String, required: false }, // 状态,0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
+  status: { type: String, required: false, default: '0' }, // 状态,0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
   file: { type: Array, required: false }, // 报告文件
 };
 const schema = new Schema(assessment, { toJSON: { virtuals: true } });

+ 1 - 1
app/model/safe.js

@@ -18,7 +18,7 @@ const safe = {
   appeal: { type: String, required: false }, // 诉求
   fact: { type: String, required: false }, // 侵权事实
   questions: { type: Object, required: false }, // 其他内容合集
-  status: { type: String, required: false }, // 状态,0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
+  status: { type: String, required: false, default: '0' }, // 状态,0:待审中,1:审核通过,待发报告文件,-1:审核未通过,2:文件已发,请及时下载
   file: { type: Array, required: false }, // 报告文件
 };
 const schema = new Schema(safe, { toJSON: { virtuals: true } });

+ 1 - 1
app/model/trans.js

@@ -28,7 +28,7 @@ const trans = {
   contract_type: { type: String, required: false }, // 合同类型
   contract: { type: Object, required: false }, // 线上合同内容
   contract_file: { type: Array, required: false }, // 线下合同文件
-  status: { type: String, required: false }, // 0:待审中,1:审核通过,-1:审核未通过,2:合同审核中,3:交易合同审核通过,待用户确认,-3:交易合同审核拒绝,4:用户确定,5:交易完成
+  status: { type: String, required: false, default: '0' }, // 0:待审中,1:审核通过,-1:审核未通过,2:合同审核中,3:交易合同审核通过,待用户确认,-3:交易合同审核拒绝,4:用户确定,5:交易完成
 };
 const schema = new Schema(trans, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });