Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ISTE-44: added master map to outside call
Browse files Browse the repository at this point in the history
  • Loading branch information
debasishchakraborty-egovt committed Jun 7, 2024
1 parent 0b7ea35 commit f323cc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ private void generateDemandAndSendnotification(RequestInfo requestInfo, String t

public void generateDemandInBulk(CalculationReq calculationReq, String billingCycle, Map<String, Object> masterMap,
boolean isSendMessage,String tenantId) {
log.info("masterMap:"+masterMap);
Map<String, Object> masterMapDemand = (Map<String, Object>) masterMap;
try {
if(!tenantId.equals(config.getSmsExcludeTenant())) {
generateDemandInBatch(calculationReq, masterMap, billingCycle, isSendMessage);
generateDemandInBatch(calculationReq, masterMapDemand, billingCycle, isSendMessage);
}

} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Map<String, List> getEstimationMap(CalculationCriteria criteria, RequestI
ArrayList<String> billingSlabIds = new ArrayList<>();
log.info("masterData.get(WSCalculationConstant.WC_BILLING_SLAB_MASTER):"+masterData.get(WSCalculationConstant.WC_BILLING_SLAB_MASTER));
log.info("masterData.get(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST)" +masterData.get(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST));
// Convert and assign WC_BILLING_SLAB_MASTER
/*// Convert and assign WC_BILLING_SLAB_MASTER
ArrayList<String> wcBillingSlabList = (ArrayList<String>) masterData.get(WSCalculationConstant.WC_BILLING_SLAB_MASTER);
JSONArray wcBillingSlabArray = new JSONArray();
wcBillingSlabArray.addAll(wcBillingSlabList);
Expand All @@ -89,12 +89,12 @@ public Map<String, List> getEstimationMap(CalculationCriteria criteria, RequestI
ArrayList<String> calculationAttributeList = (ArrayList<String>) masterData.get(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST);
JSONArray calculationAttributeArray = new JSONArray();
calculationAttributeArray.addAll(calculationAttributeList);
billingSlabMaster.put(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST, calculationAttributeArray);
billingSlabMaster.put(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST, calculationAttributeArray);*/

/*billingSlabMaster.put(WSCalculationConstant.WC_BILLING_SLAB_MASTER,
billingSlabMaster.put(WSCalculationConstant.WC_BILLING_SLAB_MASTER,
(JSONArray) masterData.get(WSCalculationConstant.WC_BILLING_SLAB_MASTER));
billingSlabMaster.put(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST,
(JSONArray) masterData.get(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST));*/
(JSONArray) masterData.get(WSCalculationConstant.CALCULATION_ATTRIBUTE_CONST));
// timeBasedExemptionMasterMap.put(WSCalculationConstant.WC_WATER_CESS_MASTER,
// (JSONArray) (masterData.getOrDefault(WSCalculationConstant.WC_WATER_CESS_MASTER, null)));
// mDataService.setWaterConnectionMasterValues(requestInfo, tenantId,
Expand Down

0 comments on commit f323cc9

Please sign in to comment.