|
|
@@ -261,13 +261,6 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
//2、处理订单状态 |
|
|
|
err5 := svc.JudgePackageOrdOrdState(returnDay.OutTradeNo) |
|
|
|
if err5 != nil { |
|
|
|
_ = session.Rollback() |
|
|
|
return err5 |
|
|
|
} |
|
|
|
|
|
|
|
updateAck1, err4 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") |
|
|
|
if err4 != nil { |
|
|
|
_ = session.Rollback() |
|
|
@@ -335,5 +328,20 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch |
|
|
|
time.Sleep(20 * time.Millisecond) //TODO::避免频繁调用 |
|
|
|
} |
|
|
|
|
|
|
|
return session.Commit() |
|
|
|
session.Commit() |
|
|
|
|
|
|
|
//TODO:: 处理订单状态 |
|
|
|
for k, _ := range dealReturnOrdMap { |
|
|
|
err = svc.JudgePackageOrdOrdState(k) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
for k, _ := range dealReturnOrdMapForWx { |
|
|
|
err = svc.JudgePackageOrdOrdState(k) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
return |
|
|
|
} |