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