|
|
@@ -118,6 +118,7 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR |
|
|
|
Join("LEFT", "class_with_user", "user_identity.id = class_with_user.user_identity_id"). |
|
|
|
Join("LEFT", "class", "class_with_user.class_id = class.id"). |
|
|
|
Join("LEFT", "grade", "class.grade_id = grade.id"). |
|
|
|
Desc("central_kitchen_for_school_user_refund_day.id"). |
|
|
|
Limit(req.Limit, (req.Page-1)*req.Limit).FindAndCount(&m) |
|
|
|
if err != nil { |
|
|
|
return nil, 0, err |
|
|
@@ -182,7 +183,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder |
|
|
|
if req.State == 1 { |
|
|
|
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditPass |
|
|
|
userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForCancel |
|
|
|
time.Sleep(1 * time.Second) //TODO::避免频繁调用 |
|
|
|
time.Sleep(250 * time.Millisecond) //TODO::避免频繁调用 |
|
|
|
//调用支付宝进行退款 |
|
|
|
err6, _ := svc2.CurlAlipayTradeRefund(md2.CurlAlipayTradeRefundReq{ |
|
|
|
Config: struct { |
|
|
|