|
@@ -321,8 +321,11 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
}
|
|
|
//成本 = 订单成本+供应商数量结算成本+供应商时间结算成本
|
|
|
BigDecimal cost = getInstTimeSettleCost(item);
|
|
|
- BigDecimal add = item.getOrderCost().add(cost).add(item.getInstCost());
|
|
|
- item.setOrderCost(add);
|
|
|
+ if (ObjectUtils.isNotNull(cost)){
|
|
|
+ BigDecimal instCost = ObjectUtils.isNotNull(item.getInstCost())?item.getInstCost():BigDecimal.ZERO;
|
|
|
+ BigDecimal add = item.getOrderCost().add(cost).add(instCost);
|
|
|
+ item.setOrderCost(add);
|
|
|
+ }
|
|
|
//退款审核角色
|
|
|
if (Arrays.asList(0, 2).contains(item.getRefundStatus())) {
|
|
|
String refundSn = "";
|