|
@@ -108,12 +108,12 @@ public class TradeBillsService { |
|
@@ -108,12 +108,12 @@ public class TradeBillsService { |
108
|
try {
|
108
|
try {
|
109
|
JSONObject metavalue = JSON.parseObject(meta.getMetaValue());
|
109
|
JSONObject metavalue = JSON.parseObject(meta.getMetaValue());
|
110
|
BigDecimal rate = metavalue.getJSONObject("serviceFeeRate").getBigDecimal("payChannelRate");
|
110
|
BigDecimal rate = metavalue.getJSONObject("serviceFeeRate").getBigDecimal("payChannelRate");
|
111
|
- amount = amount.multiply(BigDecimal.ONE.subtract(rate)).multiply(new BigDecimal("-1")).setScale(2, BigDecimal.ROUND_HALF_UP);
|
111
|
+ BigDecimal samount = amount.multiply(BigDecimal.ONE.subtract(rate)).multiply(new BigDecimal("-1")).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
112
|
+ record.setSystemAmount(samount);// 有货收入
|
112
|
} catch (Exception e) {
|
113
|
} catch (Exception e) {
|
113
|
logger.error("PayRecordErr计费信息不完整, uid is {}, skup is {}, err is {}", uid, skup, e.getMessage());
|
114
|
logger.error("PayRecordErr计费信息不完整, uid is {}, skup is {}, err is {}", uid, skup, e.getMessage());
|
114
|
- return;
|
|
|
115
|
}
|
115
|
}
|
116
|
- record.setSystemAmount(amount);// 有货收入
|
116
|
+
|
117
|
record.setTradeStatus(tradeStatus);//0:订单未完结;1:订单完结
|
117
|
record.setTradeStatus(tradeStatus);//0:订单未完结;1:订单完结
|
118
|
record.setCreateTime((int) (System.currentTimeMillis() / 1000));
|
118
|
record.setCreateTime((int) (System.currentTimeMillis() / 1000));
|
119
|
addTradeBills(record);
|
119
|
addTradeBills(record);
|