Subversion Repositories SmartDukaan

Rev

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

Rev 30136 Rev 30156
Line 540... Line 540...
540
		for (int i = 0; i < docs.length(); i++) {
540
		for (int i = 0; i < docs.length(); i++) {
541
			Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();
541
			Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();
542
			JSONObject doc = docs.getJSONObject(i);
542
			JSONObject doc = docs.getJSONObject(i);
543
			catalogIds.add(doc.getInt("catalogId_i"));
543
			catalogIds.add(doc.getInt("catalogId_i"));
544
		}
544
		}
545
		PriceCircularModel priceCircularModel = priceCircularService.getPriceCircularByOffer(fofoId, catalogIds);
-
 
546
 
-
 
547
		List<PriceCircularItemModel> priceCircularItemModels = priceCircularModel.getPriceCircularItemModels();
-
 
548
		Map<Integer, PriceCircularItemModel> priceCircularItemModelMap = new HashMap<>();
545
		Map<Integer, PriceCircularItemModel> priceCircularItemModelMap = new HashMap<>();
-
 
546
		if (catalogIds.size() > 0) {
-
 
547
			PriceCircularModel priceCircularModel = priceCircularService.getPriceCircularByOffer(fofoId, catalogIds);
-
 
548
 
-
 
549
			List<PriceCircularItemModel> priceCircularItemModels = priceCircularModel.getPriceCircularItemModels();
549
		if (priceCircularItemModels != null) {
550
			if (priceCircularItemModels != null) {
550
			priceCircularItemModelMap = priceCircularItemModels.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> x));
551
				priceCircularItemModelMap = priceCircularItemModels.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> x));
-
 
552
			}
551
		}
553
		}
552
		for (int i = 0; i < docs.length(); i++) {
554
		for (int i = 0; i < docs.length(); i++) {
553
			Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();
555
			Map<Integer, FofoAvailabilityInfo> fofoAvailabilityInfoMap = new HashMap<>();
554
			JSONObject doc = docs.getJSONObject(i);
556
			JSONObject doc = docs.getJSONObject(i);
555
			FofoCatalogResponse ffdr = new FofoCatalogResponse();
557
			FofoCatalogResponse ffdr = new FofoCatalogResponse();