| | |
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import com.yeshi.fanli.entity.SystemFunction;
|
| | | import com.yeshi.fanli.util.SystemInfoUtil;
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | |
| | | @Resource
|
| | | private TaoBaoGoodsUpdateService taoBaoGoodsUpdateService;
|
| | |
|
| | | private static List<CommonContentNav> getCommonNav() {
|
| | | private static List<CommonContentNav> getCommonNav(SystemEnum system) {
|
| | | List<CommonContentNav> navList = new ArrayList<>();
|
| | | navList.add(new CommonContentNav("1", "综合"));
|
| | | navList.add(new CommonContentNav("2", "最新"));
|
| | | navList.add(new CommonContentNav("3", "热卖"));
|
| | | navList.add(new CommonContentNav("4", "销量"));
|
| | | if (SystemInfoUtil.hasFunctions(system, SystemFunction.fanli))
|
| | | navList.add(new CommonContentNav("5", "返利比"));
|
| | | return navList;
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public List<CommonContentNav> getNavList(CommonContentTypeEnum type) {
|
| | | public List<CommonContentNav> getNavList(CommonContentTypeEnum type,SystemEnum system) {
|
| | | List<CommonContentNav> navList = new ArrayList<>();
|
| | | if (type == CommonContentTypeEnum._9k9) {
|
| | | navList.add(new CommonContentNav("-1", "综合"));
|
| | |
| | | navList.add(new CommonContentNav("5", "30-50元券"));
|
| | | navList.add(new CommonContentNav("6", "50元以上券"));
|
| | | } else if (type == CommonContentTypeEnum.juJia) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.meiShi) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.muYin) {
|
| | | navList.add(new CommonContentNav("1", "精选"));
|
| | | navList.add(new CommonContentNav("备孕", "备孕"));
|
| | |
| | | navList.add(new CommonContentNav("4至6岁", "4~6岁"));
|
| | | navList.add(new CommonContentNav("7至12岁", "7~12岁"));
|
| | | } else if (type == CommonContentTypeEnum.reMai) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.chuanYiDaPei) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.meiZhuangGehu) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.jingPinXieBao) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.chaoNanReMai) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.shuMaShouJi) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.yunDongKuXie) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.qiCheHuWai) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.chaoPinReMai) {
|
| | | navList = getCommonNav();
|
| | | navList = getCommonNav(system);
|
| | | } else if (type == CommonContentTypeEnum.mianDan) {
|
| | | navList = new ArrayList<>();
|
| | | }
|