修改订单创建
This commit is contained in:
@@ -641,6 +641,15 @@ public class CartService {
|
|||||||
cashierIds.add(cashierCart.getId());
|
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);
|
TbShopUser tbShopUser = shopUserMapper.selectByUserIdAndShopId(userId, shopId);
|
||||||
boolean isVip= tbShopUser != null && tbShopUser.getIsVip().equals((byte) 1);
|
boolean isVip= tbShopUser != null && tbShopUser.getIsVip().equals((byte) 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user