自助进件费率配置分开

master
wangning 6 years ago
parent 0489cbf660
commit b4277bfcc5

@ -77,22 +77,16 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
private ClientManager clientManager; private ClientManager clientManager;
@Resource @Resource
private SignInAccountService signInAccountService; private SignInAccountService signInAccountService;
@Resource @Resource
private ClientAccountMapper clientAccountMapper; private ClientAccountMapper clientAccountMapper;
@Resource @Resource
private SysClientPreMapperMapper sysClientPreMapperMapper; private SysClientPreMapperMapper sysClientPreMapperMapper;
@Resource @Resource
private ClientBankAccountMapper clientBankAccountMapper; private ClientBankAccountMapper clientBankAccountMapper;
@Resource @Resource
private ClientMapper clientMapper; private ClientMapper clientMapper;
@Resource @Resource
private ClientRateMapper clientRateMapper; private ClientRateMapper clientRateMapper;
@Resource @Resource
private ClientConfigMapper clientConfigMapper; private ClientConfigMapper clientConfigMapper;
@Resource @Resource
@ -352,7 +346,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
sysRate.put("active_time", DateFormatUtils.format(new Date(), "yyyy-MM-dd")); sysRate.put("active_time", DateFormatUtils.format(new Date(), "yyyy-MM-dd"));
sysRate.put("expiry_time", DateFormatUtils.format(DateUtils.addYears(new Date(), 1), "yyyy-MM-dd")); sysRate.put("expiry_time", DateFormatUtils.format(DateUtils.addYears(new Date(), 1), "yyyy-MM-dd"));
JSONObject rateConfig = clientManager.getSysRateConfig(); JSONObject rateConfig = JSONObject.parseObject(sysConfig.getString("sys_rates"));
JSONObject chooseRate = new JSONObject(); JSONObject chooseRate = new JSONObject();
if (apply.getIntValue("clean_days") == 1) { if (apply.getIntValue("clean_days") == 1) {
chooseRate = rateConfig.getJSONObject("t1"); chooseRate = rateConfig.getJSONObject("t1");

@ -3,6 +3,7 @@ package au.com.royalpay.payment.manage.application.web;
import au.com.royalpay.payment.manage.application.beans.ClientPreApplyBean; import au.com.royalpay.payment.manage.application.beans.ClientPreApplyBean;
import au.com.royalpay.payment.manage.application.beans.ClientPreApplyStep1Bean; import au.com.royalpay.payment.manage.application.beans.ClientPreApplyStep1Bean;
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService; import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
import au.com.royalpay.payment.tools.env.SysConfigManager;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -23,6 +24,8 @@ import javax.validation.Valid;
public class SimpleClientApplyController { public class SimpleClientApplyController {
@Resource @Resource
private SimpleClientApplyService simpleClientApplyService; private SimpleClientApplyService simpleClientApplyService;
@Resource
private SysConfigManager sysConfigManager;
@RequestMapping(value = "/account/check", method = RequestMethod.GET) @RequestMapping(value = "/account/check", method = RequestMethod.GET)
public void checkAccountName(@RequestParam String nation_code,@RequestParam String phone) { public void checkAccountName(@RequestParam String nation_code,@RequestParam String phone) {
@ -75,4 +78,12 @@ public class SimpleClientApplyController {
simpleClientApplyService.checkOrGenerateRegisterProcessKey(username, codeKey); simpleClientApplyService.checkOrGenerateRegisterProcessKey(username, codeKey);
return simpleClientApplyService.getBankInfo(bsb_no); return simpleClientApplyService.getBankInfo(bsb_no);
} }
@RequestMapping(value = "/config/sys_rates", method = RequestMethod.GET)
public JSONObject getSysRate() {
JSONObject sysConfig = sysConfigManager.getSysConfig();
return JSONObject.parseObject(sysConfig.getString("sys_rates"));
} }
}

@ -269,8 +269,6 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
@Resource @Resource
private SimpleClientApplyService simpleClientApplyService; private SimpleClientApplyService simpleClientApplyService;
@Resource @Resource
private MongoTemplate mongoTemplate;
@Resource
private MailGunService mailGunService; private MailGunService mailGunService;
@Resource @Resource
private MailSendMapper mailSendMapper; private MailSendMapper mailSendMapper;

@ -114,7 +114,7 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
$scope.chooseArray[index] = true; $scope.chooseArray[index] = true;
}; };
$scope.getRateConfig = function () { $scope.getRateConfig = function () {
$http.get('/sys/partners/sys_rates').then(function (resp) { $http.get('/register/config/sys_rates').then(function (resp) {
$scope.sysRateConfig = resp.data; $scope.sysRateConfig = resp.data;
}, function (resp) { }, function (resp) {
}) })

Loading…
Cancel
Save