feat: 临时菜实现
This commit is contained in:
@@ -202,7 +202,7 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
|
|||||||
TbOrderDetail seatInfo = null;
|
TbOrderDetail seatInfo = null;
|
||||||
ArrayList<TbFullOrderDetail> detailList = new ArrayList<>();
|
ArrayList<TbFullOrderDetail> detailList = new ArrayList<>();
|
||||||
for (TbFullOrderDetail detail : details) {
|
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;
|
seatInfo = detail;
|
||||||
} else {
|
} else {
|
||||||
detailList.add(detail);
|
detailList.add(detail);
|
||||||
|
|||||||
Reference in New Issue
Block a user