public void convertNewFundTrackingToNewFundBalanceWrapper(List<NewFundTrackingWrapper>…
- User
public void convertNewFundTrackingToNewFundBalanceWrapper(List newFundTrackingWrapperList, NewFundBalanceWrapper newFundBalanceWrapperResponse, List newFundBalanceDetailWrapperList, Map<String, BigDecimal> totalAvailableBalanceMap, String profileId) {
log.println("convertNewFundTrackingToNewFundBalanceWrapper method start"); Set<String> newFundCurrencyCodeIterationSet = new HashSet<>(); //repeatable currency for json if(newFundTrackingWrapperList != null ) { Map<String, Map<String, BigDecimal>> newFundInAndDayWiseTotalNewFundsSumMap = new NewFundUtility().getNewFundDetails(profileId);//KEYSTONEHK-360576 log.println("NewFundBalanceBusinessHostBean : newFundInAndDayWiseTotalNewFundsSumMap= "+newFundInAndDayWiseTotalNewFundsSumMap); for (NewFundTrackingWrapper newFundTrackingWrapper : newFundTrackingWrapperList) { if(newFundCurrencyCodeIterationSet.contains(newFundTrackingWrapper.currencyCode)) { log.println("Repetable new Fund `same CurrencyCode skip"); continue; } NewFundBalanceDetailWrapper newFundBalanceDetailWrapper = new NewFundBalanceDetailWrapper(); setNewFundBalanceDetailWrapper(newFundBalanceDetailWrapper,newFundTrackingWrapper,totalAvailableBalanceMap, newFundInAndDayWiseTotalNewFundsSumMap); newFundBalanceDetailWrapperList.add(newFundBalanceDetailWrapper); newFundCurrencyCodeIterationSet.add(newFundBalanceDetailWrapper.getCasaCurrencyCode()); } log.println("NFTRCKG table - newFundBalanceDetailWrapperList.size= " + newFundBalanceDetailWrapperList.size()); // CurrencyCode not availble in 'NFTRCKG' table,but its under new fund if(!totalAvailableBalanceMap.isEmpty() && !newFundCurrencyCodeIterationSet.isEmpty()) { for(Entry<String, BigDecimal> entry : totalAvailableBalanceMap.entrySet()) { log.println("newFundCurrencyCodeIterationSet//entry.getKey="+newFundCurrencyCodeIterationSet+"//"+entry.getKey()); if(!newFundCurrencyCodeIterationSet.contains(entry.getKey())) { NewFundBalanceDetailWrapper newFundBalanceDetailWrapper = new NewFundBalanceDetailWrapper(); newFundBalanceDetailWrapper.setCasaCurrencyCode(entry.getKey()); newFundBalanceDetailWrapper.setTotalAvailableBalance(entry.getValue()); newFundBalanceDetailWrapper.setTotalAvailableNewFund(BigDecimal.ZERO); //Assigning default value newFundBalanceDetailWrapper.setTotalNewFund(BigDecimal.ZERO); //Assigning default value newFundBalanceDetailWrapperList.add(newFundBalanceDetailWrapper); } } log.println("CurrencyCode not availble in 'NFTRCKG' table,but its under new fund" +"newFundBalanceDetailWrapperList size="+newFundBalanceDetailWrapperList.size()); } } else { if(!totalAvailableBalanceMap.isEmpty()) { for(Entry<String, BigDecimal> entry : totalAvailableBalanceMap.entrySet()) { NewFundBalanceDetailWrapper newFundBalanceDetailWrapper = new NewFundBalanceDetailWrapper(); newFundBalanceDetailWrapper.setCasaCurrencyCode(entry.getKey()); newFundBalanceDetailWrapper.setTotalAvailableBalance(entry.getValue()); newFundBalanceDetailWrapper.setTotalAvailableNewFund(BigDecimal.ZERO); //Assigning default value newFundBalanceDetailWrapper.setTotalNewFund(BigDecimal.ZERO); //Assigning default value newFundBalanceDetailWrapperList.add(newFundBalanceDetailWrapper); } } } log.println("Final newFundBalanceDetailWrapperList.size= " + newFundBalanceDetailWrapperList.size()); - Assistant
Understood. If you have any questions or need further assistance, feel free to ask!
- User
let me give tou another file
- Assistant
Of course! Please provide the file or the details you want to share, and I'll be happy to help with any questions or requests you have about it.
- User
okay now tell me all the nested funtions which are important not wrapper functiojs
- Assistant
Based on the code you provided, let's identify the key functions and logic that are not specifically focused on wrapping but are important for the underlying operations:
-
new NewFundUtility().getNewFundDetails(profileId):- This method is invoked early in the code and is responsible for retrieving detailed information about new fund entries. It appears to return a nested map structure,
Map<String, Map<String, BigDecimal>>, which is used later in the logic. This method is crucial as it provides the foundational data utilized to populate the .
- This method is invoked early in the code and is responsible for retrieving detailed information about new fund entries. It appears to return a nested map structure,
-
- User
okay I want you to ask me all the relavant files you need inorder to get a clear picture one by one
- Assistant
To get a clear understanding of the overall functionality and context of the code you provided, here are the relevant files or pieces of information I would need, one at a time:
-
NewFundUtility Class:
- Specifically, I need to see the implementation of the
getNewFundDetails(String profileId)method to understand how it retrieves and processes data.
- Specifically, I need to see the implementation of the
-
NewFundTrackingWrapper Class:
- Details on this class's structure and any methods it might have will help clarify what data is being handled in the list and what operations can be performed on it.
-
NewFundBalanceDetailWrapper Class:
- It's important to understand this class, its attributes, and methods to see how they're being populated and used.
-