|
@@ -3908,6 +3908,7 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
String cartIds = redisCache.getCacheObject("orderKey:" + param.getOrderKey());
|
|
String cartIds = redisCache.getCacheObject("orderKey:" + param.getOrderKey());
|
|
|
Integer totalNum = 0;
|
|
Integer totalNum = 0;
|
|
|
BigDecimal integral = BigDecimal.ZERO;
|
|
BigDecimal integral = BigDecimal.ZERO;
|
|
|
|
|
+ String storeId = null;
|
|
|
if (cartIds != null) {
|
|
if (cartIds != null) {
|
|
|
//获取购物车列表
|
|
//获取购物车列表
|
|
|
List<FsStoreCartScrmQueryVO> carts = redisCache.getCacheObject("orderCarts:" + param.getOrderKey());
|
|
List<FsStoreCartScrmQueryVO> carts = redisCache.getCacheObject("orderCarts:" + param.getOrderKey());
|
|
@@ -3925,6 +3926,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if (cart.getCateId() != null && cart.getCateId().equals(176L)) {
|
|
if (cart.getCateId() != null && cart.getCateId().equals(176L)) {
|
|
|
meiruCount++;
|
|
meiruCount++;
|
|
|
}
|
|
}
|
|
|
|
|
+ if(StringUtils.isNotEmpty(cart.getStoreId())){
|
|
|
|
|
+ storeId=cart.getStoreId();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
//生成分布式唯一值
|
|
//生成分布式唯一值
|
|
|
String orderSn = IdUtil.getSnowflake(0, 0).nextIdStr();
|
|
String orderSn = IdUtil.getSnowflake(0, 0).nextIdStr();
|
|
@@ -3958,8 +3962,8 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
storeOrder.setTotalPrice(dto.getTotalPrice());
|
|
storeOrder.setTotalPrice(dto.getTotalPrice());
|
|
|
storeOrder.setTotalPostage(dto.getPayPostage());
|
|
storeOrder.setTotalPostage(dto.getPayPostage());
|
|
|
|
|
|
|
|
- if (param.getStoreId() != null) {
|
|
|
|
|
- storeOrder.setStoreId(param.getStoreId());
|
|
|
|
|
|
|
+ if (storeId != null) {
|
|
|
|
|
+ storeOrder.setStoreId(Long.valueOf(storeId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//优惠券处理
|
|
//优惠券处理
|