Kaynağa Gözat

update

add_mode
DengBiao 1 yıl önce
ebeveyn
işleme
94265d55c2
2 değiştirilmiş dosya ile 12 ekleme ve 10 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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()
}

Yükleniyor…
İptal
Kaydet