Subversion Repositories SmartDukaan

Rev

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

Rev 32602 Rev 32930
Line 1106... Line 1106...
1106
 
1106
 
1107
 
1107
 
1108
    @Override
1108
    @Override
1109
    @Cacheable(value = "staticscheme", cacheManager = "oneDayCacheManager")
1109
    @Cacheable(value = "staticscheme", cacheManager = "oneDayCacheManager")
1110
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
1110
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
-
 
1111
        return null;
1111
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1112
        /*FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1112
        Scheme scheme = null;
1113
        Scheme scheme = null;
1113
        if (fofoStore.getTarget() > 0) {
1114
        if (fofoStore.getTarget() > 0) {
1114
            scheme = new Scheme();
1115
            scheme = new Scheme();
1115
            scheme.setName("Super Retailer Club");
1116
            scheme.setName("Super Retailer Club");
1116
            scheme.setStartDateTime(LocalDate.of(2023, 7, 1).atStartOfDay());
1117
            scheme.setStartDateTime(LocalDate.of(2023, 7, 1).atStartOfDay());
1117
            scheme.setEndDateTime(LocalDate.of(2023, 11, 30).atTime(LocalTime.MAX));
1118
            scheme.setEndDateTime(LocalDate.of(2023, 11, 30).atTime(LocalTime.MAX));
1118
            scheme.setTarget(fofoStore.getTarget());
1119
            scheme.setTarget(fofoStore.getTarget());
1119
        }
1120
        }
1120
        return scheme;
1121
        return scheme;*/
1121
    }
1122
    }
1122
 
1123
 
1123
    @Override
1124
    @Override
1124
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,
1125
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,
1125
                                                  boolean isAdmin, int offset, int limit) throws ProfitMandiBusinessException {
1126
                                                  boolean isAdmin, int offset, int limit) throws ProfitMandiBusinessException {