桌码校验
This commit is contained in:
parent
d9ee6b21ec
commit
0f07ebf8e4
|
|
@ -218,10 +218,10 @@ 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)){
|
||||
if (orderId == null && ("null".equals(tableCode) || "undefined".equals(tableCode))) {
|
||||
throw new ValidateException("台桌码不可用");
|
||||
}
|
||||
HistoryOrderVo historyOrderVo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue