listRpaySubMerchantIdApplys(@PathVariable String clientMoniker, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
return clientManager.listRpaySubMerchantIdApplys(manager, clientMoniker);
}
+
@ManagerMapping(value = "/{clientMoniker}/sub_apply", method = RequestMethod.POST, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public String subMerchantApplication(@PathVariable String clientMoniker, @RequestBody SubMerchantIdApply subMerchantIdApply, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
return clientManager.subMerchantApplication(clientMoniker, subMerchantIdApply, manager);
@@ -932,51 +941,54 @@ public class PartnerManageController {
/**
* 获取商户所有增值服务
+ *
* @param clientMoniker
* @return
*/
@ManagerMapping(value = "/{clientMoniker}/incremental_service", method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public JSONObject getClientIncrementalService(@PathVariable String clientMoniker){
- return clientManager.partnerIncrementalService(clientMoniker);
+ public JSONObject getClientIncrementalService(@PathVariable String clientMoniker) {
+ return clientManager.partnerIncrementalService(clientMoniker);
}
/**
* 保存/修改增值服务配置
+ *
* @param clientMoniker
* @param incrementalService
*/
@ManagerMapping(value = "/{clientMoniker}/incremental_service", method = RequestMethod.POST, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public void updateClientIncrementalService(@PathVariable("clientMoniker") String clientMoniker,@RequestBody JSONObject incrementalService, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager){
- clientManager.changePartnerIncrementalService(clientMoniker,incrementalService,manager);
+ public void updateClientIncrementalService(@PathVariable("clientMoniker") String clientMoniker, @RequestBody JSONObject incrementalService, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
+ clientManager.changePartnerIncrementalService(clientMoniker, incrementalService, manager);
}
/**
* 禁用/启用增值服务
+ *
* @param clientMoniker
* @param incrementalService
*/
@ManagerMapping(value = "/{clientMoniker}/incremental_service/status", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public void switchClientIncrementalService(@PathVariable("clientMoniker") String clientMoniker,@RequestBody JSONObject incrementalService, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager){
- clientManager.changeSwitchIncrementalService(clientMoniker,incrementalService,manager);
+ public void switchClientIncrementalService(@PathVariable("clientMoniker") String clientMoniker, @RequestBody JSONObject incrementalService, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
+ clientManager.changeSwitchIncrementalService(clientMoniker, incrementalService, manager);
}
@ManagerMapping(value = "/{clientMoniker}/ext_config", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public void changeClientExtConfigs(@PathVariable("clientMoniker")String clientMoniker,
+ public void changeClientExtConfigs(@PathVariable("clientMoniker") String clientMoniker,
@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager,
- @RequestBody JSONObject params){
- clientManager.changeExtParams(clientMoniker,manager,params);
+ @RequestBody JSONObject params) {
+ clientManager.changeExtParams(clientMoniker, manager, params);
}
- @ManagerMapping(value = "/{clientMoniker}/applyMWMerchantId",method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public RPayMerchantEntity applyMWMerchantId(@PathVariable("clientMoniker")String clientMoniker,
- @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager){
- return clientManager.applyMWMerchantId(clientMoniker,manager);
+ @ManagerMapping(value = "/{clientMoniker}/applyMWMerchantId", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
+ public RPayMerchantEntity applyMWMerchantId(@PathVariable("clientMoniker") String clientMoniker,
+ @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
+ return clientManager.applyMWMerchantId(clientMoniker, manager);
}
- @ManagerMapping(value = "/{clientMoniker}/queryMWMerchantIdStatus",method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public RPayMerchantEntity queryMWMerchantIdStatus(@PathVariable("clientMoniker")String clientMoniker,
- @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager){
- return clientManager.queryMWMerchantIdStatus(clientMoniker,manager);
+ @ManagerMapping(value = "/{clientMoniker}/queryMWMerchantIdStatus", method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
+ public RPayMerchantEntity queryMWMerchantIdStatus(@PathVariable("clientMoniker") String clientMoniker,
+ @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
+ return clientManager.queryMWMerchantIdStatus(clientMoniker, manager);
}
@ManagerMapping(value = "/{clientMoniker}/query/mw_info", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
@@ -986,11 +998,12 @@ public class PartnerManageController {
/**
* 启用/禁用国际卡支付
+ *
* @param clientMoniker
*/
@ManagerMapping(value = "/{clientMoniker}/payment_card_permission", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR})
- public void switchInternationalCard(@PathVariable String clientMoniker, @RequestBody JSONObject pass, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager){
- clientManager.switchPermission(manager, clientMoniker, "enable_international_card", pass.getBooleanValue("allow"));
+ public void switchInternationalCard(@PathVariable String clientMoniker, @RequestBody JSONObject pass, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
+ clientManager.modifyUPayProfile(manager, clientMoniker, "enable_international_card", pass.getBooleanValue("allow"));
}
}
diff --git a/src/main/java/au/com/royalpay/payment/manage/tradelog/core/impls/TradeLogServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/tradelog/core/impls/TradeLogServiceImpl.java
index 6183230d5..6679d26c9 100644
--- a/src/main/java/au/com/royalpay/payment/manage/tradelog/core/impls/TradeLogServiceImpl.java
+++ b/src/main/java/au/com/royalpay/payment/manage/tradelog/core/impls/TradeLogServiceImpl.java
@@ -12,7 +12,10 @@ import au.com.royalpay.payment.core.exceptions.ParamInvalidException;
import au.com.royalpay.payment.manage.mappers.client.ClientCustomersMapper;
import au.com.royalpay.payment.manage.mappers.log.ClearingDetailMapper;
import au.com.royalpay.payment.manage.mappers.log.ClearingLogMapper;
-import au.com.royalpay.payment.manage.mappers.payment.*;
+import au.com.royalpay.payment.manage.mappers.payment.AustracDataMapper;
+import au.com.royalpay.payment.manage.mappers.payment.OrderMapper;
+import au.com.royalpay.payment.manage.mappers.payment.RefundMapper;
+import au.com.royalpay.payment.manage.mappers.payment.TransactionMapper;
import au.com.royalpay.payment.manage.mappers.system.*;
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
import au.com.royalpay.payment.manage.organizations.core.OrgManager;
@@ -56,7 +59,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
-import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
@@ -88,8 +90,6 @@ public class TradeLogServiceImpl implements TradeLogService {
@Resource
private RefundMapper refundMapper;
@Resource
- private RefundAuditionMapper refundAuditionMapper;
- @Resource
private ClientAccountMapper clientAccountMapper;
@Resource
private ClientManager clientManager;
@@ -116,8 +116,6 @@ public class TradeLogServiceImpl implements TradeLogService {
@Resource
private ClearingLogMapper clearingLogMapper;
@Resource
- private StringRedisTemplate stringRedisTemplate;
- @Resource
private OrgManager orgManager;
@Resource
private ClientMapper clientMapper;
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index 3beef053f..8950b3d8d 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -3,13 +3,13 @@ spring:
master:
host: 192.168.0.84:3306
jdbc-url: jdbc:mysql://${spring.datasource.master.host}/${spring.datasource.master.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
- password: rpayplus
+ password: rpayplus123
schema-name: royalpay
username: root
slave:
host: 192.168.0.84:3306
jdbc-url: jdbc:mysql://${spring.datasource.slave.host}/${spring.datasource.slave.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false
- password: rpayplus
+ password: rpayplus123
schema-name: royalpay
username: root
type: com.zaxxer.hikari.HikariDataSource
diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml
index 38e1504a7..b7508e323 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml
@@ -952,7 +952,7 @@
INNER JOIN sys_org so ON t.org_id = so.org_id AND so.is_valid = 1
AND so.type = 0
AND so.citypartner = 1 AND so.commission = 1
- AND year(t.transaction_time) = #{year} AND month(t.transaction_time) = #{month}
+ AND year(t.create_time) = #{year} AND month(t.create_time) = #{month}
AND t.channel != 'Settlement' AND t.channel != 'System' AND t.system_generate = 0
ORDER BY t.client_id asc
]]>
diff --git a/src/main/resources/jasper/austrac_report20171228.jasper b/src/main/resources/jasper/austrac_report20171228.jasper
deleted file mode 100644
index bc48e6dab..000000000
Binary files a/src/main/resources/jasper/austrac_report20171228.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/partner_invoice_20171201.jasper b/src/main/resources/jasper/partner_invoice_20171201.jasper
deleted file mode 100644
index 5e336bbee..000000000
Binary files a/src/main/resources/jasper/partner_invoice_20171201.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/partner_invoice_gst20180409.jasper b/src/main/resources/jasper/partner_invoice_gst20180409.jasper
deleted file mode 100644
index 95cd7257e..000000000
Binary files a/src/main/resources/jasper/partner_invoice_gst20180409.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/partner_invoice_gst20180412.jasper b/src/main/resources/jasper/partner_invoice_gst20180412.jasper
deleted file mode 100644
index 9c01d8c81..000000000
Binary files a/src/main/resources/jasper/partner_invoice_gst20180412.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/partner_invoice_gst20200410.jasper b/src/main/resources/jasper/partner_invoice_gst20200410.jasper
deleted file mode 100644
index a5111a4fa..000000000
Binary files a/src/main/resources/jasper/partner_invoice_gst20200410.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/partner_invoice_gst_bak.jasper b/src/main/resources/jasper/partner_invoice_gst_bak.jasper
deleted file mode 100644
index a5111a4fa..000000000
Binary files a/src/main/resources/jasper/partner_invoice_gst_bak.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20161008.jasper b/src/main/resources/jasper/trans_excel20161008.jasper
deleted file mode 100644
index 4540bd758..000000000
Binary files a/src/main/resources/jasper/trans_excel20161008.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20161009.jasper b/src/main/resources/jasper/trans_excel20161009.jasper
deleted file mode 100644
index 8f1c479c2..000000000
Binary files a/src/main/resources/jasper/trans_excel20161009.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20170516.jasper b/src/main/resources/jasper/trans_excel20170516.jasper
deleted file mode 100644
index 92f6d53b8..000000000
Binary files a/src/main/resources/jasper/trans_excel20170516.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20170531.jasper b/src/main/resources/jasper/trans_excel20170531.jasper
deleted file mode 100644
index 114f3e452..000000000
Binary files a/src/main/resources/jasper/trans_excel20170531.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20170704.jasper b/src/main/resources/jasper/trans_excel20170704.jasper
deleted file mode 100644
index 6a3088df4..000000000
Binary files a/src/main/resources/jasper/trans_excel20170704.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20170822.jasper b/src/main/resources/jasper/trans_excel20170822.jasper
deleted file mode 100644
index e15c25426..000000000
Binary files a/src/main/resources/jasper/trans_excel20170822.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_excel20180412.jasper b/src/main/resources/jasper/trans_excel20180412.jasper
deleted file mode 100644
index 70a836128..000000000
Binary files a/src/main/resources/jasper/trans_excel20180412.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_flow20161008.jasper b/src/main/resources/jasper/trans_flow20161008.jasper
deleted file mode 100644
index d9d27c387..000000000
Binary files a/src/main/resources/jasper/trans_flow20161008.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_flow20161009.jasper b/src/main/resources/jasper/trans_flow20161009.jasper
deleted file mode 100644
index 633fecc1f..000000000
Binary files a/src/main/resources/jasper/trans_flow20161009.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_flow_new20161107.jasper b/src/main/resources/jasper/trans_flow_new20161107.jasper
deleted file mode 100644
index 781826752..000000000
Binary files a/src/main/resources/jasper/trans_flow_new20161107.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_flow_new20161202.jasper b/src/main/resources/jasper/trans_flow_new20161202.jasper
deleted file mode 100644
index cbb4e4e8a..000000000
Binary files a/src/main/resources/jasper/trans_flow_new20161202.jasper and /dev/null differ
diff --git a/src/main/resources/jasper/trans_flow_new20170302.jasper b/src/main/resources/jasper/trans_flow_new20170302.jasper
deleted file mode 100644
index aeccc6c99..000000000
Binary files a/src/main/resources/jasper/trans_flow_new20170302.jasper and /dev/null differ
diff --git a/src/main/resources/templates/mail/new_client_notice.html b/src/main/resources/templates/mail/new_client_notice.html
index 750855542..f5003c77c 100644
--- a/src/main/resources/templates/mail/new_client_notice.html
+++ b/src/main/resources/templates/mail/new_client_notice.html
@@ -5,6 +5,14 @@
I'm happy to let you know
that your RoyalPay Cross-border Payment account has been set up.
很高兴通知您,贵司RoyalPay跨境全支付已经开通
+ I'm
+ happy to let you know
+ Congratulations, you have passed the compliance review and be granted a RoyalPay account.
+ You can start to do IT integration. At the same time, please contact BD regarding the invoice of security
+ deposit. We will set up your account live in the production environment after receiving the security deposit
+ from your company.
+
+ 恭喜您已通过 CardPayment 合规审核,您可开始做IT对接. 请联系BD沟通支付保证金事宜。我司会在收到贵司提交的保证金后,开启您的 CardPayment 权限。
Please kindly log on the
website below to manage your accounts and transactions:
@@ -94,7 +102,7 @@
Store to download APP for IOS,which helps check your payment receiving records.
您可以在APP Store里搜索"RoyalPay"下载royalpay的app,来进行收款和接收到账提醒等。
+ href="https://itunes.apple.com/app/royalpay/id1049566852?l=en&mt=8">RoyalPay"下载royalpay的app,来进行收款和接收到账提醒等。
@@ -154,7 +162,8 @@
-
+
Tel:
1300 10 77 50
Level 14, 383 Kent Street, Sydney NSW 2000
Tunnel Show Pty Ltd trading as RoyalPay
@@ -173,10 +182,7 @@
-
-
-
-