0元支付 支付成功

This commit is contained in:
2025-10-21 11:22:38 +08:00
parent b024f2b627
commit 2154ebae15
2 changed files with 5 additions and 2 deletions

View File

@@ -218,9 +218,12 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
@Override
public HistoryOrderVo historyOrder(Long orderId, String tableCode) {
if (orderId == null && StrUtil.isBlank(tableCode)) {
if (orderId == null || StrUtil.isBlank(tableCode)) {
throw new ValidateException("订单id或台桌码不可为空");
}
if("null".equals(tableCode) || "undefined".equals(tableCode)){
throw new ValidateException("台桌码不可用");
}
HistoryOrderVo historyOrderVo;
if (orderId == null) {
historyOrderVo = queryChain()