Browse Source

信息中心V1.3.9

kaick 1 year ago
parent
commit
099fc93c34

+ 13 - 3
src/main/java/com/caimei/www/controller/unlimited/ArticleController.java

@@ -2,10 +2,11 @@ package com.caimei.www.controller.unlimited;
 
 import com.caimei.www.controller.BaseController;
 import com.caimei.www.pojo.JsonModel;
-import com.caimei.www.pojo.page.Article;
-import com.caimei.www.pojo.page.BaseLink;
-import com.caimei.www.pojo.page.ImageLink;
+import com.caimei.www.pojo.link.CmBrandLandingVO;
+import com.caimei.www.pojo.page.*;
 import com.caimei.www.service.page.ArticleService;
+import com.caimei.www.service.page.CmBrandLandingService;
+import com.caimei.www.service.page.ProductService;
 import com.github.pagehelper.PageInfo;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -40,6 +41,10 @@ public class ArticleController extends BaseController {
     private static final String ARTICLE_DETAIL_PATH = "article/detail";
     private static final String ARTICLE_RECOMMENDATION = "article/recommendation";
     private ArticleService articleService;
+    @Autowired
+    private CmBrandLandingService cmBrandLandingService;
+    @Autowired
+    private ProductService productService;
 
     @Autowired
     public void setArticleService(ArticleService articleService) {
@@ -52,11 +57,16 @@ public class ArticleController extends BaseController {
     @GetMapping("/info/center-{id}-{pageNum}.html")
     public String toArticleList(@PathVariable("id") Integer id, @PathVariable("pageNum") Integer pageNum, final Model model) {
         List<BaseLink> typeList = articleService.getArticleTypes();
+        List<CmBrandLandingVO> cmBrandLandingList = cmBrandLandingService.getCmBrandLandingList(new CmBrandLanding()
+                .setType("4").setAuthorId(id.toString()));
+        List<ProductList> productSellNumbers = productService.getProductSellNumbers();
         List<BaseLink> data = articleService.getArticleLabels().getData();
         List<ImageLink> Ads = articleService.getLastestInfoAds().getData();
         model.addAttribute("ads", Ads);
         model.addAttribute("labels", data);
         model.addAttribute("articleType", typeList);
+        model.addAttribute("articleImages", cmBrandLandingList);
+        model.addAttribute("productSellNumbers", productSellNumbers);
         model.addAttribute("typeId", id);
         model.addAttribute("labelId", 0);
         model.addAttribute("pageNum", pageNum);

+ 1 - 1
src/main/java/com/caimei/www/mapper/ArticleDao.java

@@ -22,7 +22,7 @@ public interface ArticleDao {
      *
      * @return
      */
-    List<BaseLink> getArticleTypes();
+    List<BaseLink> getArticleTypes(String parentId);
 
     /**
      * 获取最高点击量

+ 113 - 0
src/main/java/com/caimei/www/mapper/CmBrandLandingMapper.java

@@ -0,0 +1,113 @@
+package com.caimei.www.mapper;
+
+import java.util.List;
+
+import com.caimei.www.pojo.page.CmBrandLanding;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 供应商落地页资源Mapper接口
+ *
+ * @author Kaick
+ * @date 2023-08-08
+ */
+@Mapper
+public interface CmBrandLandingMapper
+{
+    /**
+     * 通过对象查询供应商落地页资源列表
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源集合
+     */
+    public List<CmBrandLandingVO> getCmBrandLandingList(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过Id查询供应商落地页资源对象
+     *
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding getCmBrandLandingById(String id);
+
+    /**
+     * 通过对象查询供应商落地页资源对象
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding getByCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源Id
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return String
+     */
+    public String getById(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源Ids
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return List<String>
+     */
+    public List<String> getByIds(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源记录总数
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源Integer
+     */
+    public int getCmBrandLandingCount(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 新增供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int addCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 修改供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 删除供应商落地页资源
+     *
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    public int delCmBrandLandingById(String id);
+
+    /**
+     * 批量删除供应商落地页资源
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int delCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 批量删除供应商落地页资源
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int delCmBrandLandingByIds(@Param("ids") String[] ids);
+
+    /**
+     * 修改批量删除供应商落地页资源
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int updateDelCmBrandLandingByIds(@Param("ids") String[] ids,@Param("delFlag") Integer delFlag);
+}

+ 2 - 0
src/main/java/com/caimei/www/mapper/ProductDao.java

@@ -38,6 +38,8 @@ public interface ProductDao {
 
     List<ProductList> getAutoProductRecommends(Integer productId);
 
+    List<ProductList> getProductSellNumbers();
+
     /**
      * 详情-相关参数
      *

+ 74 - 0
src/main/java/com/caimei/www/pojo/link/CmBrandLandingVO.java

@@ -0,0 +1,74 @@
+package com.caimei.www.pojo.link;
+
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.apache.ibatis.type.Alias;
+
+import java.io.Serializable;
+
+/**
+ * 供应商落地页资源对象 cm_brand_landing VO对象
+ *
+ * @author Kaick
+ * @date 2023-08-08
+ */
+@Accessors(chain  = true )
+@Data
+@Alias("CmBrandLandingVO")
+public class CmBrandLandingVO implements Serializable
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 分类:1成功案例,2增长社区-视频列表,3增长社区-文章列表, 4信息中心导航栏(info_type) */
+    private String type;
+
+    /** 供应商id */
+    private Integer authUserId;
+
+    /** 子级分类: 信息中心导航栏(info_type):{1 大图,2小图} */
+    private String levelType;
+
+    /** 归属者Id(type字段表Id) */
+    private String authorId;
+
+    /** pc端picture */
+    private String headPcBanner;
+
+    /** 移动端picture */
+    private String headAppBanner;
+
+    /** picture跳转方式状态:0无,1图片,2链接 */
+    private Integer jumpStatus;
+
+    /** pc端picture跳转图片 */
+    private String jumpPcPicture;
+
+    /** 移动端picture跳转图片 */
+    private String jumpAppPicture;
+
+    /** picture跳转链接 */
+    private String jumpLink;
+
+    /** 标题
+     */
+    private String title;
+
+    /** 内容
+     */
+    private String content;
+
+    /** 视频文件 cm_brand_files表id */
+    private String video;
+
+    /** 排序 */
+    private Integer sort;
+
+    /** pc端status 1启用,0停用 */
+    private Integer pcStatus;
+
+    /** 移动端status 1启用,0停用 */
+    private Integer appStatus;
+}

+ 6 - 0
src/main/java/com/caimei/www/pojo/page/BaseLink.java

@@ -1,5 +1,6 @@
 package com.caimei.www.pojo.page;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
 
 import java.io.Serializable;
@@ -18,6 +19,11 @@ public class BaseLink implements Serializable {
 	private String name;
 	private String link;
 	private Double sort;
+	/** 分类: 1 信息中心导航栏 */
+	private String type;
+	/** 父级编号 */
+	private String parentId;
+
 	private List<BaseLink> linkList;
 
     private static final long serialVersionUID = 1L;

+ 91 - 0
src/main/java/com/caimei/www/pojo/page/CmBrandLanding.java

@@ -0,0 +1,91 @@
+package com.caimei.www.pojo.page;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.apache.ibatis.type.Alias;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import java.util.Date;
+
+/**
+ * 供应商落地页资源对象 cm_brand_landing
+ *
+ * @author Kaick
+ * @date 2023-08-08
+ */
+@Accessors(chain  = true )
+@Data
+@Alias("CmBrandLanding")
+public class CmBrandLanding implements Serializable
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 分类:1成功案例,2增长社区-视频列表,3增长社区-文章列表, 4信息中心导航栏(info_type) */
+    private String type;
+
+    /** 供应商id */
+    private Integer authUserId;
+
+    /** 子级分类: 信息中心导航栏(info_type):{1 大图,2小图} */
+    private String levelType;
+
+    /** 归属者Id(type字段表Id) */
+    private String authorId;
+
+    /** pc端picture */
+    private String headPcBanner;
+
+    /** 移动端picture */
+    private String headAppBanner;
+
+    /** picture跳转方式状态:0无,1图片,2链接 */
+    private Integer jumpStatus;
+
+    /** pc端picture跳转图片 */
+    private String jumpPcPicture;
+
+    /** 移动端picture跳转图片 */
+    private String jumpAppPicture;
+
+    /** picture跳转链接 */
+    private String jumpLink;
+
+    /** 标题
+ */
+    private String title;
+
+    /** 内容
+ */
+    private String content;
+
+    /** 视频文件 cm_brand_files表id */
+    private String video;
+
+    /** 排序 */
+    private Integer sort;
+
+    /** pc端status 1启用,0停用 */
+    private Integer pcStatus;
+
+    /** 移动端status 1启用,0停用 */
+    private Integer appStatus;
+
+    /** 删除状态 0正常,其他删除 */
+    private Integer delFlag;
+
+    /** 修改时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    /** 添加时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date addTime;
+
+}

+ 111 - 0
src/main/java/com/caimei/www/service/page/CmBrandLandingService.java

@@ -0,0 +1,111 @@
+package com.caimei.www.service.page;
+
+import com.caimei.www.pojo.link.CmBrandLandingVO;
+import com.caimei.www.pojo.page.CmBrandLanding;
+
+import java.util.List;
+
+/**
+ * 供应商落地页资源Service接口
+ *
+ * @author Kaick
+ * @date 2023-08-08
+ */
+public interface CmBrandLandingService
+{
+    /**
+     * 通过对象查询供应商落地页资源列表
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源集合
+     */
+    public List<CmBrandLandingVO> getCmBrandLandingList(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过Id查询供应商落地页资源
+     *
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding getCmBrandLandingById(String id);
+
+    /**
+     * 通过对象查询供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding getByCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源Id
+     *
+     * @param cmBrandLanding 供应商落地页资源主键
+     * @return String
+     */
+    public String getById(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源Ids
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return List<String>
+     */
+    public List<String> getByIds(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 通过对象查询供应商落地页资源记录总数
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源Integer
+     */
+    public int getCmBrandLandingCount(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 新增供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int addCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 修改供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 删除供应商落地页资源信息
+     *
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    public int delCmBrandLandingById(String id);
+
+    /**
+     * 批量删除供应商落地页资源
+     *
+     * @param ids 需要删除的供应商落地页资源主键集合
+     * @return 结果
+     */
+    public int delCmBrandLandingByIds(String[] ids);
+
+    /**
+     * 批量新增供应商落地页资源
+     *
+     * @param cmBrandLandingList 供应商落地页资源列表
+     * @return 结果
+     */
+    public void batchAddCmBrandLanding(List<CmBrandLanding> cmBrandLandingList);
+
+    /**
+     * 批量修改供应商落地页资源
+     *
+     * @param cmBrandLandingList 供应商落地页资源列表
+     * @return 结果
+     */
+    public void batchUpdateCmBrandLanding(List<CmBrandLanding> cmBrandLandingList);
+}

+ 8 - 0
src/main/java/com/caimei/www/service/page/ProductService.java

@@ -19,6 +19,14 @@ import java.util.Map;
  * @date : 2020/7/8
  */
 public interface ProductService {
+    /**
+     * 功能描述: 销量前三商品
+     * @auther: Kaick
+     * @date: 2023/8/8 13:53
+     * @param
+     * @return []
+     */
+    List<ProductList> getProductSellNumbers();
     /**
      * 根据商品Id获取详情
      * @param productId

+ 12 - 1
src/main/java/com/caimei/www/service/page/impl/ArticleServiceImpl.java

@@ -43,7 +43,18 @@ public class ArticleServiceImpl implements ArticleService {
      */
     @Override
     public List<BaseLink> getArticleTypes() {
-        return articleDao.getArticleTypes();
+        List<BaseLink> articleTypes = articleDao.getArticleTypes("0");
+        infoTypes(articleTypes);
+        return articleTypes;
+    }
+    public void infoTypes(List<BaseLink> articleTypes ) {
+        articleTypes.forEach(type->{
+            List<BaseLink> articleTypes1 = articleDao.getArticleTypes(type.getId().toString());
+            if(articleTypes1.size()>0){
+                type.setLinkList(articleTypes1);
+                infoTypes(articleTypes1);
+            }
+        });
     }
 
     /**

+ 179 - 0
src/main/java/com/caimei/www/service/page/impl/CmBrandLandingServiceImpl.java

@@ -0,0 +1,179 @@
+package com.caimei.www.service.page.impl;
+
+import java.util.Date;
+import java.util.List;
+
+import com.caimei.www.pojo.page.CmBrandLanding;
+import com.caimei.www.service.page.CmBrandLandingService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.caimei.www.mapper.CmBrandLandingMapper;
+
+/**
+ * 供应商落地页资源Service业务层处理
+ *
+ * @author Kaick
+ * @date 2023-08-08
+ */
+@Service
+public class CmBrandLandingServiceImpl implements CmBrandLandingService
+{
+    @Autowired
+    private CmBrandLandingMapper cmBrandLandingMapper;
+
+    /**
+     * 通过对象查询供应商落地页资源列表
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源
+     */
+    @Override
+    public List<CmBrandLandingVO> getCmBrandLandingList(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.getCmBrandLandingList(cmBrandLanding);
+    }
+
+    /**
+     * 通过Id查询供应商落地页资源
+     *
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    @Override
+    public CmBrandLanding getCmBrandLandingById(String id)
+    {
+        return cmBrandLandingMapper.getCmBrandLandingById(id);
+    }
+
+    /**
+     * 通过对象查询供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源
+     */
+    @Override
+    public CmBrandLanding getByCmBrandLanding(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.getByCmBrandLanding(cmBrandLanding);
+    }
+
+    /**
+     * 通过对象查询供应商落地页资源Id
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return String
+     */
+    @Override
+    public String getById(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.getById(cmBrandLanding);
+    }
+
+    /**
+     * 通过对象查询供应商落地页资源Ids
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return List<String>
+     */
+    @Override
+    public List<String> getByIds(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.getByIds(cmBrandLanding);
+    }
+
+    /**
+     * 通过对象查询供应商落地页资源记录总数
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return int
+     */
+    @Override
+    public int getCmBrandLandingCount(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.getCmBrandLandingCount(cmBrandLanding);
+    }
+
+    /**
+     * 新增供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    @Override
+    public int addCmBrandLanding(CmBrandLanding cmBrandLanding)
+    {
+        cmBrandLanding.setAddTime(new Date());
+        return cmBrandLandingMapper.addCmBrandLanding(cmBrandLanding);
+    }
+
+    /**
+     * 修改供应商落地页资源
+     *
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    @Override
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding)
+    {
+        cmBrandLanding.setUpdateTime(new Date());
+        return cmBrandLandingMapper.updateCmBrandLanding(cmBrandLanding);
+    }
+
+
+
+    /**
+     * 删除供应商落地页资源信息
+     *
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    @Override
+    public int delCmBrandLandingById(String id)
+    {
+        return cmBrandLandingMapper.updateCmBrandLanding(new CmBrandLanding().setId(id).setDelFlag(1));
+        //return cmBrandLandingMapper.delCmBrandLandingById(id);
+    }
+
+    /**
+     * 批量删除供应商落地页资源
+     *
+     * @param ids 需要删除的供应商落地页资源主键
+     * @return 结果
+     */
+            @Override
+    public int delCmBrandLandingByIds(String[] ids)
+    {
+        return cmBrandLandingMapper.updateDelCmBrandLandingByIds(ids,1);
+        //return cmBrandLandingMapper.delCmBrandLandingByIds(ids);
+    }
+
+    /**
+     * 批量新增供应商落地页资源
+     *
+     * @param cmBrandLandingList 供应商落地页资源列表
+     * @return 结果
+     */
+    @Override
+    public void batchAddCmBrandLanding(List<CmBrandLanding> cmBrandLandingList)
+    {
+        for (CmBrandLanding cmBrandLanding : cmBrandLandingList)
+        {
+                cmBrandLandingMapper.addCmBrandLanding(cmBrandLanding);
+        }
+    }
+
+    /**
+     * 批量修改供应商落地页资源
+     *
+     * @param cmBrandLandingList 供应商落地页资源列表
+     * @return 结果
+     */
+    @Override
+    public void batchUpdateCmBrandLanding(List<CmBrandLanding> cmBrandLandingList)
+    {
+        for (CmBrandLanding cmBrandLanding : cmBrandLandingList)
+        {
+               cmBrandLandingMapper.updateCmBrandLanding(cmBrandLanding);
+        }
+    }
+}

+ 5 - 0
src/main/java/com/caimei/www/service/page/impl/ProductServiceImpl.java

@@ -99,6 +99,11 @@ public class ProductServiceImpl implements ProductService {
         }
     }
 
+    @Override
+    public List<ProductList> getProductSellNumbers() {
+        return productDao.getProductSellNumbers();
+    }
+
     /**
      * 产品仪器楼层数据
      *

+ 3 - 2
src/main/resources/mapper/ArticleMapper.xml

@@ -4,9 +4,10 @@
     <select id="getArticleTypes" resultType="com.caimei.www.pojo.page.BaseLink">
 		select  a.id,
 				a.name,
-				a.sort
+				a.sort,
+				a.parentIds
 		from info_type a
-		where a.enabledStatus = 1
+		where  a.delFlag = 0 and a.type = 1 and a.enabledStatus = 1 and a.parentId=#{parentId}
 		order by a.sort desc
 	</select>
 

+ 540 - 0
src/main/resources/mapper/CmBrandLandingMapper.xml

@@ -0,0 +1,540 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.caimei.www.mapper.CmBrandLandingMapper">
+
+	<resultMap type="CmBrandLanding" id="CmBrandLandingResult">
+		<result property="id"    column="id"    />
+		<result property="type"    column="type"    />
+		<result property="authUserId"    column="authUserId"    />
+		<result property="authorId"    column="authorId"    />
+		<result property="headPcBanner"    column="headPcBanner"    />
+		<result property="headAppBanner"    column="headAppBanner"    />
+		<result property="jumpStatus"    column="jumpStatus"    />
+		<result property="jumpPcPicture"    column="jumpPcPicture"    />
+		<result property="jumpAppPicture"    column="jumpAppPicture"    />
+		<result property="jumpLink"    column="jumpLink"    />
+		<result property="title"    column="title"    />
+		<result property="content"    column="content"    />
+		<result property="video"    column="video"    />
+		<result property="sort"    column="sort"    />
+		<result property="pcStatus"    column="pcStatus"    />
+		<result property="appStatus"    column="appStatus"    />
+		<result property="levelType"    column="levelType"    />
+		<result property="delFlag"    column="delFlag"    />
+		<result property="updateTime"    column="updateTime"    />
+		<result property="addTime"    column="addTime"    />
+	</resultMap>
+
+	<sql id="selectCmBrandLandingVo">
+		select
+			cm_brand_landing.id,
+			cm_brand_landing.type,
+			cm_brand_landing.authUserId,
+			cm_brand_landing.authorId,
+			cm_brand_landing.headPcBanner,
+			cm_brand_landing.headAppBanner,
+			cm_brand_landing.jumpStatus,
+			cm_brand_landing.jumpPcPicture,
+			cm_brand_landing.jumpAppPicture,
+			cm_brand_landing.jumpLink,
+			cm_brand_landing.title,
+			cm_brand_landing.content,
+			cm_brand_landing.video,
+			cm_brand_landing.sort,
+			cm_brand_landing.pcStatus,
+			cm_brand_landing.appStatus,
+			cm_brand_landing.levelType,
+			cm_brand_landing.delFlag,
+			cm_brand_landing.updateTime,
+			cm_brand_landing.addTime
+	</sql>
+
+	<select id="getByCmBrandLanding" parameterType="CmBrandLanding" resultMap="CmBrandLandingResult">
+		<include refid="selectCmBrandLandingVo"/>
+		from cm_brand_landing AS cm_brand_landing
+		<where>  cm_brand_landing.delFlag = 0
+			<if test="id != null  and id != ''">
+				and cm_brand_landing.id
+				<if test="id.toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toUpperCase().indexOf('=')!=-1">
+					<if test="id.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.substring(id.toUpperCase().indexOf('=')+1,id.length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+		group by cm_brand_landing.id
+		order by cm_brand_landing.createTime desc
+		limit 0,1
+	</select>
+
+	<select id="getCmBrandLandingList" parameterType="CmBrandLandingVO" resultMap="CmBrandLandingResult">
+		<include refid="selectCmBrandLandingVo"/>
+		from cm_brand_landing AS cm_brand_landing
+		<where>  cm_brand_landing.delFlag = 0
+			<if test="id != null  and id != ''">
+				and cm_brand_landing.id
+				<if test="id.toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toUpperCase().indexOf('=')!=-1">
+					<if test="id.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.substring(id.toUpperCase().indexOf('=')+1,id.length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+		group by cm_brand_landing.id
+		order by cm_brand_landing.createTime desc
+	</select>
+
+	<select id="getCmBrandLandingCount" parameterType="CmBrandLanding" resultType="String">
+		select count(1)
+		from cm_brand_landing AS cm_brand_landing
+		<where>  cm_brand_landing.delFlag = 0
+			<if test="id != null  and  id != ''">
+				and cm_brand_landing.id
+				<if test="id.toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toUpperCase().indexOf('=')!=-1">
+					<if test="id.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.substring(id.toUpperCase().indexOf('=')+1,id.length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+		group by cm_brand_landing.id
+	</select>
+
+	<select id="getCmBrandLandingById" parameterType="String" resultMap="CmBrandLandingResult">
+		<include refid="selectCmBrandLandingVo"/>
+		from cm_brand_landing AS cm_brand_landing
+		where  cm_brand_landing.delFlag = 0 and cm_brand_landing.id = #{id}
+	</select>
+
+	<select id="getByIds" parameterType="CmBrandLanding" resultType="String">
+		select id
+		from cm_brand_landing AS cm_brand_landing
+		<where>  cm_brand_landing.delFlag = 0
+			<if test="id != null  and id != ''">
+				and cm_brand_landing.id
+				<if test="id.toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toUpperCase().indexOf('=')!=-1">
+					<if test="id.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.substring(id.toUpperCase().indexOf('=')+1,id.length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+		group by cm_brand_landing.id
+	</select>
+
+	<select id="getById" parameterType="CmBrandLanding" resultType="String">
+		select id
+		from cm_brand_landing AS cm_brand_landing
+		<where>  cm_brand_landing.delFlag = 0
+			<if test="id != null  and id != ''">
+				and cm_brand_landing.id
+				<if test="id.toString().toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toString().toUpperCase().indexOf('=')!=-1">
+					<if test="id.toString().toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toString().toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.toString().substring(id.toString().toUpperCase().indexOf('=')+1,id.toString().length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+		group by cm_brand_landing.id
+		limit 0,1
+	</select>
+
+	<insert id="addCmBrandLanding" parameterType="CmBrandLanding" useGeneratedKeys="true" keyProperty="id">
+		insert into cm_brand_landing
+		<trim prefix="(" suffix=")" suffixOverrides=",">
+			<if test="id != null and id != ''">id,</if>
+			<if test="type != null and type != ''">type,</if>
+			<if test="authUserId != null">authUserId,</if>
+			<if test="authorId != null and authorId != ''">authorId,</if>
+			<if test="headPcBanner != null and headPcBanner != ''">headPcBanner,</if>
+			<if test="headAppBanner != null and headAppBanner != ''">headAppBanner,</if>
+			<if test="jumpStatus != null">jumpStatus,</if>
+			<if test="jumpPcPicture != null and jumpPcPicture != ''">jumpPcPicture,</if>
+			<if test="jumpAppPicture != null and jumpAppPicture != ''">jumpAppPicture,</if>
+			<if test="jumpLink != null and jumpLink != ''">jumpLink,</if>
+			<if test="title != null and title != ''">title,</if>
+			<if test="content != null and content != ''">content,</if>
+			<if test="video != null and video != ''">video,</if>
+			<if test="sort != null">sort,</if>
+			<if test="pcStatus != null">pcStatus,</if>
+			<if test="appStatus != null">appStatus,</if>
+			<if test="levelType != null and levelType != ''">levelType,</if>
+			<if test="delFlag != null">delFlag,</if>
+			<if test="updateTime != null">updateTime,</if>
+			<if test="addTime != null">addTime,</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
+			<if test="id != null and id != ''">#{id},</if>
+			<if test="type != null and type != ''">#{type},</if>
+			<if test="authUserId != null">#{authUserId},</if>
+			<if test="authorId != null and authorId != ''">#{authorId},</if>
+			<if test="headPcBanner != null and headPcBanner != ''">#{headPcBanner},</if>
+			<if test="headAppBanner != null and headAppBanner != ''">#{headAppBanner},</if>
+			<if test="jumpStatus != null">#{jumpStatus},</if>
+			<if test="jumpPcPicture != null and jumpPcPicture != ''">#{jumpPcPicture},</if>
+			<if test="jumpAppPicture != null and jumpAppPicture != ''">#{jumpAppPicture},</if>
+			<if test="jumpLink != null and jumpLink != ''">#{jumpLink},</if>
+			<if test="title != null and title != ''">#{title},</if>
+			<if test="content != null and content != ''">#{content},</if>
+			<if test="video != null and video != ''">#{video},</if>
+			<if test="sort != null">#{sort},</if>
+			<if test="pcStatus != null">#{pcStatus},</if>
+			<if test="appStatus != null">#{appStatus},</if>
+			<if test="levelType != null and levelType != ''">#{levelType},</if>
+			<if test="delFlag != null">#{delFlag},</if>
+			<if test="updateTime != null">#{updateTime},</if>
+			<if test="addTime != null">#{addTime},</if>
+		</trim>
+	</insert>
+
+	<update id="updateCmBrandLanding" parameterType="CmBrandLanding">
+		update cm_brand_landing
+		<trim prefix="SET" suffixOverrides=",">
+			<if test="type != null and type != ''">type = #{type},</if>
+			<if test="authUserId != null">authUserId = #{authUserId},</if>
+			<if test="authorId != null and authorId != ''">authorId = #{authorId},</if>
+			<if test="headPcBanner != null and headPcBanner != ''">headPcBanner = #{headPcBanner},</if>
+			<if test="headAppBanner != null and headAppBanner != ''">headAppBanner = #{headAppBanner},</if>
+			<if test="jumpStatus != null">jumpStatus = #{jumpStatus},</if>
+			<if test="jumpPcPicture != null and jumpPcPicture != ''">jumpPcPicture = #{jumpPcPicture},</if>
+			<if test="jumpAppPicture != null and jumpAppPicture != ''">jumpAppPicture = #{jumpAppPicture},</if>
+			<if test="jumpLink != null and jumpLink != ''">jumpLink = #{jumpLink},</if>
+			<if test="title != null and title != ''">title = #{title},</if>
+			<if test="content != null and content != ''">content = #{content},</if>
+			<if test="video != null and video != ''">video = #{video},</if>
+			<if test="sort != null">sort = #{sort},</if>
+			<if test="pcStatus != null">pcStatus = #{pcStatus},</if>
+			<if test="appStatus != null">appStatus = #{appStatus},</if>
+			<if test="levelType != null and levelType != ''">levelType = #{levelType},</if>
+			<if test="delFlag != null">delFlag = #{delFlag},</if>
+			<if test="updateTime != null">updateTime = #{updateTime},</if>
+			<if test="addTime != null">addTime = #{addTime},</if>
+		</trim>
+		where id = #{id}
+	</update>
+
+	<update id="updateDelCmBrandLandingByIds" parameterType="String">
+		update cm_brand_landing set delFlag=#{delFlag} where id in
+		<foreach item="id" collection="ids" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</update>
+
+	<delete id="delCmBrandLandingById" parameterType="String">
+		delete
+		from cm_brand_landing where id = #{id}
+	</delete>
+
+	<delete id="delCmBrandLanding" parameterType="CmBrandLanding">
+		delete
+		from cm_brand_landing AS cm_brand_landing
+		<where>
+			<if test="id != null  and id != ''">
+				and cm_brand_landing.id
+				<if test="id.toUpperCase().indexOf('=')==-1">
+					= #{id}
+				</if>
+				<if test="id.toUpperCase().indexOf('=')!=-1">
+					<if test="id.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="id.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="idIn" collection="id.substring(id.toUpperCase().indexOf('=')+1,id.length()).trim().split(',')" open="(" separator="," close=")">
+						#{idIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="type != null  and type != ''">
+				and cm_brand_landing.type
+				<if test="type.toUpperCase().indexOf('=')==-1">
+					= #{type}
+				</if>
+				<if test="type.toUpperCase().indexOf('=')!=-1">
+					<if test="type.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="type.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="type.substring(type.toUpperCase().indexOf('=')+1,type.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="authUserId != null "> and cm_brand_landing.authUserId = #{authUserId}</if>
+			<if test="authorId != null  and authorId != ''"> and cm_brand_landing.authorId = #{authorId}</if>
+			<if test="headPcBanner != null  and headPcBanner != ''"> and cm_brand_landing.headPcBanner = #{headPcBanner}</if>
+			<if test="headAppBanner != null  and headAppBanner != ''"> and cm_brand_landing.headAppBanner = #{headAppBanner}</if>
+			<if test="jumpStatus != null "> and cm_brand_landing.jumpStatus = #{jumpStatus}</if>
+			<if test="jumpPcPicture != null  and jumpPcPicture != ''"> and cm_brand_landing.jumpPcPicture = #{jumpPcPicture}</if>
+			<if test="jumpAppPicture != null  and jumpAppPicture != ''"> and cm_brand_landing.jumpAppPicture = #{jumpAppPicture}</if>
+			<if test="jumpLink != null  and jumpLink != ''"> and cm_brand_landing.jumpLink = #{jumpLink}</if>
+			<if test="title != null  and title != ''"> and cm_brand_landing.title = #{title}</if>
+			<if test="content != null  and content != ''"> and cm_brand_landing.content = #{content}</if>
+			<if test="video != null  and video != ''"> and cm_brand_landing.video = #{video}</if>
+			<if test="sort != null "> and cm_brand_landing.sort = #{sort}</if>
+			<if test="pcStatus != null "> and cm_brand_landing.pcStatus = #{pcStatus}</if>
+			<if test="appStatus != null "> and cm_brand_landing.appStatus = #{appStatus}</if>
+			<if test="levelType != null  and levelType != ''">
+				and cm_brand_landing.levelType
+				<if test="levelType.toUpperCase().indexOf('=')==-1">
+					= #{levelType}
+				</if>
+				<if test="levelType.toUpperCase().indexOf('=')!=-1">
+					<if test="levelType.toUpperCase().indexOf('NOT')!=-1"> not </if>
+					<if test="levelType.toUpperCase().indexOf('IN')!=-1"> in </if>
+					<foreach item="typeIn" collection="levelType.substring(levelType.toUpperCase().indexOf('=')+1,levelType.length()).trim().split(',')" open="(" separator="," close=")">
+						#{typeIn}
+					</foreach>
+				</if>
+			</if>
+			<if test="delFlag != null "> and cm_brand_landing.delFlag = #{delFlag}</if>
+			<if test="updateTime != null "> and cm_brand_landing.updateTime = #{updateTime}</if>
+			<if test="addTime != null "> and cm_brand_landing.addTime = #{addTime}</if>
+		</where>
+	</delete>
+
+	<delete id="delCmBrandLandingByIds" parameterType="String">
+		delete from cm_brand_landing where id in
+		<foreach item="id" collection="ids" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+
+</mapper>

+ 8 - 0
src/main/resources/mapper/ProductMapper.xml

@@ -106,6 +106,14 @@
 		where productID = #{productId}
 		order by mainFlag desc ,sortIndex is null,sortIndex
 	</select>
+	<select id="getProductSellNumbers" resultType="com.caimei.www.pojo.page.ProductList">
+		select
+			p.productID as id,
+			p.`name` as `name`,
+			p.mainImage as image
+		from product as p
+		order by sellNumber desc limit 0,3
+	</select>
     <select id="getPriceItemById" resultType="com.caimei.www.pojo.order.CartItem">
 		select
 			p.productID as productId,