fix(calculate): 修复创建报表时的状态错误

This commit is contained in:
2023-08-09 16:24:16 +08:00
parent ed10996a06
commit 7f46f2f36b
3 changed files with 10 additions and 9 deletions

View File

@@ -43,9 +43,9 @@ func (cr _CalculateRepository) UpdateReportCalculateStatus(rid string, status st
log.Println("11111111111", status)
currentTime := time.Now()
if status == "success" {
atio = 0
atio = 1 //创建报表成功
} else {
atio = 1
atio = 2 // 数据不足
}
updateResultSql, updateResultArgs, _ := cr.ds.