Subversion Repositories SmartDukaan

Rev

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

Rev 32454 Rev 32504
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
        Scheme scheme = new Scheme();
-
 
1112
        scheme.setName("Super Retailer Club");
-
 
1113
        scheme.setStartDateTime(LocalDate.of(2023, 7, 1).atStartOfDay());
-
 
1114
        scheme.setEndDateTime(LocalDate.of(2023, 11, 30).atTime(LocalTime.MAX));
-
 
1115
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1111
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
-
 
1112
        Scheme scheme = null;
-
 
1113
        if (fofoStore.getTarget() > 0) {
-
 
1114
            scheme = new Scheme();
-
 
1115
            scheme.setName("Super Retailer Club");
-
 
1116
            scheme.setStartDateTime(LocalDate.of(2023, 7, 1).atStartOfDay());
-
 
1117
            scheme.setEndDateTime(LocalDate.of(2023, 11, 30).atTime(LocalTime.MAX));
1116
        scheme.setTarget(fofoStore.getTarget());
1118
            scheme.setTarget(fofoStore.getTarget());
-
 
1119
        }
1117
        return scheme;
1120
        return scheme;
1118
    }
1121
    }
1119
 
1122
 
1120
    @Override
1123
    @Override
1121
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,
1124
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,