admin
2020-07-29 c338aa60df58bee9f4c25afedf94fe6930a119c1
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java
@@ -10,6 +10,8 @@
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;
@@ -58,12 +60,13 @@
   @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;
   }
@@ -85,7 +88,7 @@
   }
   @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", "综合"));
@@ -107,9 +110,9 @@
         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("备孕", "备孕"));
@@ -119,23 +122,23 @@
         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<>();
      }