Subversion Repositories SmartDukaan

Rev

Rev 33715 | Rev 33719 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33715 Rev 33717
Line 3... Line 3...
3
 
3
 
4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
5
import com.spice.profitmandi.common.model.CustomAddress;
5
import com.spice.profitmandi.common.model.CustomAddress;
6
import com.spice.profitmandi.common.model.CustomPaymentOption;
6
import com.spice.profitmandi.common.model.CustomPaymentOption;
7
import com.spice.profitmandi.common.model.InsuranceModel;
7
import com.spice.profitmandi.common.model.InsuranceModel;
-
 
8
import com.spice.profitmandi.common.model.ProfitMandiConstants;
8
import com.spice.profitmandi.common.web.util.ResponseSender;
9
import com.spice.profitmandi.common.web.util.ResponseSender;
9
import com.spice.profitmandi.dao.entity.auth.AuthUser;
10
import com.spice.profitmandi.dao.entity.auth.AuthUser;
10
import com.spice.profitmandi.dao.entity.catalog.Item;
11
import com.spice.profitmandi.dao.entity.catalog.Item;
11
import com.spice.profitmandi.dao.entity.dtr.InsurancePolicy;
12
import com.spice.profitmandi.dao.entity.dtr.InsurancePolicy;
12
import com.spice.profitmandi.dao.entity.dtr.PaymentOptionTransaction;
13
import com.spice.profitmandi.dao.entity.dtr.PaymentOptionTransaction;
Line 142... Line 143...
142
 
143
 
143
    @RequestMapping(value = "/fetchMobileNumberForUpSale", method = RequestMethod.GET)
144
    @RequestMapping(value = "/fetchMobileNumberForUpSale", method = RequestMethod.GET)
144
    public String fetchMobileNumberForUpSale(HttpServletRequest request, Model model) throws Exception {
145
    public String fetchMobileNumberForUpSale(HttpServletRequest request, Model model) throws Exception {
145
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
146
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
146
        AuthUser user = authRepository.selectByEmailOrMobile(loginDetails.getEmailId());
147
        AuthUser user = authRepository.selectByEmailOrMobile(loginDetails.getEmailId());
147
        boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
-
 
148
 
148
 
-
 
149
        Map<String, Set<Integer>> pp = csService.getAuthUserPartnerIdMappingByCategoryIds(Arrays.asList(ProfitMandiConstants.UPSELLING), true);
-
 
150
        LOGGER.info("pp pp - {}", pp);
149
        Map<Integer, List<Integer>> pp = csService.getAuthUserIdPartnerIdMapping();
151
        Set<Integer> fofoIds = new HashSet<>(pp.get(user.getEmailId()));
150
 
152
 
151
        Set<Integer> fofoIds = new HashSet<>(pp.get(user.getId()));
153
        LOGGER.info("fofoIds- {}", fofoIds);
152
 
154
 
153
 
155
 
154
        LocalDate currentYearJune21 = LocalDate.of(LocalDate.now().getYear(), Month.JUNE, 21);
156
        LocalDate currentYearJune21 = LocalDate.of(LocalDate.now().getYear(), Month.JUNE, 21);
155
        LocalDateTime startDate = currentYearJune21.atStartOfDay();
157
        LocalDateTime startDate = currentYearJune21.atStartOfDay();
156
        LocalDateTime endDate = LocalDateTime.now();
158
        LocalDateTime endDate = LocalDateTime.now();