add 跨境商城RP付费扣款 增加扣款订单

master
luoyang 5 years ago
parent c40fce1926
commit fd1ef72dac

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.3.63</version>
<version>1.3.64</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -1,6 +1,7 @@
package au.com.royalpay.payment.manage.rservices.core.impl;
import au.com.royalpay.payment.core.TransactionService;
import au.com.royalpay.payment.core.mappers.PmtOrderMapper;
import au.com.royalpay.payment.manage.appclient.core.RetailAppService;
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
import au.com.royalpay.payment.manage.mappers.system.ClientIncrementalMapper;
@ -64,6 +65,8 @@ public class RServicesApplyServiceImpl implements RServicesApplyService {
private MailService mailService;
@Resource
private ClientIncrementalMapper clientIncrementalMapper;
@Resource
private PmtOrderMapper pmtOrderMapper;
@Override
public JSONObject getServicesApply(RServicesApplyQuery applyQuery) {
@ -157,6 +160,28 @@ public class RServicesApplyServiceImpl implements RServicesApplyService {
transaction.put("remark", applyInfo.getString("service_code") + ":" + applyInfo.getString("title"));
transaction.put("system_generate", 1);
transactionService.saveTransaction(transaction);
JSONObject order = new JSONObject();
order.put("order_id", orderId);
order.put("org_id", client.getIntValue("org_id"));
order.put("client_id", applyInfo.getIntValue("client_id"));
order.put("transaction_date", new Date());
order.put("order_description", applyInfo.getString("title"));
order.put("order_detail", applyInfo.getString("title"));
order.put("currency", "AUD");
order.put("display_amount", applyInfo.getBigDecimal("amount"));
order.put("total_amount", applyInfo.getBigDecimal("amount"));
order.put("customer_payment_amount", applyInfo.getBigDecimal("amount"));
order.put("refund_amount", applyInfo.getBigDecimal("amount"));
order.put("customer_ip", "0.0.0.0");
order.put("surcharge_rate", "0");
order.put("create_time", new Date());
order.put("expire_time", new Date());
order.put("confirm_time", new Date());
order.put("gateway", 0);
order.put("status", 7);
order.put("channel", "System");
pmtOrderMapper.save(order);
sendNotify(applyInfo, client);
}

Loading…
Cancel
Save