| Line 29... |
Line 29... |
| 29 |
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
|
29 |
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
|
| 30 |
import com.spice.profitmandi.dao.repository.catalog.CategoryRepository;
|
30 |
import com.spice.profitmandi.dao.repository.catalog.CategoryRepository;
|
| 31 |
import com.spice.profitmandi.dao.repository.catalog.FocusedModelRepository;
|
31 |
import com.spice.profitmandi.dao.repository.catalog.FocusedModelRepository;
|
| 32 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
32 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 33 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
33 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 34 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
34 |
import com.spice.profitmandi.dao.repository.cs.*;
|
| 35 |
import com.spice.profitmandi.dao.repository.cs.PartnerRegionRepository;
|
- |
|
| 36 |
import com.spice.profitmandi.dao.repository.cs.PositionRepository;
|
- |
|
| 37 |
import com.spice.profitmandi.dao.repository.cs.RegionRepository;
|
- |
|
| 38 |
import com.spice.profitmandi.dao.repository.dtr.BrandLimitRepository;
|
35 |
import com.spice.profitmandi.dao.repository.dtr.BrandLimitRepository;
|
| 39 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
36 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 40 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
37 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
| 41 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
38 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 42 |
import com.spice.profitmandi.dao.repository.fofo.*;
|
39 |
import com.spice.profitmandi.dao.repository.fofo.*;
|
| Line 189... |
Line 186... |
| 189 |
|
186 |
|
| 190 |
@Autowired
|
187 |
@Autowired
|
| 191 |
private InventoryService inventoryService;
|
188 |
private InventoryService inventoryService;
|
| 192 |
|
189 |
|
| 193 |
@Autowired
|
190 |
@Autowired
|
| - |
|
191 |
private CsService1 csService1;
|
| - |
|
192 |
|
| - |
|
193 |
@Autowired
|
| 194 |
private CsService csService;
|
194 |
private CsService csService;
|
| 195 |
|
195 |
|
| 196 |
@Autowired
|
196 |
@Autowired
|
| 197 |
private AuthRepository authRepository;
|
197 |
private AuthRepository authRepository;
|
| 198 |
@Autowired
|
198 |
@Autowired
|
| Line 1693... |
Line 1693... |
| 1693 |
private CategoryRepository categoryRepository;
|
1693 |
private CategoryRepository categoryRepository;
|
| 1694 |
|
1694 |
|
| 1695 |
@Autowired
|
1695 |
@Autowired
|
| 1696 |
private BrandLimitRepository brandLimitRepository;
|
1696 |
private BrandLimitRepository brandLimitRepository;
|
| 1697 |
|
1697 |
|
| - |
|
1698 |
@Autowired
|
| - |
|
1699 |
//This is alternate proxy to auth to enable Spring Caching
|
| - |
|
1700 |
private CsService1 authService1;
|
| - |
|
1701 |
|
| 1698 |
private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING,
|
1702 |
private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING,
|
| 1699 |
OrderStatus.ACCEPTED);
|
1703 |
OrderStatus.ACCEPTED);
|
| 1700 |
|
1704 |
|
| 1701 |
public static final Map<String, Double> Brand_Amount_Limit = new HashMap<>();
|
1705 |
public static final Map<String, Double> Brand_Amount_Limit = new HashMap<>();
|
| 1702 |
|
1706 |
|
| Line 1714... |
Line 1718... |
| 1714 |
|
1718 |
|
| 1715 |
List<String> brands = Arrays.asList("Vivo", "Samsung", "Oppo", "Tecno", "Itel", "OnePlus", "Lava", "Realme",
|
1719 |
List<String> brands = Arrays.asList("Vivo", "Samsung", "Oppo", "Tecno", "Itel", "OnePlus", "Lava", "Realme",
|
| 1716 |
"Xiaomi", "Nokia");
|
1720 |
"Xiaomi", "Nokia");
|
| 1717 |
|
1721 |
|
| 1718 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
1722 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
| 1719 |
Set<Integer> fofoIds = csService.getAuthFofoIds(email, true);
|
1723 |
Set<Integer> fofoIds = csService1.getAuthFofoIds(email, true);
|
| 1720 |
|
1724 |
|
| 1721 |
Map<Integer, PartnerDailyInvestment> partnerDailyInvestmentMap = new HashMap<>();
|
1725 |
Map<Integer, PartnerDailyInvestment> partnerDailyInvestmentMap = new HashMap<>();
|
| 1722 |
|
1726 |
|
| 1723 |
Map<Integer, Map<String, Double>> fofoIdBrandAmountMap = new HashMap<>();
|
1727 |
Map<Integer, Map<String, Double>> fofoIdBrandAmountMap = new HashMap<>();
|
| 1724 |
|
1728 |
|