|
|
@@ -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 |
|
|
|