...
|
...
|
@@ -68,6 +68,10 @@ public class OrderPushServiceImpl implements IOrderPushService{ |
|
|
param.put("proSortName", good.getSortName());
|
|
|
//商品分类id
|
|
|
param.put("proSortId",good.getSortId());
|
|
|
//商品分摊之后的价格
|
|
|
param.put("proLastPrice",good.getRealPayFee());
|
|
|
//商品的折扣,优惠
|
|
|
param.put("proDiscountFee",good.getDiscountFee());
|
|
|
//商品最终支付金额
|
|
|
proRealPay = good.getRealPayFee().setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
} else {
|
...
|
...
|
@@ -77,6 +81,9 @@ public class OrderPushServiceImpl implements IOrderPushService{ |
|
|
StringBuffer names = new StringBuffer();
|
|
|
StringBuffer cats = new StringBuffer();
|
|
|
StringBuffer sortIds = new StringBuffer();
|
|
|
StringBuffer discountFee = new StringBuffer();
|
|
|
//商品的实际金额,分摊之后的,例如用户满减了,这个金额就是分摊之后的
|
|
|
StringBuffer lastPrice = new StringBuffer();
|
|
|
for (int i = 0; i < goods.size(); i++) {
|
|
|
skns.append(goods.get(i).getProductSkn() + "|");
|
|
|
prices.append(goods.get(i).getLastPrice().setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() + "|");
|
...
|
...
|
@@ -84,15 +91,18 @@ public class OrderPushServiceImpl implements IOrderPushService{ |
|
|
names.append(goods.get(i).getProductName() + "|");
|
|
|
cats.append(goods.get(i).getSortName() + "|");
|
|
|
sortIds.append(goods.get(i).getSortId()+"|");
|
|
|
lastPrice.append(goods.get(i).getRealPayFee()+"|");
|
|
|
discountFee.append(goods.get(i).getDiscountFee()+"|");
|
|
|
proRealPay = proRealPay.add(goods.get(i).getRealPayFee());
|
|
|
|
|
|
}
|
|
|
param.put("proNo", skns.substring(0, skns.length() - 1));
|
|
|
param.put("proPrice", prices.substring(0, prices.length() - 1));
|
|
|
param.put("proNum", nums.substring(0, nums.length() - 1));
|
|
|
param.put("proName", names.substring(0, names.length() - 1));
|
|
|
param.put("proSortName", cats.substring(0, cats.length() - 1));
|
|
|
param.put("proSortId", sortIds.substring(0, cats.length() - 1));
|
|
|
param.put("proSortId", sortIds.substring(0, sortIds.length() - 1));
|
|
|
param.put("proLastPrice",lastPrice.substring(0, lastPrice.length() - 1));
|
|
|
param.put("proDiscountFee",discountFee.substring(0,discountFee.length()-1));
|
|
|
}
|
|
|
param.put("proRealPay",proRealPay.doubleValue());
|
|
|
//渠道id
|
...
|
...
|
@@ -125,3 +135,4 @@ public class OrderPushServiceImpl implements IOrderPushService{ |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|