feat: 临时菜实现

This commit is contained in:
张松 2024-11-19 10:08:19 +08:00
parent 9c9203d93d
commit 41e505e2f4
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
TbOrderDetail seatInfo = null;
ArrayList<TbFullOrderDetail> detailList = new ArrayList<>();
for (TbFullOrderDetail detail : details) {
if (TableConstant.CART_SEAT_ID.equals(detail.getProductId().toString())) {
if (detail.getProductId() != null && TableConstant.CART_SEAT_ID.equals(detail.getProductId().toString())) {
seatInfo = detail;
} else {
detailList.add(detail);