|
|
@ -42,6 +42,7 @@ import au.com.royalpay.payment.manage.merchants.core.*;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.entity.impls.*;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.entity.impls.*;
|
|
|
|
import au.com.royalpay.payment.manage.notice.core.MailService;
|
|
|
|
import au.com.royalpay.payment.manage.notice.core.MailService;
|
|
|
|
import au.com.royalpay.payment.manage.permission.utils.OrgCheckUtils;
|
|
|
|
import au.com.royalpay.payment.manage.permission.utils.OrgCheckUtils;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.rservices.core.RServicesApplyService;
|
|
|
|
import au.com.royalpay.payment.manage.signin.beans.TodoNotice;
|
|
|
|
import au.com.royalpay.payment.manage.signin.beans.TodoNotice;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.ManagerTodoNoticeProvider;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.ManagerTodoNoticeProvider;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.SignInAccountService;
|
|
|
|
import au.com.royalpay.payment.manage.signin.core.SignInAccountService;
|
|
|
@ -310,6 +311,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
private GatewayMerchantApply gatewayMerchantApply;
|
|
|
|
private GatewayMerchantApply gatewayMerchantApply;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private RetailRSvcService retailRSvcService;
|
|
|
|
private RetailRSvcService retailRSvcService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private RServicesApplyService rServicesApplyService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
@ -6582,15 +6585,26 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
saveIncrementalService.put("client_id", client.getInteger("client_id"));
|
|
|
|
saveIncrementalService.put("client_id", client.getInteger("client_id"));
|
|
|
|
saveIncrementalService.put("operator", manager.getString("display_name"));
|
|
|
|
saveIncrementalService.put("operator", manager.getString("display_name"));
|
|
|
|
saveIncrementalService.put("incremental_mode", incrementalService.getInteger("incremental_mode"));
|
|
|
|
//增值模式1:固定手续费;2:固定金额扣款
|
|
|
|
saveIncrementalService.put("incremental_rate_value", incrementalService.getInteger("incremental_mode") == 1 ? incrementalService.getString("incremental_rate_value") : 0);
|
|
|
|
saveIncrementalService.put("incremental_mode", incrementalService.getIntValue("incremental_rate_value") == 0 ? 2 : 1);
|
|
|
|
saveIncrementalService.put("total_incremental_amount", incrementalService.getInteger("incremental_mode") != 1 ? incrementalService.getString("total_incremental_amount") : 0);
|
|
|
|
saveIncrementalService.put("incremental_rate_value", incrementalService.getString("incremental_rate_value"));
|
|
|
|
|
|
|
|
saveIncrementalService.put("total_incremental_amount", incrementalService.getString("total_incremental_amount"));
|
|
|
|
|
|
|
|
saveIncrementalService.put("title", incrementalService.getString("title"));
|
|
|
|
if (existIncrementalService == null) {
|
|
|
|
if (existIncrementalService == null) {
|
|
|
|
clientIncrementalMapper.save(saveIncrementalService);
|
|
|
|
clientIncrementalMapper.save(saveIncrementalService);
|
|
|
|
|
|
|
|
if (incrementalService.getBigDecimal("total_incremental_amount").compareTo(new BigDecimal(0)) > 0) {
|
|
|
|
|
|
|
|
saveIncrementalService.put("amount", incrementalService.getString("total_incremental_amount"));
|
|
|
|
|
|
|
|
saveIncrementalService.put("service_code", "RYCBSM");
|
|
|
|
|
|
|
|
String title = incrementalService.getString("title");
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(title)) {
|
|
|
|
|
|
|
|
title = "RP跨境商城开通费用";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
saveIncrementalService.put("title", title);
|
|
|
|
|
|
|
|
rServicesApplyService.saveDebitDetail(saveIncrementalService, client);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
clientIncrementalMapper.update(saveIncrementalService);
|
|
|
|
clientIncrementalMapper.update(saveIncrementalService);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|