台桌不返回订单id fix
This commit is contained in:
parent
325e982645
commit
8f41aa713c
|
|
@ -195,7 +195,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||||
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));
|
List<TbShopTable> tbShopTableList = tbShopTableRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root, criteria, criteriaBuilder));
|
||||||
ArrayList<Map<String, Object>> infoList = new ArrayList<>();
|
ArrayList<Map<String, Object>> infoList = new ArrayList<>();
|
||||||
for (TbShopTable date : tbShopTableList) {
|
for (TbShopTable date : tbShopTableList) {
|
||||||
String orderId = redisTemplate.opsForValue().get(RedisConstant.CURRENT_TABLE_ORDER + date.getShopId() + ":" + date.getQrcode());
|
|
||||||
if (StrUtil.isBlank(date.getQrcode())) {
|
if (StrUtil.isBlank(date.getQrcode())) {
|
||||||
date.setStatus("closed");
|
date.setStatus("closed");
|
||||||
} else if (tbCashierCartMapper.selectCount(new LambdaQueryWrapper<TbCashierCart>()
|
} else if (tbCashierCartMapper.selectCount(new LambdaQueryWrapper<TbCashierCart>()
|
||||||
|
|
@ -220,7 +219,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||||
itemMap.put("tableId", date.getQrcode());
|
itemMap.put("tableId", date.getQrcode());
|
||||||
}
|
}
|
||||||
|
|
||||||
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(criteria.getShopId(), criteria.getQrcode() != null ? String.valueOf(criteria.getQrcode()) : "");
|
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(criteria.getShopId(), date.getQrcode());
|
||||||
TbOrderInfo orderInfo = getCurrentOrder(shopEatTypeInfoDTO);
|
TbOrderInfo orderInfo = getCurrentOrder(shopEatTypeInfoDTO);
|
||||||
itemMap.put("orderId", orderInfo == null ? null : orderInfo.getId());
|
itemMap.put("orderId", orderInfo == null ? null : orderInfo.getId());
|
||||||
itemMap.put("useType", orderInfo == null ? null : orderInfo.getUseType());
|
itemMap.put("useType", orderInfo == null ? null : orderInfo.getUseType());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue