提交代码

yy_dev
胡锐 1 year ago
parent 4cbae79bf0
commit 5ff14ba617
  1. 4
      schedule/src/main/java/com/hfkj/schedule/TradeOrderSchedule.java

@ -277,13 +277,13 @@ public class TradeOrderSchedule {
JSONObject queryTrans = laKaLaTradeService.queryTrans(tradeOrder.getOutTradeNo()); JSONObject queryTrans = laKaLaTradeService.queryTrans(tradeOrder.getOutTradeNo());
if (queryTrans != null && queryTrans.getString("trade_state").equals("03")) { if (queryTrans != null && queryTrans.getString("trade_state").equals("03")) {
tradeOrder.setShdFeeAmt(queryTrans.getBigDecimal("fee_amount")); tradeOrder.setShdFeeAmt(queryTrans.getBigDecimal("fee_amount"));
tradeOrder.setSettleAmount(queryTrans.getBigDecimal("settle_amount")); tradeOrder.setSettleAmount(new BigDecimal(queryTrans.getString("settle_amount").replace(",","")));
tradeOrder.setSettleDate(queryTrans.getDate("clear_date")); tradeOrder.setSettleDate(queryTrans.getDate("clear_date"));
tradeOrder.setFeeRate(new BigDecimal(queryTrans.getString("fee_rate").split(",")[0])); tradeOrder.setFeeRate(new BigDecimal(queryTrans.getString("fee_rate").split(",")[0]));
tradeOrderService.editOrder(tradeOrder); tradeOrderService.editOrder(tradeOrder);
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println(e);
} }
} }
} }

Loading…
Cancel
Save