Explorar el Código

update

add_mode
DengBiao hace 1 año
padre
commit
3d82531eee
Se han modificado 1 ficheros con 11 adiciones y 11 borrados
  1. +11
    -11
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 11
- 11
app/admin/svc/order/svc_central_kitchen_for_school_order.go Ver fichero

@@ -220,23 +220,23 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder
_ = session.Rollback()
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 {
// returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditReject
// 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
//}

}

//调用支付宝进行退款


Cargando…
Cancelar
Guardar