|
|
|
@ -277,13 +277,13 @@ public class TradeOrderSchedule { |
|
|
|
|
JSONObject queryTrans = laKaLaTradeService.queryTrans(tradeOrder.getOutTradeNo()); |
|
|
|
|
if (queryTrans != null && queryTrans.getString("trade_state").equals("03")) { |
|
|
|
|
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.setFeeRate(new BigDecimal(queryTrans.getString("fee_rate").split(",")[0])); |
|
|
|
|
tradeOrderService.editOrder(tradeOrder); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
|
System.out.println(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|