Subversion Repositories SmartDukaan

Rev

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

Rev 30100 Rev 30219
Line 894... Line 894...
894
			try {
894
			try {
895
				FofoStore fs = fofoStoreRepository.selectByRetailerId(address.getRetaierId());
895
				FofoStore fs = fofoStoreRepository.selectByRetailerId(address.getRetaierId());
896
				customRetailer.setCode(fs.getCode());
896
				customRetailer.setCode(fs.getCode());
897
				customRetailer.setWarehouseId(fs.getWarehouseId());
897
				customRetailer.setWarehouseId(fs.getWarehouseId());
898
				customRetailer.setPartnerId(fs.getId());
898
				customRetailer.setPartnerId(fs.getId());
899
//				customRetailer.setFofoType(fs.getFofoType());
899
				customRetailer.setFofoType(fs.getFofoType());
900
			} catch (Exception e) {
900
			} catch (Exception e) {
901
				continue;
901
				continue;
902
			}
902
			}
903
			try {
903
			try {
904
				customRetailer.setCartId(user.getActiveCartId());
904
				customRetailer.setCartId(user.getActiveCartId());
Line 1240... Line 1240...
1240
			}
1240
			}
1241
		}
1241
		}
1242
		return sb.toString();
1242
		return sb.toString();
1243
	}
1243
	}
1244
 
1244
 
1245
	/*
1245
	@Override
1246
	 * @Override public Map<Integer, CustomRetailer>
-
 
1247
	 * getFofoRetailersPaginated(boolean activeOnly, int offset, int limit, FofoType
1246
	public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
1248
	 * fofoType) { Stream<FofoStore> storeStream =
1247
			FofoType fofoType) {
-
 
1248
 
1249
	 * fofoStoreRepository.selectAll(offset, limit).stream(); if (activeOnly) {
1249
		Stream<FofoStore> storeStream = fofoStoreRepository.selectByStatusFofoType(activeOnly, fofoType, offset, limit)
1250
	 * storeStream = storeStream.filter(x -> x.isActive()); }
1250
				.stream();
1251
	 * 
1251
 
1252
	 * storeStream = storeStream.filter(x -> x.getFofoType().equals(fofoType));
1252
		List<Integer> storeIds = storeStream.map(x -> x.getId()).collect(Collectors.toList());
1253
	 * List<Integer> storeIds = storeStream.map(x ->
-
 
1254
	 * x.getId()).collect(Collectors.toList()); return
-
 
1255
	 * this.getFofoRetailers(storeIds); }
1253
		return this.getFofoRetailers(storeIds);
1256
	 */
1254
	}
1257
 
1255
 
1258
}
1256
}