fix: 修改zap记录日志错误的问题
This commit is contained in:
parent
235bea33ff
commit
a6a9b9197c
@ -1582,14 +1582,14 @@ func UpdateTaskProgress(req *dto.CompleteTaskRequest) error {
|
|||||||
if newCompleteCount > assignRecord.AssignVideoScriptCount {
|
if newCompleteCount > assignRecord.AssignVideoScriptCount {
|
||||||
// 暂时都只记录错误,不报错;并且不更新
|
// 暂时都只记录错误,不报错;并且不更新
|
||||||
if req.AssignRecordsUUID != "false" {
|
if req.AssignRecordsUUID != "false" {
|
||||||
app.ModuleClients.Lg.Info("数据完成数量超出限制,跳过更新",
|
app.ModuleClients.Lg.Info("脚本完成数量超出限制,跳过更新",
|
||||||
zap.String("assignRecordsUUID", assignRecord.AssignRecordsUUID),
|
zap.String("assignRecordsUUID", assignRecord.AssignRecordsUUID),
|
||||||
zap.String("employeeName", req.EmployeeName),
|
zap.String("employeeName", req.EmployeeName),
|
||||||
zap.String("employeeNum", req.EmployeeNum),
|
zap.String("employeeNum", req.EmployeeNum),
|
||||||
zap.Int("currentCompleteCount", assignRecord.CompleteDataCount),
|
zap.Int("currentCompleteCount", assignRecord.CompleteVideoScriptCount),
|
||||||
zap.Int("requestCompleteCount", req.CompleteCount),
|
zap.Int("requestCompleteCount", req.CompleteCount),
|
||||||
zap.Int("newCompleteCount", newCompleteCount),
|
zap.Int("newCompleteCount", newCompleteCount),
|
||||||
zap.Int("assignDataCount", assignRecord.AssignDataCount),
|
zap.Int("assignVideoScriptCount", assignRecord.AssignVideoScriptCount),
|
||||||
)
|
)
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return nil
|
return nil
|
||||||
@ -1602,11 +1602,11 @@ func UpdateTaskProgress(req *dto.CompleteTaskRequest) error {
|
|||||||
if newPending < 0 {
|
if newPending < 0 {
|
||||||
// 暂时都只记录错误,不报错;并且不更新
|
// 暂时都只记录错误,不报错;并且不更新
|
||||||
if req.AssignRecordsUUID != "false" {
|
if req.AssignRecordsUUID != "false" {
|
||||||
app.ModuleClients.Lg.Info("待发数据数不足,跳过更新",
|
app.ModuleClients.Lg.Info("待发脚本数不足,跳过更新",
|
||||||
zap.String("assignRecordsUUID", assignRecord.AssignRecordsUUID),
|
zap.String("assignRecordsUUID", assignRecord.AssignRecordsUUID),
|
||||||
zap.String("employeeName", req.EmployeeName),
|
zap.String("employeeName", req.EmployeeName),
|
||||||
zap.String("employeeNum", req.EmployeeNum),
|
zap.String("employeeNum", req.EmployeeNum),
|
||||||
zap.Int("currentPendingCount", assignRecord.PendingDataCount),
|
zap.Int("currentPendingCount", assignRecord.PendingVideoScriptCount),
|
||||||
zap.Int("requestCompleteCount", req.CompleteCount),
|
zap.Int("requestCompleteCount", req.CompleteCount),
|
||||||
zap.Int("newPendingCount", newPending),
|
zap.Int("newPendingCount", newPending),
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user