1.代客下单 购物车返回结构修改,添加购物车不设置placeNum
This commit is contained in:
@@ -424,7 +424,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
tbCashierCart.setSalePrice(productSku.getSalePrice());
|
tbCashierCart.setSalePrice(productSku.getSalePrice());
|
||||||
tbCashierCart.setTotalAmount(new BigDecimal(addCartDTO.getNum()).multiply(productSku.getSalePrice()));
|
tbCashierCart.setTotalAmount(new BigDecimal(addCartDTO.getNum()).multiply(productSku.getSalePrice()));
|
||||||
tbCashierCart.setSkuName(productSku.getSpecSnap());
|
tbCashierCart.setSkuName(productSku.getSpecSnap());
|
||||||
tbCashierCart.setPlaceNum(currentPlaceNum);
|
|
||||||
if (!addCartDTO.isPack()) {
|
if (!addCartDTO.isPack()) {
|
||||||
tbCashierCart.setPackFee(BigDecimal.ZERO);
|
tbCashierCart.setPackFee(BigDecimal.ZERO);
|
||||||
} else {
|
} else {
|
||||||
@@ -658,6 +657,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
Map<String, Object> map = BeanUtil.beanToMap(item, false, false);
|
Map<String, Object> map = BeanUtil.beanToMap(item, false, false);
|
||||||
TbProductSku tbProductSku = skuMap.get(item.getSkuId());
|
TbProductSku tbProductSku = skuMap.get(item.getSkuId());
|
||||||
map.put("specSnap", tbProductSku != null ? tbProductSku.getSpecSnap() : null);
|
map.put("specSnap", tbProductSku != null ? tbProductSku.getSpecSnap() : null);
|
||||||
|
map.put("placeNum", item.getPlaceNum() == null ? 0 : item.getPlaceNum());
|
||||||
infos.add(map);
|
infos.add(map);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1149,6 +1149,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
cashierCart.setOrderId(orderId);
|
cashierCart.setOrderId(orderId);
|
||||||
cashierCart.setUpdatedAt(System.currentTimeMillis());
|
cashierCart.setUpdatedAt(System.currentTimeMillis());
|
||||||
cashierCart.setStatus("pending".equals(orderInfo.getStatus()) ? "refund" : cashierCart.getStatus());
|
cashierCart.setStatus("pending".equals(orderInfo.getStatus()) ? "refund" : cashierCart.getStatus());
|
||||||
|
cashierCart.setPlaceNum(placeNum);
|
||||||
cashierCartMapper.updateById(cashierCart);
|
cashierCartMapper.updateById(cashierCart);
|
||||||
}
|
}
|
||||||
if (isFirst) {
|
if (isFirst) {
|
||||||
|
|||||||
Reference in New Issue
Block a user