| Line 74... |
Line 74... |
| 74 |
public class SchemeController {
|
74 |
public class SchemeController {
|
| 75 |
// LED TV
|
75 |
// LED TV
|
| 76 |
private static final List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.MOBILE_CATEGORY_ID,
|
76 |
private static final List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.MOBILE_CATEGORY_ID,
|
| 77 |
ProfitMandiConstants.TABLET_CATEGORY_ID, 14202);
|
77 |
ProfitMandiConstants.TABLET_CATEGORY_ID, 14202);
|
| 78 |
|
78 |
|
| 79 |
private static List<SchemeType> EXCLUDE_EXTEND_SCHEMES = Arrays.asList(SchemeType.SELLOUT, SchemeType.ACTIVATION, SchemeType.SPECIAL_SUPPORT);
|
79 |
private static List<SchemeType> EXCLUDE_EXTEND_SCHEMES = Arrays.asList(SchemeType.SELLOUT, SchemeType.SPECIAL_SUPPORT, SchemeType.SELLIN);
|
| 80 |
|
80 |
|
| 81 |
private static final Logger LOGGER = LogManager.getLogger(SchemeController.class);
|
81 |
private static final Logger LOGGER = LogManager.getLogger(SchemeController.class);
|
| 82 |
@Autowired
|
82 |
@Autowired
|
| 83 |
WalletService walletService;
|
83 |
WalletService walletService;
|
| 84 |
@Autowired
|
84 |
@Autowired
|
| Line 505... |
Line 505... |
| 505 |
|
505 |
|
| 506 |
boolean fullAccesss = this.getAccess(loginDetails.getEmailId());
|
506 |
boolean fullAccesss = this.getAccess(loginDetails.getEmailId());
|
| 507 |
|
507 |
|
| 508 |
List<Region> regionList = regionRepository.selectAll();
|
508 |
List<Region> regionList = regionRepository.selectAll();
|
| 509 |
|
509 |
|
| - |
|
510 |
List<SchemeType> schemeTypes = fullAccesss ? Arrays.stream(SchemeType.values()).collect(Collectors.toList()) : SchemeType.RESTRICTED_SCHEMES_TYPES;
|
| 510 |
model.addAttribute("fullAccesss", fullAccesss);
|
511 |
model.addAttribute("schemeTypes", schemeTypes);
|
| 511 |
model.addAttribute("regionList", regionList);
|
512 |
model.addAttribute("regionList", regionList);
|
| 512 |
|
513 |
|
| 513 |
model.addAttribute("categories", categories);
|
514 |
model.addAttribute("categories", categories);
|
| 514 |
model.addAttribute("retailerTypes", PartnerType.values());
|
515 |
model.addAttribute("retailerTypes", PartnerType.values());
|
| 515 |
return "create-scheme";
|
516 |
return "create-scheme";
|