|
@@ -220,23 +220,23 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder |
|
|
_ = session.Rollback() |
|
|
_ = session.Rollback() |
|
|
return err5 |
|
|
return err5 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
updateAck1, err4 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") |
|
|
|
|
|
if err4 != nil { |
|
|
|
|
|
_ = session.Rollback() |
|
|
|
|
|
return err4 |
|
|
|
|
|
} |
|
|
|
|
|
if updateAck1 <= 0 { |
|
|
|
|
|
_ = session.Rollback() |
|
|
|
|
|
err = errors.New("更新退款就餐记录状态失败2") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//else { |
|
|
//else { |
|
|
// returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditReject |
|
|
// returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditReject |
|
|
// userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForWait |
|
|
// userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForWait |
|
|
//} |
|
|
//} |
|
|
|
|
|
|
|
|
//updateAck1, err4 := centralKitchenForSchoolUserWithDayDb.CentralKitchenForSchoolUserWithDayUpdate(userWithDay.Id, userWithDay, "state") |
|
|
|
|
|
//if err4 != nil { |
|
|
|
|
|
// _ = session.Rollback() |
|
|
|
|
|
// return err4 |
|
|
|
|
|
//} |
|
|
|
|
|
//if updateAck1 <= 0 { |
|
|
|
|
|
// _ = session.Rollback() |
|
|
|
|
|
// err = errors.New("更新退款就餐记录状态失败2") |
|
|
|
|
|
// return |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//调用支付宝进行退款 |
|
|
//调用支付宝进行退款 |
|
|