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

Commit

Permalink
Merge pull request #803 from egovernments/ISTE-163
Browse files Browse the repository at this point in the history
ISTE-163: added changes to mode the load master data outside for loop
  • Loading branch information
pradeepkumarcm-egov authored Jun 3, 2024
2 parents 1d24d0e + 9c5ed8c commit 976cfc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ private void generateDemandAndSendnotification(RequestInfo requestInfo, String t
previousToDate.add(Calendar.MONTH, -1);
int max = previousToDate.getActualMaximum(Calendar.DAY_OF_MONTH);
previousToDate.set(Calendar.DAY_OF_MONTH, max);
Map<String, Object> masterMap = mDataService.loadMasterData(requestInfo,
tenantId);

String assessmentYear = estimationService.getAssessmentYear();
ArrayList<String> failedConnectionNos = new ArrayList<String>();
Expand All @@ -297,8 +299,6 @@ private void generateDemandAndSendnotification(RequestInfo requestInfo, String t
CalculationReq calculationReq = CalculationReq.builder().calculationCriteria(calculationCriteriaList)
.requestInfo(requestInfo).isconnectionCalculation(true).isAdvanceCalculation(false).build();

Map<String, Object> masterMap = mDataService.loadMasterData(calculationReq.getRequestInfo(),
calculationReq.getCalculationCriteria().get(0).getTenantId());
Set<String> consumerCodes = new LinkedHashSet<String>();
consumerCodes.add(connectionNo);

Expand Down

0 comments on commit 976cfc6

Please sign in to comment.