Skip to content

Commit

Permalink
ISTE-163: added changes to mode the load master data outside for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
debasishchakraborty-egovt committed Jun 3, 2024
1 parent 44cf702 commit 9c5ed8c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,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 @@ -309,8 +311,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 9c5ed8c

Please sign in to comment.