lanjianrong 4 年之前
父节点
当前提交
85c6f0cc14
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      services/safe_audit.service.go

+ 5 - 1
services/safe_audit.service.go

@@ -152,7 +152,11 @@ func (s *safeAuditService) StartAudit(safeId int, bidsectionId int, times int, a
 		auditVM.AuditOrder = i + 1
 		auditVM.CreateTime = time.Now()
 		auditVM.Progress = 0
-		auditVM.Status = 0
+		if i == 0 {
+			auditVM.Status = 1
+		} else {
+			auditVM.Status = 0
+		}
 		auditVM.Times = times
 		data = append(data, auditVM)
 	}