|
@@ -2178,10 +2178,20 @@ public class OrderServiceImpl implements OrderService {
|
|
queryGoodsVo.setSellVolume((Integer) map.get("sellVolume"));
|
|
queryGoodsVo.setSellVolume((Integer) map.get("sellVolume"));
|
|
queryGoodsVo.setRetailPrice(new BigDecimal(String.valueOf(map.get("retailPrice"))));
|
|
queryGoodsVo.setRetailPrice(new BigDecimal(String.valueOf(map.get("retailPrice"))));
|
|
queryGoodsVo.setGoodsTaxes(new BigDecimal(String.valueOf(map.get("goodstaxes"))));
|
|
queryGoodsVo.setGoodsTaxes(new BigDecimal(String.valueOf(map.get("goodstaxes"))));
|
|
- queryGoodsVo.setDisCountedPrice(new BigDecimal(String.valueOf(map.get("discountedPrice"))));
|
|
|
|
|
|
+ Object discountedPriceObj = map.get("discountedPrice");
|
|
|
|
+ BigDecimal discountedPrice = BigDecimal.ZERO;
|
|
|
|
+ if (Objects.nonNull(discountedPriceObj)) {
|
|
|
|
+ discountedPrice = new BigDecimal(String.valueOf(discountedPriceObj));
|
|
|
|
+ }
|
|
|
|
+ queryGoodsVo.setDisCountedPrice(discountedPrice);
|
|
queryGoodsVo.setTotalPrice(new BigDecimal(String.valueOf(map.get("actualPaymentAmount"))));
|
|
queryGoodsVo.setTotalPrice(new BigDecimal(String.valueOf(map.get("actualPaymentAmount"))));
|
|
queryGoodsVo.setActivity((String) map.get("activity"));
|
|
queryGoodsVo.setActivity((String) map.get("activity"));
|
|
- queryGoodsVo.setDeductionScore((Integer) map.get("deductionScore"));
|
|
|
|
|
|
+ Object deductionScoreObj = map.get("deductionScore");
|
|
|
|
+ Integer deductionScore = 0;
|
|
|
|
+ if (Objects.nonNull(deductionScoreObj)) {
|
|
|
|
+ deductionScore = (Integer) deductionScoreObj;
|
|
|
|
+ }
|
|
|
|
+ queryGoodsVo.setDeductionScore(deductionScore);
|
|
Object deductionPriceObj = map.get("deductionPrice");
|
|
Object deductionPriceObj = map.get("deductionPrice");
|
|
BigDecimal deductionPrice = BigDecimal.ZERO;
|
|
BigDecimal deductionPrice = BigDecimal.ZERO;
|
|
if (Objects.nonNull(deductionPriceObj)) {
|
|
if (Objects.nonNull(deductionPriceObj)) {
|