Subversion Repositories SmartDukaan

Rev

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

Rev 33157 Rev 33165
Line 59... Line 59...
59
import javax.persistence.criteria.Predicate;
59
import javax.persistence.criteria.Predicate;
60
import javax.persistence.criteria.Root;
60
import javax.persistence.criteria.Root;
61
import java.text.MessageFormat;
61
import java.text.MessageFormat;
62
import java.time.LocalDate;
62
import java.time.LocalDate;
63
import java.time.LocalDateTime;
63
import java.time.LocalDateTime;
-
 
64
import java.time.LocalTime;
64
import java.time.YearMonth;
65
import java.time.YearMonth;
65
import java.util.*;
66
import java.util.*;
66
import java.util.stream.Collectors;
67
import java.util.stream.Collectors;
67
 
68
 
68
@Component
69
@Component
Line 1112... Line 1113...
1112
 
1113
 
1113
 
1114
 
1114
    @Override
1115
    @Override
1115
    @Cacheable(value = "staticscheme", cacheManager = "oneDayCacheManager")
1116
    @Cacheable(value = "staticscheme", cacheManager = "oneDayCacheManager")
1116
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
1117
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
1117
        return null;
-
 
1118
        /*FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1118
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1119
        Scheme scheme = null;
1119
        Scheme scheme = null;
1120
        if (fofoStore.getTarget() > 0) {
1120
        if (fofoStore.getTarget() > 0) {
1121
            scheme = new Scheme();
1121
            scheme = new Scheme();
1122
            scheme.setName("Super Retailer Club");
1122
            scheme.setName("Super Retailer Club");
1123
            scheme.setStartDateTime(LocalDate.of(2023, 7, 1).atStartOfDay());
1123
            scheme.setStartDateTime(LocalDate.of(2024, 2, 1).atStartOfDay());
1124
            scheme.setEndDateTime(LocalDate.of(2023, 11, 30).atTime(LocalTime.MAX));
1124
            scheme.setEndDateTime(LocalDate.of(2024, 6, 30).atTime(LocalTime.MAX));
1125
            scheme.setTarget(fofoStore.getTarget());
1125
            scheme.setTarget(fofoStore.getTarget());
1126
        }
1126
        }
1127
        return scheme;*/
1127
        return scheme;
1128
    }
1128
    }
1129
 
1129
 
1130
    @Override
1130
    @Override
1131
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,
1131
    public List<Scheme> selectSchemeByPartnerType(PartnerType partnerType, LocalDate onDate, int catalogId,
1132
                                                  boolean isAdmin, int offset, int limit) throws ProfitMandiBusinessException {
1132
                                                  boolean isAdmin, int offset, int limit) throws ProfitMandiBusinessException {