|
|
@ -209,12 +209,12 @@ public class LaKaLaTradeService { |
|
|
|
map.put("account_type", order.getPayMode()); |
|
|
|
map.put("account_type", order.getPayMode()); |
|
|
|
map.put("trans_type", "51"); |
|
|
|
map.put("trans_type", "51"); |
|
|
|
map.put("total_amount", order.getTradeActualAmount().multiply(new BigDecimal("100")).intValue()); |
|
|
|
map.put("total_amount", order.getTradeActualAmount().multiply(new BigDecimal("100")).intValue()); |
|
|
|
|
|
|
|
map.put("settle_type", order.getProfitSharingStatus()==true?1:0); |
|
|
|
if (StringUtils.isNotBlank(order.getSubject())) { |
|
|
|
if (StringUtils.isNotBlank(order.getSubject())) { |
|
|
|
map.put("subject", order.getSubject()); |
|
|
|
map.put("subject", order.getSubject()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
map.put("subject", mer.getMerAbbreviate()); |
|
|
|
map.put("subject", mer.getMerAbbreviate()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (order.getCreateType() != null && order.getCreateType().equals(TradeOrderCreateTypeEnum.type3.getCode())) { |
|
|
|
if (order.getCreateType() != null && order.getCreateType().equals(TradeOrderCreateTypeEnum.type3.getCode())) { |
|
|
|
map.put("notify_url", CommonSysConst.getSysConfig().getLkl_open_api_pay_notify_url()); |
|
|
|
map.put("notify_url", CommonSysConst.getSysConfig().getLkl_open_api_pay_notify_url()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -343,7 +343,7 @@ public class LaKaLaTradeService { |
|
|
|
if (order.getProfitSharingStatus().equals(true)) { |
|
|
|
if (order.getProfitSharingStatus().equals(true)) { |
|
|
|
// 查询分账记录
|
|
|
|
// 查询分账记录
|
|
|
|
BsTradeOrderProfitSharing tradeOrderProfitSharing = tradeOrderProfitSharingService.getProfitSharingByTradeOrderId(ProfitSharingCmdTypeEnum.CMD_TYPE_1, order.getId()); |
|
|
|
BsTradeOrderProfitSharing tradeOrderProfitSharing = tradeOrderProfitSharingService.getProfitSharingByTradeOrderId(ProfitSharingCmdTypeEnum.CMD_TYPE_1, order.getId()); |
|
|
|
if (tradeOrderProfitSharing != null) { |
|
|
|
if (tradeOrderProfitSharing != null && tradeOrderProfitSharing.getStatus().equals(ProfitSharingStatusEnum.status3.getNumber())) { |
|
|
|
laKaLaTradeSeparateService.cancel(tradeOrderProfitSharing.getProfitSharingOrderNo()); |
|
|
|
laKaLaTradeSeparateService.cancel(tradeOrderProfitSharing.getProfitSharingOrderNo()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|