diff --git a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/consumer/DemandGenerationConsumer.java b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/consumer/DemandGenerationConsumer.java index 94995c078..78a7d4f26 100644 --- a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/consumer/DemandGenerationConsumer.java +++ b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/consumer/DemandGenerationConsumer.java @@ -187,11 +187,11 @@ public void listenDeadLetterTopic(final List> records) { */ private void generateDemandInBatch(CalculationReq request, Map masterMap, String errorTopic, boolean isSendMessage) throws Exception { - for (CalculationCriteria criteria : request.getCalculationCriteria()) { + /*for (CalculationCriteria criteria : request.getCalculationCriteria()) { Boolean genratedemand = true; wsCalulationWorkflowValidator.applicationValidation(request.getRequestInfo(), criteria.getTenantId(), criteria.getConnectionNo(), genratedemand); - } + }*/ System.out.println("Calling Bulk Demand generation connection Number" + request.getCalculationCriteria().get(0).getConnectionNo()); wSCalculationServiceImpl.bulkDemandGeneration(request, masterMap); /*String connectionNoStrings = request.getCalculationCriteria().stream() @@ -517,7 +517,6 @@ private void generateDemandAndSendnotification(RequestInfo requestInfo, String t public void generateDemandInBulk(CalculationReq calculationReq, String billingCycle, Map masterMap, boolean isSendMessage,String tenantId) { - log.info("masterMap:"+masterMap); try { if(!tenantId.equals(config.getSmsExcludeTenant())) { generateDemandInBatch(calculationReq, masterMap, billingCycle, isSendMessage); diff --git a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java index 0bdda8de2..a9f476a6f 100644 --- a/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java +++ b/municipal-services/ws-calculator/src/main/java/org/egov/wscalculation/service/DemandService.java @@ -937,12 +937,12 @@ private List updateDemandForCalculation(RequestInfo requestInfo, List demandDetails = new LinkedList<>(); calculation.getTaxHeadEstimates().forEach(taxHeadEstimate -> { @@ -1028,7 +1028,7 @@ private List updateDemandForCalculation(RequestInfo requestInfo, List waterConnectionList = calculatorUtils.getWaterConnection(requestInfo, @@ -1050,7 +1050,7 @@ private List updateDemandForCalculation(RequestInfo requestInfo, List billingSlabIds = estimatesAndBillingSlabs.get("billingSlabIds"); WaterConnection waterConnection = criteria.getWaterConnection(); - Property property = wSCalculationUtil.getProperty( - WaterConnectionRequest.builder().waterConnection(waterConnection).requestInfo(requestInfo).build()); + /*Property property = wSCalculationUtil.getProperty( + WaterConnectionRequest.builder().waterConnection(waterConnection).requestInfo(requestInfo).build());*/ - String tenantId = null != property.getTenantId() ? property.getTenantId() : criteria.getTenantId(); + String tenantId = criteria.getTenantId(); /*Map taxHeadCategoryMap = ((List) masterMap