修改订单创建

This commit is contained in:
2024-09-25 17:50:33 +08:00
parent d9803939c2
commit c9096d6dfa

View File

@@ -641,6 +641,15 @@ public class CartService {
cashierIds.add(cashierCart.getId());
});
if (cashierIds.isEmpty()) {
JSONObject jsonObject1 = new JSONObject();
jsonObject1.put("status", "fail");
jsonObject1.put("msg", "购物车为空");
jsonObject1.put("data", new ArrayList<>());
PushToAppChannelHandlerAdapter.getInstance().AppSendInfo(jsonObject1.toString(), tableCartKey, jsonObject.getString("userId"), true);
return;
}
TbShopUser tbShopUser = shopUserMapper.selectByUserIdAndShopId(userId, shopId);
boolean isVip= tbShopUser != null && tbShopUser.getIsVip().equals((byte) 1);