diff --git a/src/main/java/au/com/royalpay/payment/manage/analysis/core/ClientRatesAnalysisService.java b/src/main/java/au/com/royalpay/payment/manage/analysis/core/ClientRatesAnalysisService.java index 7b5343f6e..80b8ca5b0 100644 --- a/src/main/java/au/com/royalpay/payment/manage/analysis/core/ClientRatesAnalysisService.java +++ b/src/main/java/au/com/royalpay/payment/manage/analysis/core/ClientRatesAnalysisService.java @@ -8,7 +8,7 @@ import java.util.Date; * Created by yixian on 2016-11-08. */ public interface ClientRatesAnalysisService { - JSONObject listAnalysisOfBDUsers(JSONObject manager, String orgId,String orgIds, Date beginDate, Date endDate); + JSONObject listAnalysisOfBDUsers(JSONObject manager, String orgId,String orgId2, Date beginDate, Date endDate); JSONObject listAllClientRates(Integer orgId, ClientRateQueryBean query); diff --git a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ClientRatesAnalysisServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ClientRatesAnalysisServiceImpl.java index 3d77137d3..e8fa2779d 100644 --- a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ClientRatesAnalysisServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ClientRatesAnalysisServiceImpl.java @@ -46,13 +46,13 @@ public class ClientRatesAnalysisServiceImpl implements ClientRatesAnalysisServic private OrgManager orgManager; @Override - public JSONObject listAnalysisOfBDUsers(JSONObject manager, String orgId, String orgIds,Date beginDate, Date endDate) { + public JSONObject listAnalysisOfBDUsers(JSONObject manager, String orgId, String orgId2,Date beginDate, Date endDate) { JSONObject params = new JSONObject(); if (orgId != null) { params.put("org_id", orgId); } - if (StringUtils.isNotEmpty(orgIds)) { - params.put("org_ids", orgIds); + if (StringUtils.isNotEmpty(orgId2)) { + params.put("org_id2", orgId2); } if (ManagerRole.BD_LEADER.hasRole(manager.getIntValue("role"))) { diff --git a/src/main/java/au/com/royalpay/payment/manage/analysis/web/ClientRatesController.java b/src/main/java/au/com/royalpay/payment/manage/analysis/web/ClientRatesController.java index 8178181c8..fa2015d96 100644 --- a/src/main/java/au/com/royalpay/payment/manage/analysis/web/ClientRatesController.java +++ b/src/main/java/au/com/royalpay/payment/manage/analysis/web/ClientRatesController.java @@ -35,7 +35,7 @@ public class ClientRatesController { @RequestMapping("/bd_users") public JSONObject listAnalysisOfBDUsers(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, @RequestParam(name = "org_id", required = false) String orgId, - @RequestParam(name = "org_ids", required = false) String orgIds, + @RequestParam(name = "org_id2", required = false) String orgId2, @RequestParam String begin, @RequestParam String end) { Date beginDate; try { @@ -49,7 +49,7 @@ public class ClientRatesController { } catch (ParseException e) { throw new ParamInvalidException("end", "error.payment.valid.invalid_date_format"); } - return clientRatesAnalysisService.listAnalysisOfBDUsers(manager,orgId, orgIds, beginDate, endDate); + return clientRatesAnalysisService.listAnalysisOfBDUsers(manager,orgId, orgId2, beginDate, endDate); } @RequestMapping("/orgs/all") diff --git a/src/main/java/au/com/royalpay/payment/manage/organizations/core/impls/OrgManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/organizations/core/impls/OrgManagerImpl.java index d68b1a2f2..dc9445697 100644 --- a/src/main/java/au/com/royalpay/payment/manage/organizations/core/impls/OrgManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/organizations/core/impls/OrgManagerImpl.java @@ -152,14 +152,14 @@ public class OrgManagerImpl implements OrgManager { @Override public JSONObject checkOrgIds(JSONObject manager, JSONObject params) { if(params.getString("org_id") != null){ - if(params.getString("org_ids") == null){ + if(params.getString("org_id2") == null){ orgIds(params,manager); }else { - params.put("org_id",params.getString("org_ids")); - params.remove("org_ids"); + params.put("org_id",params.getString("org_id2")); + params.remove("org_id2"); } }else { - if(params.getString("org_ids") == null){ + if(params.getString("org_id2") == null){ if(manager.getIntValue("org_id") > 0){ List orgs = orgMapper.listOrgAndChild(manager.getIntValue("org_id")); if (orgs.size()>1){ @@ -170,8 +170,8 @@ public class OrgManagerImpl implements OrgManager { } } }else { - params.put("org_id",params.getString("org_ids")); - params.remove("org_ids"); + params.put("org_id",params.getString("org_id2")); + params.remove("org_id2"); } } return params; diff --git a/src/main/java/au/com/royalpay/payment/manage/tradelog/beans/TradeLogQuery.java b/src/main/java/au/com/royalpay/payment/manage/tradelog/beans/TradeLogQuery.java index f3c271886..24dc602ed 100644 --- a/src/main/java/au/com/royalpay/payment/manage/tradelog/beans/TradeLogQuery.java +++ b/src/main/java/au/com/royalpay/payment/manage/tradelog/beans/TradeLogQuery.java @@ -37,7 +37,7 @@ public class TradeLogQuery { private boolean onlyGroup = false; private int group_bd; private String org_id; - private String org_ids; + private String org_id2; public JSONObject toParams(String timezone) { JSONObject params = new JSONObject(); @@ -97,8 +97,8 @@ public class TradeLogQuery { params.put("org_id", org_id); } - if (StringUtils.isNotEmpty(org_ids)) { - params.put("org_ids", org_ids); + if (StringUtils.isNotEmpty(org_id2)) { + params.put("org_id2", org_id2); } return params; } @@ -232,11 +232,11 @@ public class TradeLogQuery { this.org_id = org_id; } - public String getOrg_ids() { - return org_ids; + public String getorg_id2() { + return org_id2; } - public void setOrg_ids(String org_ids) { - this.org_ids = org_ids; + public void setorg_id2(String org_id2) { + this.org_id2 = org_id2; } } diff --git a/src/main/ui/static/analysis/templates/client_rates.html b/src/main/ui/static/analysis/templates/client_rates.html index d0917a5c3..0f256632a 100644 --- a/src/main/ui/static/analysis/templates/client_rates.html +++ b/src/main/ui/static/analysis/templates/client_rates.html @@ -15,12 +15,12 @@
-
-
diff --git a/src/main/ui/static/payment/tradelog/templates/trade_logs.html b/src/main/ui/static/payment/tradelog/templates/trade_logs.html index 26ec16fa0..29d0e0575 100644 --- a/src/main/ui/static/payment/tradelog/templates/trade_logs.html +++ b/src/main/ui/static/payment/tradelog/templates/trade_logs.html @@ -61,13 +61,13 @@
-