DengBiao před 1 rokem
rodič
revize
94265d55c2
2 změnil soubory, kde provedl 12 přidání a 10 odebrání
  1. +11
    -9
      app/admin/hdl/hdl_audit_center.go
  2. +1
    -1
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 11
- 9
app/admin/hdl/hdl_audit_center.go Zobrazit soubor

@@ -109,13 +109,15 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context) {
return
}

go func() {
err1 := svc2.CentralKitchenForSchoolOrderRefundAudit(req)
if err1 != nil {
logx.Error(err1)
println("<<<<CentralKitchenForSchoolOrderRefundAudit>>>>>Error:::", err1.Error())
}
}()
//go func() {
err1 := svc2.CentralKitchenForSchoolOrderRefundAudit(req)
if err1 != nil {
logx.Error(err1)
println("<<<<CentralKitchenForSchoolOrderRefundAudit>>>>>Error:::", err1.Error())
e.OutErr(c, err1.Code, err1.Error())
return
}
//}()

e.OutSuc(c, "success", nil)
return
@@ -211,7 +213,7 @@ func NursingHomeOrderRefundList(c *gin.Context) {
}

func NursingHomeOrderRefundAudit(c *gin.Context) {
var req md.CentralKitchenForSchoolOrderRefundAuditReq
var req md.NursingHomeOrderRefundAuditReq
err := c.ShouldBindJSON(&req)
if err != nil {
err = validate.HandleValidateErr(err)
@@ -219,7 +221,7 @@ func NursingHomeOrderRefundAudit(c *gin.Context) {
e.OutErr(c, err1.Code, err1.Error())
return
}
err = svc2.CentralKitchenForSchoolOrderRefundAudit(req)
err = svc2.NursingHomeOrderRefundAudit(req)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return


+ 1
- 1
app/admin/svc/order/svc_central_kitchen_for_school_order.go Zobrazit soubor

@@ -263,7 +263,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder
_ = session.Rollback()
return err6
}
time.Sleep(250 * time.Millisecond) //TODO::避免频繁调用
time.Sleep(50 * time.Millisecond) //TODO::避免频繁调用
}
return session.Commit()
}

Načítá se…
Zrušit
Uložit