|
@@ -49,19 +49,24 @@ public class ApiCartController extends ApiBaseAction {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ApiFreightService apiFreightService;
|
|
private ApiFreightService apiFreightService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ApiThirdMerchantBizService apiThirdMerchantBizService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ApiStoreService apiStoreService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取购物车中的数据
|
|
* 获取购物车中的数据
|
|
*/
|
|
*/
|
|
@GetMapping("getCartMoney")
|
|
@GetMapping("getCartMoney")
|
|
public Object getCartMoney(@LoginUser UserVo loginUser, String checkCart) {
|
|
public Object getCartMoney(@LoginUser UserVo loginUser, String checkCart) {
|
|
|
|
+ Long storeId = getStoreId();
|
|
Map<String, Object> resultObj = Maps.newHashMap();
|
|
Map<String, Object> resultObj = Maps.newHashMap();
|
|
//查询列表数据
|
|
//查询列表数据
|
|
Map param = Maps.newHashMap();
|
|
Map param = Maps.newHashMap();
|
|
param.put("user_id", loginUser.getId());
|
|
param.put("user_id", loginUser.getId());
|
|
- Long storeId = getStoreId();
|
|
|
|
param.put("store_id", storeId);
|
|
param.put("store_id", storeId);
|
|
param.put("checkCart",checkCart);
|
|
param.put("checkCart",checkCart);
|
|
|
|
+ param.putAll(setIsStockShare(storeId));
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
//获取购物车统计信息
|
|
//获取购物车统计信息
|
|
Integer goodsCount = 0;
|
|
Integer goodsCount = 0;
|
|
@@ -89,6 +94,19 @@ public class ApiCartController extends ApiBaseAction {
|
|
return resultObj;
|
|
return resultObj;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private Map setIsStockShare(Long storeId){
|
|
|
|
+ Map param = Maps.newHashMap();
|
|
|
|
+ StoreVo storeVo = apiStoreService.queryObject(storeId);
|
|
|
|
+ if(storeVo != null) {
|
|
|
|
+ ThirdMerchantBizVo thirdMerchantBiz = apiThirdMerchantBizService.getThirdMerchangByCode(storeVo.getThirdPartyMerchCode());
|
|
|
|
+ if (null == thirdMerchantBiz) {
|
|
|
|
+ return toResponsFail("第三方商户为空");
|
|
|
|
+ }
|
|
|
|
+ param.put("isStockShare", thirdMerchantBiz.getIsStockShare());
|
|
|
|
+ }
|
|
|
|
+ return param;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取购物车中的数据
|
|
* 获取购物车中的数据
|
|
*/
|
|
*/
|
|
@@ -104,6 +122,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
param.put("store_id", storeId);
|
|
param.put("store_id", storeId);
|
|
param.put("merchSn", getMerchSn());
|
|
param.put("merchSn", getMerchSn());
|
|
param.put("checkCart", checkCart);
|
|
param.put("checkCart", checkCart);
|
|
|
|
+ param.putAll(setIsStockShare(storeId));
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> validCartList = cartService.queryValidCartList(param);
|
|
List<CartVo> validCartList = cartService.queryValidCartList(param);
|
|
//获取购物车统计信息
|
|
//获取购物车统计信息
|
|
@@ -196,6 +215,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
param.put("user_id", loginUser.getId());
|
|
param.put("user_id", loginUser.getId());
|
|
Long storeId = getStoreId();
|
|
Long storeId = getStoreId();
|
|
param.put("store_id", storeId);
|
|
param.put("store_id", storeId);
|
|
|
|
+ param.putAll(setIsStockShare(storeId));
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
//获取购物车统计信息
|
|
//获取购物车统计信息
|
|
Integer goodsCount = 0;
|
|
Integer goodsCount = 0;
|
|
@@ -256,7 +276,26 @@ public class ApiCartController extends ApiBaseAction {
|
|
if (null == productInfo) {
|
|
if (null == productInfo) {
|
|
return toResponsFail("商品已下架");
|
|
return toResponsFail("商品已下架");
|
|
}
|
|
}
|
|
- if(productInfo.getStock_num() == null || number > productInfo.getStock_num() || productInfo.getStock_num() <= 0){
|
|
|
|
|
|
+ Integer stockNum = 0;
|
|
|
|
+ ThirdMerchantBizVo thirdMerchantBizVo = apiThirdMerchantBizService.getThirdMerchangByCode(goodsInfo.getThirdPartyMerchCode());
|
|
|
|
+ if(null == thirdMerchantBizVo){
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
|
|
+ //// TODO: 2019/3/5 普通商品不受共享库存影响,直接取门店配置库存
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_11.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_02.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_10.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_00.getItem())){
|
|
|
|
+ if (thirdMerchantBizVo.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_1.getItem())){
|
|
|
|
+ stockNum = goodsInfo.getGoods_number();
|
|
|
|
+ }
|
|
|
|
+ if (thirdMerchantBizVo.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_0.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(stockNum == null || number > stockNum || stockNum <= 0){
|
|
return toResponsFail("该商品库存不足");
|
|
return toResponsFail("该商品库存不足");
|
|
}
|
|
}
|
|
if (null == productInfo.getRetail_price()) {
|
|
if (null == productInfo.getRetail_price()) {
|
|
@@ -269,6 +308,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
cartParam.put("product_id", productId);
|
|
cartParam.put("product_id", productId);
|
|
cartParam.put("user_id", loginUser.getId());
|
|
cartParam.put("user_id", loginUser.getId());
|
|
cartParam.put("store_id", storeId);
|
|
cartParam.put("store_id", storeId);
|
|
|
|
+ cartParam.put("isStockShare", thirdMerchantBizVo.getIsStockShare());
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
CartVo cartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
CartVo cartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
if (null == cartInfo) {//添加规格名和值
|
|
if (null == cartInfo) {//添加规格名和值
|
|
@@ -288,17 +328,17 @@ public class ApiCartController extends ApiBaseAction {
|
|
cartInfo.setGoods_specification_ids(productInfo.getGoods_specification_ids());
|
|
cartInfo.setGoods_specification_ids(productInfo.getGoods_specification_ids());
|
|
cartInfo.setChecked(1);
|
|
cartInfo.setChecked(1);
|
|
cartInfo.setGoodsBizType(goodsInfo.getGoodsBizType());//业务类型
|
|
cartInfo.setGoodsBizType(goodsInfo.getGoodsBizType());//业务类型
|
|
- cartInfo.setStockNum(productInfo.getStock_num());
|
|
|
|
|
|
+ cartInfo.setStockNum(stockNum);
|
|
cartInfo.setMerchSn(goodsInfo.getMerchSn());
|
|
cartInfo.setMerchSn(goodsInfo.getMerchSn());
|
|
cartInfo.setSku(goodsInfo.getSku());
|
|
cartInfo.setSku(goodsInfo.getSku());
|
|
cartService.save(cartInfo);
|
|
cartService.save(cartInfo);
|
|
} else {
|
|
} else {
|
|
- if(number + cartInfo.getNumber() > productInfo.getStock_num()){
|
|
|
|
|
|
+ if(number + cartInfo.getNumber() > stockNum){
|
|
return toResponsFail("商品选购数量(含购物车已加购数量)已超过库存");
|
|
return toResponsFail("商品选购数量(含购物车已加购数量)已超过库存");
|
|
}
|
|
}
|
|
cartInfo.setNumber(cartInfo.getNumber() + number);
|
|
cartInfo.setNumber(cartInfo.getNumber() + number);
|
|
cartInfo.setGoodsBizType(goodsInfo.getGoodsBizType());//业务类型
|
|
cartInfo.setGoodsBizType(goodsInfo.getGoodsBizType());//业务类型
|
|
- cartInfo.setStockNum(productInfo.getStock_num());
|
|
|
|
|
|
+ cartInfo.setStockNum(stockNum);
|
|
cartInfo.setSku(goodsInfo.getSku());
|
|
cartInfo.setSku(goodsInfo.getSku());
|
|
cartService.update(cartInfo);
|
|
cartService.update(cartInfo);
|
|
}
|
|
}
|
|
@@ -336,20 +376,33 @@ public class ApiCartController extends ApiBaseAction {
|
|
Map params = Maps.newHashMap();
|
|
Map params = Maps.newHashMap();
|
|
params.put("order_id", orderId);
|
|
params.put("order_id", orderId);
|
|
List<OrderGoodsVo> orderGoodsVos = apiOrderGoodsService.queryList(params);
|
|
List<OrderGoodsVo> orderGoodsVos = apiOrderGoodsService.queryList(params);
|
|
|
|
+ Integer stockNum = 0;
|
|
|
|
+ Long storeId = getStoreId();
|
|
for (OrderGoodsVo goodsVo : orderGoodsVos) {
|
|
for (OrderGoodsVo goodsVo : orderGoodsVos) {
|
|
//判断商品是否可以购买
|
|
//判断商品是否可以购买
|
|
|
|
+ ProductVo productInfo = productService.queryByStoreId(goodsVo.getProduct_id(), storeId);
|
|
|
|
+ if (null == productInfo) {
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
GoodsVo goodsInfo = goodsService.queryObjectByStoreId(goodsVo.getGoods_id(), getStoreId());
|
|
GoodsVo goodsInfo = goodsService.queryObjectByStoreId(goodsVo.getGoods_id(), getStoreId());
|
|
if (null == goodsInfo || goodsInfo.getIs_delete() == 1 || goodsInfo.getIs_on_sale() == 0) {
|
|
if (null == goodsInfo || goodsInfo.getIs_delete() == 1 || goodsInfo.getIs_on_sale() == 0) {
|
|
return toResponsFail("商品已下架");
|
|
return toResponsFail("商品已下架");
|
|
}
|
|
}
|
|
- }
|
|
|
|
- Long storeId = getStoreId();
|
|
|
|
- for (OrderGoodsVo goodsVo : orderGoodsVos) {
|
|
|
|
- ProductVo productInfo = productService.queryByStoreId(goodsVo.getProduct_id(), storeId);
|
|
|
|
- if (null == productInfo) {
|
|
|
|
- return toResponsFail("商品已下架");
|
|
|
|
|
|
+ // TODO: 2019/3/5 普通商品不受共享库存影响,直接取门店配置库存
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_11.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_02.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_10.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_00.getItem())) {
|
|
|
|
+ if (goodsInfo.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_1.getItem())) {
|
|
|
|
+ stockNum = goodsInfo.getGoods_number();
|
|
|
|
+ }
|
|
|
|
+ if (goodsInfo.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_0.getItem())) {
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- if(productInfo.getStock_num() == null || goodsVo.getNumber() > productInfo.getStock_num() || productInfo.getStock_num() <= 0){
|
|
|
|
|
|
+ if(stockNum == null || goodsVo.getNumber() > stockNum || stockNum <= 0){
|
|
return toResponsFail("该商品库存不足");
|
|
return toResponsFail("该商品库存不足");
|
|
}
|
|
}
|
|
CartVo cartInfo = new CartVo();
|
|
CartVo cartInfo = new CartVo();
|
|
@@ -367,7 +420,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
cartInfo.setGoods_specification_ids(goodsVo.getGoods_specification_ids());
|
|
cartInfo.setGoods_specification_ids(goodsVo.getGoods_specification_ids());
|
|
cartInfo.setChecked(1);
|
|
cartInfo.setChecked(1);
|
|
cartInfo.setGoodsBizType(goodsVo.getOrderBizType());
|
|
cartInfo.setGoodsBizType(goodsVo.getOrderBizType());
|
|
- cartInfo.setStockNum(productInfo.getStock_num());
|
|
|
|
|
|
+ cartInfo.setStockNum(stockNum);
|
|
cartInfo.setMerchSn(goodsVo.getMerchSn());
|
|
cartInfo.setMerchSn(goodsVo.getMerchSn());
|
|
cartInfo.setSku(goodsVo.getSku());
|
|
cartInfo.setSku(goodsVo.getSku());
|
|
|
|
|
|
@@ -377,6 +430,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
map.put("goods_id",goodsVo.getGoods_id());
|
|
map.put("goods_id",goodsVo.getGoods_id());
|
|
map.put("product_id",goodsVo.getProduct_id());
|
|
map.put("product_id",goodsVo.getProduct_id());
|
|
map.put("number",goodsVo.getNumber());
|
|
map.put("number",goodsVo.getNumber());
|
|
|
|
+ map.put("isStockShare", goodsInfo.getIsStockShare());
|
|
List<CartVo> list= cartService.queryList(map);
|
|
List<CartVo> list= cartService.queryList(map);
|
|
if(list != null && list.size() > 0){
|
|
if(list != null && list.size() > 0){
|
|
for (CartVo vo:list) {
|
|
for (CartVo vo:list) {
|
|
@@ -401,6 +455,21 @@ public class ApiCartController extends ApiBaseAction {
|
|
Integer goodsId = jsonParam.getInteger("goodsId");
|
|
Integer goodsId = jsonParam.getInteger("goodsId");
|
|
Integer productId = jsonParam.getInteger("productId");
|
|
Integer productId = jsonParam.getInteger("productId");
|
|
Integer number = jsonParam.getInteger("number");
|
|
Integer number = jsonParam.getInteger("number");
|
|
|
|
+
|
|
|
|
+ GoodsVo goodsInfo = goodsService.queryObjectByStoreId(Long.valueOf(goodsId), getStoreId());
|
|
|
|
+ if (null == goodsInfo || goodsInfo.getIs_delete() == 1 || goodsInfo.getIs_on_sale() == 0) {
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
|
|
+ ThirdMerchantBizVo thirdMerchantBiz = apiThirdMerchantBizService.getThirdMerchangByCode(goodsInfo.getThirdPartyMerchCode());
|
|
|
|
+ if(null == thirdMerchantBiz){
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
|
|
+ /*if (thirdMerchantBiz.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_1.getItem())){
|
|
|
|
+ stockNum = goodsInfo.getGoods_number();
|
|
|
|
+ }
|
|
|
|
+ if (thirdMerchantBiz.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_0.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }*/
|
|
//判断购物车中是否存在此规格商品
|
|
//判断购物车中是否存在此规格商品
|
|
Map cartParam = Maps.newHashMap();
|
|
Map cartParam = Maps.newHashMap();
|
|
cartParam.put("goods_id", goodsId);
|
|
cartParam.put("goods_id", goodsId);
|
|
@@ -408,6 +477,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
Long storeId = getStoreId();
|
|
Long storeId = getStoreId();
|
|
cartParam.put("store_id", storeId);
|
|
cartParam.put("store_id", storeId);
|
|
cartParam.put("user_id", loginUser.getId());
|
|
cartParam.put("user_id", loginUser.getId());
|
|
|
|
+ cartParam.put("isStockShare", thirdMerchantBiz.getIsStockShare());
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
CartVo cartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
CartVo cartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
int cart_num = 0;
|
|
int cart_num = 0;
|
|
@@ -437,12 +507,35 @@ public class ApiCartController extends ApiBaseAction {
|
|
Integer id = jsonParam.getInteger("id");
|
|
Integer id = jsonParam.getInteger("id");
|
|
String checkCart = jsonParam.getString("checkCart");
|
|
String checkCart = jsonParam.getString("checkCart");
|
|
boolean isAdd = true;
|
|
boolean isAdd = true;
|
|
|
|
+ Integer stockNum = 0;
|
|
|
|
+ GoodsVo goodsInfo = goodsService.queryObjectByStoreId(Long.valueOf(goodsId), getStoreId());
|
|
|
|
+ if (null == goodsInfo || goodsInfo.getIs_delete() == 1 || goodsInfo.getIs_on_sale() == 0) {
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
//取得规格的信息,判断规格库存
|
|
//取得规格的信息,判断规格库存
|
|
ProductVo productInfo = productService.queryByStoreId(productId, storeId);
|
|
ProductVo productInfo = productService.queryByStoreId(productId, storeId);
|
|
if (null == productInfo) {
|
|
if (null == productInfo) {
|
|
return this.toResponsObject(400, "商品已下架", getCart(checkCart));
|
|
return this.toResponsObject(400, "商品已下架", getCart(checkCart));
|
|
}
|
|
}
|
|
- if(productInfo.getStock_num() == null || number > productInfo.getStock_num() || productInfo.getStock_num() <= 0){
|
|
|
|
|
|
+ ThirdMerchantBizVo thirdMerchantBiz = apiThirdMerchantBizService.getThirdMerchangByCode(goodsInfo.getThirdPartyMerchCode());
|
|
|
|
+ if(null == thirdMerchantBiz){
|
|
|
|
+ return toResponsFail("商品已下架");
|
|
|
|
+ }
|
|
|
|
+ // TODO: 2019/3/5 普通商品不受共享库存影响,直接取门店配置库存
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_11.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_02.getItem())
|
|
|
|
+ || goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_10.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();//门店库存
|
|
|
|
+ }
|
|
|
|
+ if(goodsInfo.getGoodsBizType().equalsIgnoreCase(Dict.orderBizType.item_00.getItem())){
|
|
|
|
+ if (thirdMerchantBiz.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_1.getItem())){
|
|
|
|
+ stockNum = goodsInfo.getGoods_number();
|
|
|
|
+ }
|
|
|
|
+ if (thirdMerchantBiz.getIsStockShare().equalsIgnoreCase(Dict.isStockShare.item_0.getItem())){
|
|
|
|
+ stockNum = productInfo.getStock_num();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(stockNum == null || number > stockNum || stockNum <= 0){
|
|
return this.toResponsObject(400, "该商品库存不足", getCart(checkCart));
|
|
return this.toResponsObject(400, "该商品库存不足", getCart(checkCart));
|
|
}
|
|
}
|
|
String msg = "";
|
|
String msg = "";
|
|
@@ -456,7 +549,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
//只是更新number
|
|
//只是更新number
|
|
if (cartInfo.getProduct_id().equals(productId)) {
|
|
if (cartInfo.getProduct_id().equals(productId)) {
|
|
cartInfo.setNumber(number);
|
|
cartInfo.setNumber(number);
|
|
- cartInfo.setStockNum(productInfo.getStock_num());
|
|
|
|
|
|
+ cartInfo.setStockNum(stockNum);
|
|
cartService.update(cartInfo);
|
|
cartService.update(cartInfo);
|
|
return toResponsObject(0, msg, getCart(checkCart));
|
|
return toResponsObject(0, msg, getCart(checkCart));
|
|
}
|
|
}
|
|
@@ -465,6 +558,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
cartParam.put("goodsId", goodsId);
|
|
cartParam.put("goodsId", goodsId);
|
|
cartParam.put("productId", productId);
|
|
cartParam.put("productId", productId);
|
|
cartParam.put("store_id", storeId);
|
|
cartParam.put("store_id", storeId);
|
|
|
|
+ cartParam.put("isStockShare", thirdMerchantBiz.getIsStockShare());
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
List<CartVo> cartInfoList = cartService.queryList(cartParam);
|
|
CartVo newcartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
CartVo newcartInfo = null != cartInfoList && cartInfoList.size() > 0 ? cartInfoList.get(0) : null;
|
|
if (null == newcartInfo) {
|
|
if (null == newcartInfo) {
|
|
@@ -544,6 +638,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
Map param = Maps.newHashMap();
|
|
Map param = Maps.newHashMap();
|
|
param.put("user_id", loginUser.getId());
|
|
param.put("user_id", loginUser.getId());
|
|
param.put("store_id", getStoreId());
|
|
param.put("store_id", getStoreId());
|
|
|
|
+ param.putAll(setIsStockShare(getStoreId()));
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
//获取购物车统计信息
|
|
//获取购物车统计信息
|
|
Integer goodsCount = 0;
|
|
Integer goodsCount = 0;
|
|
@@ -702,6 +797,7 @@ public class ApiCartController extends ApiBaseAction {
|
|
param.put("user_id", loginUser.getId());
|
|
param.put("user_id", loginUser.getId());
|
|
Long storeId = getStoreId();
|
|
Long storeId = getStoreId();
|
|
param.put("store_id", storeId);
|
|
param.put("store_id", storeId);
|
|
|
|
+ param.putAll(setIsStockShare(storeId));
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
List<CartVo> cartList = cartService.queryList(param);
|
|
//获取购物车统计信息
|
|
//获取购物车统计信息
|
|
BigDecimal checkedGoodsAmount = new BigDecimal(0.00);
|
|
BigDecimal checkedGoodsAmount = new BigDecimal(0.00);
|