|
|
@ -1,5 +1,6 @@
|
|
|
|
package au.com.royalpay.payment.manage.organizations.core.impls;
|
|
|
|
package au.com.royalpay.payment.manage.organizations.core.impls;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialPartnerCommissionMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.OrgMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.OrgMapper;
|
|
|
|
import au.com.royalpay.payment.manage.organizations.beans.OrgInfo;
|
|
|
|
import au.com.royalpay.payment.manage.organizations.beans.OrgInfo;
|
|
|
|
import au.com.royalpay.payment.manage.organizations.core.OrgManager;
|
|
|
|
import au.com.royalpay.payment.manage.organizations.core.OrgManager;
|
|
|
@ -29,6 +30,8 @@ import javax.annotation.Resource;
|
|
|
|
public class OrgManagerImpl implements OrgManager {
|
|
|
|
public class OrgManagerImpl implements OrgManager {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private OrgMapper orgMapper;
|
|
|
|
private OrgMapper orgMapper;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private FinancialPartnerCommissionMapper financialPartnerCommissionMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<JSONObject> listOrgs(boolean detail) {
|
|
|
|
public List<JSONObject> listOrgs(boolean detail) {
|
|
|
@ -126,6 +129,16 @@ public class OrgManagerImpl implements OrgManager {
|
|
|
|
return orgMapper.listOrgs(1,new PageBounds());
|
|
|
|
return orgMapper.listOrgs(1,new PageBounds());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public JSONObject getCityPartnerPrizeInfoList(int page, int limit,int orgId, JSONObject manager) {
|
|
|
|
|
|
|
|
if (orgId > 0) {
|
|
|
|
|
|
|
|
PageList<JSONObject> clientExtractList = financialPartnerCommissionMapper.getClientExtractRecord(orgId,
|
|
|
|
|
|
|
|
new PageBounds(page, limit));
|
|
|
|
|
|
|
|
return PageListUtils.buildPageListResult(clientExtractList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void switchPermission(int orgId, String permissionName, boolean enabled) {
|
|
|
|
public void switchPermission(int orgId, String permissionName, boolean enabled) {
|
|
|
|
JSONObject org = new JSONObject();
|
|
|
|
JSONObject org = new JSONObject();
|
|
|
|