| Line 20... |
Line 20... |
| 20 |
import com.spice.profitmandi.dao.repository.catalog.BrandsRepository;
|
20 |
import com.spice.profitmandi.dao.repository.catalog.BrandsRepository;
|
| 21 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
21 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| 22 |
import com.spice.profitmandi.dao.repository.dtr.DistrictMasterRepository;
|
22 |
import com.spice.profitmandi.dao.repository.dtr.DistrictMasterRepository;
|
| 23 |
import com.spice.profitmandi.dao.repository.dtr.DocumentRepository;
|
23 |
import com.spice.profitmandi.dao.repository.dtr.DocumentRepository;
|
| 24 |
import com.spice.profitmandi.dao.repository.dtr.OtpRepository;
|
24 |
import com.spice.profitmandi.dao.repository.dtr.OtpRepository;
|
| - |
|
25 |
import com.spice.profitmandi.dao.repository.dtr.PartnerOnBoardingPanelRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.inventory.PartnerOnboardingService;
|
26 |
import com.spice.profitmandi.dao.repository.inventory.PartnerOnboardingService;
|
| 26 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
27 |
import com.spice.profitmandi.dao.repository.inventory.StateRepository;
|
| 27 |
import com.spice.profitmandi.dao.repository.onboarding.BrandCommitRepository;
|
28 |
import com.spice.profitmandi.dao.repository.onboarding.BrandCommitRepository;
|
| 28 |
import com.spice.profitmandi.dao.repository.onboarding.LoiBrandCommitmentRepository;
|
29 |
import com.spice.profitmandi.dao.repository.onboarding.LoiBrandCommitmentRepository;
|
| 29 |
import com.spice.profitmandi.dao.repository.onboarding.LoiDocMasterRepository;
|
30 |
import com.spice.profitmandi.dao.repository.onboarding.LoiDocMasterRepository;
|
| Line 116... |
Line 117... |
| 116 |
BrandCategoryRepository brandCategoryRepository;
|
117 |
BrandCategoryRepository brandCategoryRepository;
|
| 117 |
@Autowired
|
118 |
@Autowired
|
| 118 |
BillingAddressRepository billingAddressRepository;
|
119 |
BillingAddressRepository billingAddressRepository;
|
| 119 |
@Autowired
|
120 |
@Autowired
|
| 120 |
LoiBrandCommitmentRepository brandCommitmentRepository;
|
121 |
LoiBrandCommitmentRepository brandCommitmentRepository;
|
| - |
|
122 |
@Autowired
|
| - |
|
123 |
PartnerOnBoardingPanelRepository partnerOnBoardingPanelRepository;
|
| - |
|
124 |
|
| 121 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("sm@smartdukaan.com");
|
125 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("sm@smartdukaan.com");
|
| 122 |
|
126 |
|
| 123 |
// OnBoarding Form
|
127 |
// OnBoarding Form
|
| 124 |
@RequestMapping(value = "/onboardingForm", method = RequestMethod.GET)
|
128 |
@RequestMapping(value = "/onboardingForm", method = RequestMethod.GET)
|
| 125 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
129 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| Line 232... |
Line 236... |
| 232 |
int loiDoc = loiForm.getLoiDoc();
|
236 |
int loiDoc = loiForm.getLoiDoc();
|
| 233 |
if (loiDoc == 0) {
|
237 |
if (loiDoc == 0) {
|
| 234 |
loiForm.setLoiDoc(loiDocId);
|
238 |
loiForm.setLoiDoc(loiDocId);
|
| 235 |
loiFormService.sendSignedLoiPdfToPartner(loiForm);
|
239 |
loiFormService.sendSignedLoiPdfToPartner(loiForm);
|
| 236 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
240 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
| 237 |
return "response";
|
- |
|
| 238 |
} else {
|
241 |
} else {
|
| 239 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
242 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
| 240 |
return "response";
|
- |
|
| 241 |
}
|
243 |
}
|
| - |
|
244 |
if (loiForm.getOnBoardingId() > 0) {
|
| - |
|
245 |
partnerOnBoardingPanelRepository.selectById(loiForm.getOnBoardingId()).setLOI(loiDocId);
|
| - |
|
246 |
}
|
| - |
|
247 |
return "response";
|
| 242 |
|
248 |
|
| 243 |
}
|
249 |
}
|
| 244 |
|
250 |
|
| 245 |
// send Filled form for update purpose
|
251 |
// send Filled form for update purpose
|
| 246 |
@RequestMapping(value = "/updateLoiForm", method = RequestMethod.GET)
|
252 |
@RequestMapping(value = "/updateLoiForm", method = RequestMethod.GET)
|