就餐模式获取修改

This commit is contained in:
2024-09-29 14:25:18 +08:00
parent ce4b2b4401
commit 4ea6a7c91b

View File

@@ -823,7 +823,7 @@ public class CartService {
return;
}
if (cashierIds.isEmpty() || cashierIds.size() == 1) {
if (cashierIds.isEmpty() || (cashierIds.size() == 1 && !shopEatTypeInfoDTO.isTakeout())) {
responseData.put("status", "fail");
responseData.put("msg", "购物车为空");
responseData.put("data", new ArrayList<>());