| Line 109... |
Line 109... |
| 109 |
// OnBoarding Form
|
109 |
// OnBoarding Form
|
| 110 |
@RequestMapping(value = "/onboardingForm", method = RequestMethod.GET)
|
110 |
@RequestMapping(value = "/onboardingForm", method = RequestMethod.GET)
|
| 111 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
111 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| 112 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
112 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 113 |
AuthUser selfAuth = authRepository.selectByEmailOrMobile(loginDetails.getEmailId());
|
113 |
AuthUser selfAuth = authRepository.selectByEmailOrMobile(loginDetails.getEmailId());
|
| 114 |
List<AuthUser> authUsersList = loiFormService.getSalesAuthList();
|
114 |
List<AuthUser> authUsersList = loiFormService.getReferalAuthList();
|
| 115 |
List<BrandFee> brandFee = brandFeeRepository.selectFeeOnDate(LocalDateTime.now());
|
115 |
List<BrandFee> brandFee = brandFeeRepository.selectFeeOnDate(LocalDateTime.now());
|
| 116 |
LOGGER.info("brandFee - " + brandFee);
|
116 |
LOGGER.info("brandFee - " + brandFee);
|
| 117 |
Set<Pair<StoreType, BrandFee>> storeTypeFeePairs = new HashSet<>();
|
117 |
Set<Pair<StoreType, BrandFee>> storeTypeFeePairs = new HashSet<>();
|
| 118 |
for (BrandFee fee : brandFee) {
|
118 |
for (BrandFee fee : brandFee) {
|
| 119 |
for (StoreType storeType : StoreType.values()) {
|
119 |
for (StoreType storeType : StoreType.values()) {
|
| Line 228... |
Line 228... |
| 228 |
@RequestMapping("/updateOnboardingForm")
|
228 |
@RequestMapping("/updateOnboardingForm")
|
| 229 |
public String UpdateLoiForm(HttpServletRequest request,
|
229 |
public String UpdateLoiForm(HttpServletRequest request,
|
| 230 |
@RequestParam int loiId,
|
230 |
@RequestParam int loiId,
|
| 231 |
Model model) throws ProfitMandiBusinessException {
|
231 |
Model model) throws ProfitMandiBusinessException {
|
| 232 |
LoiForm loiForm = loiFormRepository.selectById(loiId);
|
232 |
LoiForm loiForm = loiFormRepository.selectById(loiId);
|
| 233 |
List<AuthUser> salesAuthList = loiFormService.getSalesAuthList();
|
233 |
List<AuthUser> salesAuthList = loiFormService.getReferalAuthList();
|
| 234 |
List<BrandFee> brandFee = brandFeeRepository.selectFeeOnDate(LocalDateTime.now());
|
234 |
List<BrandFee> brandFee = brandFeeRepository.selectFeeOnDate(LocalDateTime.now());
|
| 235 |
Set<Pair<StoreType, BrandFee>> storeTypeFeePairs = new HashSet<>();
|
235 |
Set<Pair<StoreType, BrandFee>> storeTypeFeePairs = new HashSet<>();
|
| 236 |
for (BrandFee fee : brandFee) {
|
236 |
for (BrandFee fee : brandFee) {
|
| 237 |
for (StoreType storeType : StoreType.values()) {
|
237 |
for (StoreType storeType : StoreType.values()) {
|
| 238 |
storeTypeFeePairs.add(Pair.of(storeType, fee));
|
238 |
storeTypeFeePairs.add(Pair.of(storeType, fee));
|