|
|
|
@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.complianceAudit.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.complianceAudit.bean.ClientComplianceQuery;
|
|
|
|
|
import au.com.royalpay.payment.manage.complianceAudit.core.ClientComplianceApply;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.core.ClientManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.RequireManager;
|
|
|
|
@ -23,6 +24,8 @@ public class ComplianceAuditController
|
|
|
|
|
private ClientComplianceApply clientComplianceApply;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientManager clientManager;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientMapper clientMapper;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/listClientCompliances",method = RequestMethod.GET)
|
|
|
|
|
@RequireManager(role = {ManagerRole.ADMIN, ManagerRole.BD_USER, ManagerRole.OPERATOR, ManagerRole.SERVANT})
|
|
|
|
@ -31,22 +34,20 @@ public class ComplianceAuditController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ManagerMapping(value = "/{clientId}/pass/complianceFile", method = RequestMethod.PUT, role = {ManagerRole.OPERATOR, ManagerRole.BD_USER})
|
|
|
|
|
public void addUploadPaymentLogo(@PathVariable int clientId, @RequestBody JSONObject passInfo, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
public void passComplianceAudit(@PathVariable int clientId, @RequestBody JSONObject passInfo, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
clientComplianceApply.passComplianceFile(manager,clientId,passInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/refuse/complianceFiles",method = RequestMethod.GET)
|
|
|
|
|
@RequireManager(role = {ManagerRole.ADMIN, ManagerRole.BD_USER, ManagerRole.OPERATOR, ManagerRole.SERVANT})
|
|
|
|
|
public void refuseCompliances(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, JSONObject refuseInfo) {
|
|
|
|
|
// clientComplianceApply.passComplianceFiles(manager,refuseInfo);
|
|
|
|
|
@ManagerMapping(value = "/{clientId}/refuse/complianceFile", method = RequestMethod.PUT, role = {ManagerRole.OPERATOR, ManagerRole.BD_USER})
|
|
|
|
|
public void refuseComplianceAudit(@PathVariable int clientId, @RequestBody JSONObject refuseInfo, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
clientComplianceApply.refuseComplianceFile(manager,clientId,refuseInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/compliance/clientViewFiles/{client_id}",method = RequestMethod.GET)
|
|
|
|
|
@RequestMapping(value = "/compliance/clientViewFiles/{clientMoniker}",method = RequestMethod.GET)
|
|
|
|
|
@RequireManager(role = {ManagerRole.ADMIN, ManagerRole.BD_USER, ManagerRole.OPERATOR, ManagerRole.SERVANT})
|
|
|
|
|
public JSONObject searchCompliances(@PathVariable int client_id) {
|
|
|
|
|
JSONObject clientId = new JSONObject();
|
|
|
|
|
clientId.put("client_id",client_id);
|
|
|
|
|
return clientManager.getComplianceFilesForBD(clientId);
|
|
|
|
|
public JSONObject searchCompliances(@PathVariable String clientMoniker) {
|
|
|
|
|
JSONObject client = clientMapper.findClientByMoniker(clientMoniker);
|
|
|
|
|
return clientManager.getComplianceFilesForBD(client);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|