| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "brandCache", key = "'listEffectiveCache-'+#page+'-'+#cid")
|
| | | public JSONObject listEffectiveCache(int page, Long cid) {
|
| | | @Cacheable(value = "brandCache", key = "'listEffectiveCache-'+#page+'-'+#cid+'-'+#system")
|
| | | public JSONObject listEffectiveCache(int page, Long cid,SystemEnum system) {
|
| | | long countShop = 0;
|
| | |
|
| | | if (cid != null && cid <= 0) {
|
| | |
| | | List<TaoBaoShop> listShop = new ArrayList<TaoBaoShop>();
|
| | | // 第一页 查询全部分类下店铺
|
| | | if (page == 1 && cid != null) {
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid);
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid,system);
|
| | | if (list == null) {
|
| | | list = new ArrayList<BrandClassShop>();
|
| | | } else if (list.size() > 0) {
|
| | |
| | | // 淘宝商品信息过滤
|
| | | Map<Long, TaoBaoGoodsBrief> goodsMap = getFilterTaoBaoGoods(listInfo);
|
| | |
|
| | | BigDecimal proportion = hongBaoManageService.getFanLiRate();
|
| | | BigDecimal proportion = hongBaoManageService.getFanLiRate(system);
|
| | | for (TaoBaoShopVO taoBaoShopVO : listInfo) {
|
| | |
|
| | | String shopLink = taoBaoShopVO.getShopLink();
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "brandCache", key = "'listEffectiveCacheV2-'+#page+'-'+#cid+'-'+#platform+'-'+#version")
|
| | | public JSONObject listEffectiveCacheV2(int page, Long cid,String platform,String version) {
|
| | | @Cacheable(value = "brandCache", key = "'listEffectiveCacheV2-'+#page+'-'+#cid+'-'+#platform+'-'+#version+'-'+#system")
|
| | | public JSONObject listEffectiveCacheV2(int page, Long cid,String platform,String version,SystemEnum system) {
|
| | | long countShop = 0;
|
| | |
|
| | | if (cid != null && cid <= 0) {
|
| | |
| | | List<TaoBaoShop> listShop = new ArrayList<TaoBaoShop>();
|
| | | // 第一页 查询全部分类下店铺
|
| | | if (page == 1 && cid != null) {
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid);
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid,system);
|
| | | if (list == null) {
|
| | | list = new ArrayList<BrandClassShop>();
|
| | | } else if (list.size() > 0) {
|
| | |
| | | count = taoBaoShopService.countBrandShopinfo(cid);
|
| | | }
|
| | |
|
| | | ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(platform, version);
|
| | | ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(platform, version,system);
|
| | |
|
| | | // 淘宝商品信息过滤
|
| | | Map<Long, TaoBaoGoodsBrief> goodsMap = getFilterTaoBaoGoods(listInfo);
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid,String platform,String version) {
|
| | | public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid,String platform,String version,SystemEnum system) {
|
| | | if (cid != null && cid <= 0) {
|
| | | cid = null;
|
| | | }
|
| | |
| | |
|
| | |
|
| | | ConfigParamsDTO paramsDTO =
|
| | | orderHongBaoMoneyComputeService.getShowComputeRate(platform, version);
|
| | | orderHongBaoMoneyComputeService.getShowComputeRate(platform, version,system);
|
| | | // 淘宝商品信息过滤
|
| | | Map<Long, TaoBaoGoodsBrief> goodsMap = getFilterTaoBaoGoods(listInfo);
|
| | |
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public List<TaoBaoShop> listEffectiveClassShop(Long cid) {
|
| | | public List<TaoBaoShop> listEffectiveClassShop(Long cid, SystemEnum system) {
|
| | | if (cid == null)
|
| | | return null;
|
| | |
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid);
|
| | | List<BrandClassShop> list = brandClassShopMapper.listEffective(cid,system);
|
| | | if (list == null || list.size() == 0)
|
| | | return null;
|
| | |
|