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