| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.yeshi.utils.HttpUtil;
|
| | |
|
| | |
| | | CommonContentTypeEnum[] types = CommonContentTypeEnum.values();
|
| | | for (int p = 1; p < 3; p++) {
|
| | | for (CommonContentTypeEnum type : types) {
|
| | | List<CommonContentNav> navList = commonTemplateContentService.getNavList(type);
|
| | | List<CommonContentNav> navList = commonTemplateContentService.getNavList(type,SystemEnum.blks);
|
| | | if (navList != null && navList.size() > 0)
|
| | | for (CommonContentNav nav : navList) {
|
| | | commonTemplateContentService.getContentList(type, nav.getCid(), p, 50);
|
| | | commonTemplateContentService.getContentList(type, nav.getCid(), p, 50, SystemEnum.blks);
|
| | | }
|
| | | else {
|
| | | commonTemplateContentService.getContentList(type, null, p, 50);
|
| | | commonTemplateContentService.getContentList(type, null, p, 50, SystemEnum.blks);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | // 触发品牌商品列表
|
| | | public void requestBrandGoods() {
|
| | | List<BrandClass> list = brandClassService.listBrandClassEffectiveCache();
|
| | | List<BrandClass> list = brandClassService.listBrandClassEffectiveCache(null);
|
| | | list.add(new BrandClass(0L));
|
| | | list.addAll(list);
|
| | | for (int p = 1; p < 5; p++) {
|