|
@@ -1285,13 +1285,19 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
FsStoreProductAttrValue fsStoreProductAttrValues
|
|
|
= fsStoreProductAttrValueService.selectFsStoreProductAttrValueById(id);
|
|
|
sum = sum.add(fsStoreProductAttrValues.getWeight());
|
|
|
+ sum = sum.multiply(BigDecimal.valueOf(count));
|
|
|
// 按体积
|
|
|
} else if(ObjectUtil.equal(ShippingTempEnum.TYPE_3.getValue(),type)){
|
|
|
FsStoreProductAttrValue fsStoreProductAttrValues
|
|
|
= fsStoreProductAttrValueService.selectFsStoreProductAttrValueById(id);
|
|
|
sum = sum.add(fsStoreProductAttrValues.getVolume());
|
|
|
+ sum = sum.multiply(BigDecimal.valueOf(count));
|
|
|
}
|
|
|
}
|
|
|
+ // 不满1kg按1kg计算
|
|
|
+ if(sum.compareTo(BigDecimal.ONE) < 0){
|
|
|
+ sum = BigDecimal.ONE;
|
|
|
+ }
|
|
|
return sum;
|
|
|
}
|
|
|
|