1.代客下单 桌号获取

This commit is contained in:
2024-08-19 14:12:07 +08:00
parent c51e0ec580
commit a74612f5a6

View File

@@ -648,7 +648,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
}
redisTemplate.opsForValue().set("SHOP:CODE:" + clientType + ":" + shopId + ":" + day, String.valueOf(Integer.parseInt(orderCode) + 1));
boolean flag = Boolean.TRUE.equals(redisTemplate.opsForValue().setIfAbsent("SHOP:CODE:SET" + clientType + ":" + shopId + ":" + day, orderCode));
if (!flag) {
if (flag) {
return generateOrderCode(day, clientType, shopId);
}
// 增加计数器