添加是否已经选择人数字段

This commit is contained in:
2024-09-26 09:31:10 +08:00
parent 4fe01911d0
commit 890bb0dd19
2 changed files with 5 additions and 0 deletions

View File

@@ -46,5 +46,9 @@ public class TbShopTable implements Serializable {
@TableField(exist = false)
private Integer orderId;
@TableField(exist = false)
private boolean isChoseCount;
}

View File

@@ -138,6 +138,7 @@ public class ProductService {
ShopEatTypeInfoDTO shopEatTypeInfoDTO = shopUtils.checkEatModel(code, shopInfo.getId());
TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId());
tbShopTable.setOrderId(order == null ? null : order.getId());
tbShopTable.setChoseCount(order != null && (order.getSeatCount() != null));
concurrentMap.put("shopTableInfo", tbShopTable);
concurrentMap.put("storeInfo", shopInfo);
concurrentMap.put("distance", distance);