kaick 1 рік тому
батько
коміт
b5bbfe9d08

+ 72 - 0
src/main/java/com/caimei365/user/controller/CmBrandLandingApi.java

@@ -0,0 +1,72 @@
+package com.caimei365.user.controller;
+
+import com.caimei365.user.idempotent.IpSave;
+import com.caimei365.user.mapper.CmBrandBannerMapper;
+import com.caimei365.user.model.ResponseJson;
+import com.caimei365.user.model.dto.BaikeProductDto;
+import com.caimei365.user.model.dto.ShopArticleDto;
+import com.caimei365.user.model.dto.ShopBannerDto;
+import com.caimei365.user.model.dto.ShopUpdateDto;
+import com.caimei365.user.model.po.CmBrandBanner;
+import com.caimei365.user.model.po.CmBrandFiles;
+import com.caimei365.user.model.po.CmBrandLanding;
+import com.caimei365.user.model.vo.*;
+import com.caimei365.user.service.CmBrandBannerService;
+import com.caimei365.user.service.CmBrandFilesService;
+import com.caimei365.user.service.CmBrandLandingService;
+import com.caimei365.user.service.ShopService;
+import com.github.pagehelper.PageInfo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author : Kaick
+ * @date : 2023/5/31
+ */
+@Api(tags = "供应商落地页")
+@RestController
+@RequiredArgsConstructor
+@RequestMapping("/user/landing")
+public class CmBrandLandingApi {
+
+    private final CmBrandBannerService cmBrandBannerService;
+
+    private final CmBrandLandingService cmBrandLandingService;
+
+    private final CmBrandFilesService cmBrandFilesService;
+
+    /**
+     * 查询供应商落地页资料
+     *
+     * @return Map(userPo, clubPo)
+     * @return banner > banner管理
+     * @return landing.type 1成功案例,2视频列表,3文章列表
+     */
+    @ApiOperation("查询供应商落地页资料")
+    @GetMapping("/info")
+    public ResponseJson<Map<String, Object>> getShopUserInfo() {
+        HashMap<String, Object> map = new HashMap(2);
+        List<CmBrandBanner> cmBrandBanners = cmBrandBannerService.selectCmBrandBannerList(new CmBrandBanner()
+                .setType("2")
+                .setDelFlag("0"));
+        List<CmBrandLanding> cmBrandLandings = cmBrandLandingService.selectCmBrandLandingList(new CmBrandLanding()
+                .setDelFlag("0"));
+        cmBrandLandings.forEach(cmBrandLanding -> {
+            CmBrandFiles cmBrandFiles = new CmBrandFiles();
+            cmBrandFiles.setId(cmBrandLanding.getVideo());
+            cmBrandLanding.setCmBrandFiles(cmBrandLanding.getVideo() == null ? null :
+                    cmBrandFilesService.selectCmBrandFilesList(cmBrandFiles));
+        });
+        map.put("banner", cmBrandBanners);
+        map.put("landing", cmBrandLandings);
+        return ResponseJson.success(map);
+    }
+}

+ 64 - 0
src/main/java/com/caimei365/user/mapper/CmBrandBannerMapper.java

@@ -0,0 +1,64 @@
+package com.caimei365.user.mapper;
+
+import com.caimei365.user.model.po.CmBrandBanner;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * 首页bannerMapper接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Mapper
+public interface CmBrandBannerMapper 
+{
+    /**
+     * 查询首页banner
+     * 
+     * @param id 首页banner主键
+     * @return 首页banner
+     */
+    public CmBrandBanner selectCmBrandBannerById(String id);
+
+    /**
+     * 查询首页banner列表
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 首页banner集合
+     */
+    public List<CmBrandBanner> selectCmBrandBannerList(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 新增首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    public int insertCmBrandBanner(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 修改首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    public int updateCmBrandBanner(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 删除首页banner
+     * 
+     * @param id 首页banner主键
+     * @return 结果
+     */
+    public int deleteCmBrandBannerById(String id);
+
+    /**
+     * 批量删除首页banner
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandBannerByIds(String[] ids);
+}

+ 64 - 0
src/main/java/com/caimei365/user/mapper/CmBrandFilesMapper.java

@@ -0,0 +1,64 @@
+package com.caimei365.user.mapper;
+
+import com.caimei365.user.model.po.CmBrandFiles;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * 文件资源Mapper接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Mapper
+public interface CmBrandFilesMapper 
+{
+    /**
+     * 查询文件资源
+     * 
+     * @param id 文件资源主键
+     * @return 文件资源
+     */
+    public CmBrandFiles selectCmBrandFilesById(String id);
+
+    /**
+     * 查询文件资源列表
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 文件资源集合
+     */
+    public List<CmBrandFiles> selectCmBrandFilesList(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 新增文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    public int insertCmBrandFiles(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 修改文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    public int updateCmBrandFiles(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 删除文件资源
+     * 
+     * @param id 文件资源主键
+     * @return 结果
+     */
+    public int deleteCmBrandFilesById(String id);
+
+    /**
+     * 批量删除文件资源
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandFilesByIds(String[] ids);
+}

+ 63 - 0
src/main/java/com/caimei365/user/mapper/CmBrandLandingMapper.java

@@ -0,0 +1,63 @@
+package com.caimei365.user.mapper;
+
+import java.util.List;
+import com.caimei365.user.model.po.CmBrandLanding;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 供应商落地页资源Mapper接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Mapper
+public interface CmBrandLandingMapper 
+{
+    /**
+     * 查询供应商落地页资源
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding selectCmBrandLandingById(String id);
+
+    /**
+     * 查询供应商落地页资源列表
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源集合
+     */
+    public List<CmBrandLanding> selectCmBrandLandingList(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 新增供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int insertCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 修改供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 删除供应商落地页资源
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    public int deleteCmBrandLandingById(String id);
+
+    /**
+     * 批量删除供应商落地页资源
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandLandingByIds(String[] ids);
+}

+ 84 - 0
src/main/java/com/caimei365/user/model/po/CmBrandBanner.java

@@ -0,0 +1,84 @@
+package com.caimei365.user.model.po;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import org.apache.ibatis.type.Alias;
+
+import java.io.Serializable;
+
+/**
+ * 首页banner对象 cm_brand_banner
+ * 
+ * @author Kaick
+ * @date 2023-05-24
+ */
+@Accessors(chain  = true )
+@Data
+@Alias("CmBrandBanner")
+public class CmBrandBanner implements Serializable
+{
+    private static final Long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private String id;
+
+    /** 供应商id */
+    private String authUserId;
+
+    /** 分类:1首页banner,2供应商落地页banner */
+    private String type;
+
+    /** 首页pc端banner */
+    private String headPcBanner;
+
+    /** 首页移动端banner */
+    private String headAppBanner;
+
+    /** 首页banner跳转方式状态:0无,1图片,2链接 */
+    private String jumpStatus;
+
+    /** 首页pc端banner跳转图片 */
+    private String jumpPcPicture;
+
+    /** 首页移动端banner跳转图片 */
+    private String jumpAppPicture;
+
+    /** 首页banner跳转链接 */
+    private String jumpLink;
+
+    /** 首页移动端banner跳转链接 */
+    private String jumpAppLink;
+
+    /** PC标题
+ */
+    private String titlePc;
+
+    /** App标题
+ */
+    private String titleApp;
+
+    /** 排序 */
+    private String sort;
+
+    /** pc端status 0启用,1停用 */
+    private String pcStatus;
+
+    /** 移动端status 0启用,1停用 */
+    private String appStatus;
+
+    /** 删除状态 0正常,1删除 */
+    private String delFlag;
+
+    /** 修改时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date updateTime;
+    /** 添加时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date addTime;
+
+
+}

+ 174 - 0
src/main/java/com/caimei365/user/model/po/CmBrandFiles.java

@@ -0,0 +1,174 @@
+package com.caimei365.user.model.po;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.experimental.Accessors;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import org.apache.ibatis.type.Alias;
+
+import java.io.Serializable;
+
+/**
+ * 文件资源对象 cm_brand_files
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Accessors(chain = true)
+@Alias("CmBrandFiles")
+public class CmBrandFiles implements Serializable
+{
+    private static final Long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private String id;
+
+    /** 视频文件分类:1供应商落地页 */
+    private String type;
+
+    /** 父id */
+    private String superId;
+
+    /** 文件名 */
+    private String fileName;
+
+    /** oss名称 */
+    private String ossName;
+
+    /** 水印oss名称 */
+    private String waterOssName;
+
+    /** oss链接 */
+    private String ossUrl;
+
+    /** 水印oss链接 */
+    private String waterOssUrl;
+
+    /** html链接 */
+    private String htmlUrl;
+
+    /** 上传时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date uploadTime;
+
+    /** 删除状态 0正常,其他删除 */
+    private String delFlag;
+
+    public void setId(String id) 
+    {
+        this.id = id;
+    }
+
+    public String getId() 
+    {
+        return id;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setSuperId(String superId) 
+    {
+        this.superId = superId;
+    }
+
+    public String getSuperId() 
+    {
+        return superId;
+    }
+    public void setFileName(String fileName) 
+    {
+        this.fileName = fileName;
+    }
+
+    public String getFileName() 
+    {
+        return fileName;
+    }
+    public void setOssName(String ossName) 
+    {
+        this.ossName = ossName;
+    }
+
+    public String getOssName() 
+    {
+        return ossName;
+    }
+    public void setWaterOssName(String waterOssName) 
+    {
+        this.waterOssName = waterOssName;
+    }
+
+    public String getWaterOssName() 
+    {
+        return waterOssName;
+    }
+    public void setOssUrl(String ossUrl) 
+    {
+        this.ossUrl = ossUrl;
+    }
+
+    public String getOssUrl() 
+    {
+        return ossUrl;
+    }
+    public void setWaterOssUrl(String waterOssUrl) 
+    {
+        this.waterOssUrl = waterOssUrl;
+    }
+
+    public String getWaterOssUrl() 
+    {
+        return waterOssUrl;
+    }
+    public void setHtmlUrl(String htmlUrl) 
+    {
+        this.htmlUrl = htmlUrl;
+    }
+
+    public String getHtmlUrl() 
+    {
+        return htmlUrl;
+    }
+    public void setUploadTime(Date uploadTime) 
+    {
+        this.uploadTime = uploadTime;
+    }
+
+    public Date getUploadTime() 
+    {
+        return uploadTime;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("superId", getSuperId())
+            .append("fileName", getFileName())
+            .append("ossName", getOssName())
+            .append("waterOssName", getWaterOssName())
+            .append("ossUrl", getOssUrl())
+            .append("waterOssUrl", getWaterOssUrl())
+            .append("htmlUrl", getHtmlUrl())
+            .append("uploadTime", getUploadTime())
+            .append("delFlag", getDelFlag())
+            .toString();
+    }
+}

+ 279 - 0
src/main/java/com/caimei365/user/model/po/CmBrandLanding.java

@@ -0,0 +1,279 @@
+package com.caimei365.user.model.po;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.apache.ibatis.type.Alias;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 供应商落地页资源对象 cm_brand_landing
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Accessors(chain  = true )
+@Data
+@Alias("CmBrandLanding")
+public class CmBrandLanding
+{
+    private static final Long serialVersionUID = 1L;
+
+    /** id */
+    private String id;
+
+    /** 供应商id */
+    private String authUserId;
+
+    /** 分类:1成功案例,2增长社区-视频列表,3增长社区-文章列表 */
+    private String type;
+
+    /** pc端picture */
+    private String headPcBanner;
+
+    /** 移动端picture */
+    private String headAppBanner;
+
+    /** picture跳转方式状态:0无,1图片,2链接 */
+    private String jumpStatus;
+
+    /** pc端picture跳转图片 */
+    private String jumpPcPicture;
+
+    /** 移动端picture跳转图片 */
+    private String jumpAppPicture;
+
+    /** picture跳转链接 */
+    private String jumpLink;
+
+    /** 标题
+ */
+    private String title;
+
+    /** 内容
+ */
+    private String content;
+
+    /** 视频文件 */
+    private String video;
+
+    /** 排序 */
+    private String sort;
+
+    /** pc端status 0启用,1停用 */
+    private String pcStatus;
+
+    /** 移动端status 0启用,1停用 */
+    private String appStatus;
+
+    /** 删除状态 0正常,1删除 */
+    private String delFlag;
+
+
+    /** 修改时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date updateTime;
+    /** 添加时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date addTime;
+    /** 文件资料 */
+    List<CmBrandFiles> cmBrandFiles;
+
+//    public List<CmBrandFiles> getCmBrandFiles() {
+//        return cmBrandFiles;
+//    }
+//
+//    public void setCmBrandFiles(List<CmBrandFiles> cmBrandFiles) {
+//        this.cmBrandFiles = cmBrandFiles;
+//    }
+//
+//    public void setId(String id)
+//    {
+//        this.id = id;
+//    }
+//
+//    public String getId()
+//    {
+//        return id;
+//    }
+//    public void setAuthUserId(String authUserId)
+//    {
+//        this.authUserId = authUserId;
+//    }
+//
+//    public String getAuthUserId()
+//    {
+//        return authUserId;
+//    }
+//    public void setType(String type)
+//    {
+//        this.type = type;
+//    }
+//
+//    public String getType()
+//    {
+//        return type;
+//    }
+//    public void setHeadPcBanner(String headPcBanner)
+//    {
+//        this.headPcBanner = headPcBanner;
+//    }
+//
+//    public String getHeadPcBanner()
+//    {
+//        return headPcBanner;
+//    }
+//    public void setHeadAppBanner(String headAppBanner)
+//    {
+//        this.headAppBanner = headAppBanner;
+//    }
+//
+//    public String getHeadAppBanner()
+//    {
+//        return headAppBanner;
+//    }
+//    public void setJumpStatus(String jumpStatus)
+//    {
+//        this.jumpStatus = jumpStatus;
+//    }
+//
+//    public String getJumpStatus()
+//    {
+//        return jumpStatus;
+//    }
+//    public void setJumpPcPicture(String jumpPcPicture)
+//    {
+//        this.jumpPcPicture = jumpPcPicture;
+//    }
+//
+//    public String getJumpPcPicture()
+//    {
+//        return jumpPcPicture;
+//    }
+//    public void setJumpAppPicture(String jumpAppPicture)
+//    {
+//        this.jumpAppPicture = jumpAppPicture;
+//    }
+//
+//    public String getJumpAppPicture()
+//    {
+//        return jumpAppPicture;
+//    }
+//    public void setJumpLink(String jumpLink)
+//    {
+//        this.jumpLink = jumpLink;
+//    }
+//
+//    public String getJumpLink()
+//    {
+//        return jumpLink;
+//    }
+//    public void setTitle(String title)
+//    {
+//        this.title = title;
+//    }
+//
+//    public String getTitle()
+//    {
+//        return title;
+//    }
+//    public void setContent(String content)
+//    {
+//        this.content = content;
+//    }
+//
+//    public String getContent()
+//    {
+//        return content;
+//    }
+//    public void setVideo(String video)
+//    {
+//        this.video = video;
+//    }
+//
+//    public String getVideo()
+//    {
+//        return video;
+//    }
+//    public void setSort(String sort)
+//    {
+//        this.sort = sort;
+//    }
+//
+//    public String getSort()
+//    {
+//        return sort;
+//    }
+//    public void setPcStatus(String pcStatus)
+//    {
+//        this.pcStatus = pcStatus;
+//    }
+//
+//    public String getPcStatus()
+//    {
+//        return pcStatus;
+//    }
+//    public void setAppStatus(String appStatus)
+//    {
+//        this.appStatus = appStatus;
+//    }
+//
+//    public String getAppStatus()
+//    {
+//        return appStatus;
+//    }
+//    public void setDelFlag(String delFlag)
+//    {
+//        this.delFlag = delFlag;
+//    }
+//
+//    public String getDelFlag()
+//    {
+//        return delFlag;
+//    }
+//    public void setAddTime(Date addTime)
+//    {
+//        this.addTime = addTime;
+//    }
+//
+//    public Date getAddTime()
+//    {
+//        return addTime;
+//    }
+//    public Date getUpdateTime() {
+//        return updateTime;
+//    }
+//
+//    public void setUpdateTime(Date updateTime) {
+//        this.updateTime = updateTime;
+//    }
+//
+//    @Override
+//    public String toString() {
+//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+//            .append("id", getId())
+//            .append("authUserId", getAuthUserId())
+//            .append("type", getType())
+//            .append("headPcBanner", getHeadPcBanner())
+//            .append("headAppBanner", getHeadAppBanner())
+//            .append("jumpStatus", getJumpStatus())
+//            .append("jumpPcPicture", getJumpPcPicture())
+//            .append("jumpAppPicture", getJumpAppPicture())
+//            .append("jumpLink", getJumpLink())
+//            .append("title", getTitle())
+//            .append("content", getContent())
+//            .append("video", getVideo())
+//            .append("sort", getSort())
+//            .append("pcStatus", getPcStatus())
+//            .append("appStatus", getAppStatus())
+//            .append("delFlag", getDelFlag())
+//            .append("updateTime", getUpdateTime())
+//            .append("addTime", getAddTime())
+//            .toString();
+//    }
+}

+ 61 - 0
src/main/java/com/caimei365/user/service/CmBrandBannerService.java

@@ -0,0 +1,61 @@
+package com.caimei365.user.service;
+
+import java.util.List;
+import com.caimei365.user.model.po.CmBrandBanner;
+
+/**
+ * 首页bannerService接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+public interface CmBrandBannerService
+{
+    /**
+     * 查询首页banner
+     * 
+     * @param id 首页banner主键
+     * @return 首页banner
+     */
+    public CmBrandBanner selectCmBrandBannerById(String id);
+
+    /**
+     * 查询首页banner列表
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 首页banner集合
+     */
+    public List<CmBrandBanner> selectCmBrandBannerList(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 新增首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    public int insertCmBrandBanner(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 修改首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    public int updateCmBrandBanner(CmBrandBanner cmBrandBanner);
+
+    /**
+     * 批量删除首页banner
+     * 
+     * @param ids 需要删除的首页banner主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandBannerByIds(String[] ids);
+
+    /**
+     * 删除首页banner信息
+     * 
+     * @param id 首页banner主键
+     * @return 结果
+     */
+    public int deleteCmBrandBannerById(String id);
+}

+ 62 - 0
src/main/java/com/caimei365/user/service/CmBrandFilesService.java

@@ -0,0 +1,62 @@
+package com.caimei365.user.service;
+
+import com.caimei365.user.model.po.CmBrandFiles;
+
+import java.util.List;
+
+/**
+ * 文件资源Service接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+public interface CmBrandFilesService
+{
+    /**
+     * 查询文件资源
+     * 
+     * @param id 文件资源主键
+     * @return 文件资源
+     */
+    public CmBrandFiles selectCmBrandFilesById(String id);
+
+    /**
+     * 查询文件资源列表
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 文件资源集合
+     */
+    public List<CmBrandFiles> selectCmBrandFilesList(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 新增文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    public int insertCmBrandFiles(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 修改文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    public int updateCmBrandFiles(CmBrandFiles cmBrandFiles);
+
+    /**
+     * 批量删除文件资源
+     * 
+     * @param ids 需要删除的文件资源主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandFilesByIds(String[] ids);
+
+    /**
+     * 删除文件资源信息
+     * 
+     * @param id 文件资源主键
+     * @return 结果
+     */
+    public int deleteCmBrandFilesById(String id);
+}

+ 62 - 0
src/main/java/com/caimei365/user/service/CmBrandLandingService.java

@@ -0,0 +1,62 @@
+package com.caimei365.user.service;
+
+import com.caimei365.user.model.po.CmBrandLanding;
+
+import java.util.List;
+
+/**
+ * 供应商落地页资源Service接口
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+public interface CmBrandLandingService
+{
+    /**
+     * 查询供应商落地页资源
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    public CmBrandLanding selectCmBrandLandingById(String id);
+
+    /**
+     * 查询供应商落地页资源列表
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源集合
+     */
+    public List<CmBrandLanding> selectCmBrandLandingList(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 新增供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int insertCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 修改供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding);
+
+    /**
+     * 批量删除供应商落地页资源
+     * 
+     * @param ids 需要删除的供应商落地页资源主键集合
+     * @return 结果
+     */
+    public int deleteCmBrandLandingByIds(String[] ids);
+
+    /**
+     * 删除供应商落地页资源信息
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    public int deleteCmBrandLandingById(String id);
+}

+ 96 - 0
src/main/java/com/caimei365/user/service/impl/CmBrandBannerServiceImpl.java

@@ -0,0 +1,96 @@
+package com.caimei365.user.service.impl;
+
+import java.util.Date;
+import java.util.List;
+
+import com.caimei365.user.mapper.CmBrandBannerMapper;
+import com.caimei365.user.model.po.CmBrandBanner;
+import com.caimei365.user.service.CmBrandBannerService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 首页bannerService业务层处理
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Service
+public class CmBrandBannerServiceImpl implements CmBrandBannerService
+{
+    @Autowired
+    private CmBrandBannerMapper cmBrandBannerMapper;
+
+    /**
+     * 查询首页banner
+     * 
+     * @param id 首页banner主键
+     * @return 首页banner
+     */
+    @Override
+    public CmBrandBanner selectCmBrandBannerById(String id)
+    {
+        return cmBrandBannerMapper.selectCmBrandBannerById(id);
+    }
+
+    /**
+     * 查询首页banner列表
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 首页banner
+     */
+    @Override
+    public List<CmBrandBanner> selectCmBrandBannerList(CmBrandBanner cmBrandBanner)
+    {
+        return cmBrandBannerMapper.selectCmBrandBannerList(cmBrandBanner);
+    }
+
+    /**
+     * 新增首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    @Override
+    public int insertCmBrandBanner(CmBrandBanner cmBrandBanner)
+    {
+        return cmBrandBannerMapper.insertCmBrandBanner(cmBrandBanner);
+    }
+
+    /**
+     * 修改首页banner
+     * 
+     * @param cmBrandBanner 首页banner
+     * @return 结果
+     */
+    @Override
+    public int updateCmBrandBanner(CmBrandBanner cmBrandBanner)
+    {
+        cmBrandBanner.setUpdateTime(new Date());
+        return cmBrandBannerMapper.updateCmBrandBanner(cmBrandBanner);
+    }
+
+    /**
+     * 批量删除首页banner
+     * 
+     * @param ids 需要删除的首页banner主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandBannerByIds(String[] ids)
+    {
+        return cmBrandBannerMapper.deleteCmBrandBannerByIds(ids);
+    }
+
+    /**
+     * 删除首页banner信息
+     * 
+     * @param id 首页banner主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandBannerById(String id)
+    {
+        return cmBrandBannerMapper.deleteCmBrandBannerById(id);
+    }
+}

+ 95 - 0
src/main/java/com/caimei365/user/service/impl/CmBrandFilesServiceImpl.java

@@ -0,0 +1,95 @@
+package com.caimei365.user.service.impl;
+
+import java.util.List;
+
+import com.caimei365.user.mapper.CmBrandFilesMapper;
+import com.caimei365.user.model.po.CmBrandFiles;
+import com.caimei365.user.service.CmBrandFilesService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * 文件资源Service业务层处理
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Service
+public class CmBrandFilesServiceImpl implements CmBrandFilesService
+{
+    @Autowired
+    private CmBrandFilesMapper cmBrandFilesMapper;
+
+    /**
+     * 查询文件资源
+     * 
+     * @param id 文件资源主键
+     * @return 文件资源
+     */
+    @Override
+    public CmBrandFiles selectCmBrandFilesById(String id)
+    {
+        return cmBrandFilesMapper.selectCmBrandFilesById(id);
+    }
+
+    /**
+     * 查询文件资源列表
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 文件资源
+     */
+    @Override
+    public List<CmBrandFiles> selectCmBrandFilesList(CmBrandFiles cmBrandFiles)
+    {
+        return cmBrandFilesMapper.selectCmBrandFilesList(cmBrandFiles);
+    }
+
+    /**
+     * 新增文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    @Override
+    public int insertCmBrandFiles(CmBrandFiles cmBrandFiles)
+    {
+        return cmBrandFilesMapper.insertCmBrandFiles(cmBrandFiles);
+    }
+
+    /**
+     * 修改文件资源
+     * 
+     * @param cmBrandFiles 文件资源
+     * @return 结果
+     */
+    @Override
+    public int updateCmBrandFiles(CmBrandFiles cmBrandFiles)
+    {
+        return cmBrandFilesMapper.updateCmBrandFiles(cmBrandFiles);
+    }
+
+    /**
+     * 批量删除文件资源
+     * 
+     * @param ids 需要删除的文件资源主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandFilesByIds(String[] ids)
+    {
+        return cmBrandFilesMapper.deleteCmBrandFilesByIds(ids);
+    }
+
+    /**
+     * 删除文件资源信息
+     * 
+     * @param id 文件资源主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandFilesById(String id)
+    {
+        return cmBrandFilesMapper.deleteCmBrandFilesById(id);
+    }
+}

+ 96 - 0
src/main/java/com/caimei365/user/service/impl/CmBrandLandingServiceImpl.java

@@ -0,0 +1,96 @@
+package com.caimei365.user.service.impl;
+
+import java.util.Date;
+import java.util.List;
+
+import com.caimei365.user.mapper.CmBrandLandingMapper;
+import com.caimei365.user.model.po.CmBrandLanding;
+import com.caimei365.user.service.CmBrandLandingService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 供应商落地页资源Service业务层处理
+ * 
+ * @author Kaick
+ * @date 2023-05-31
+ */
+@Service
+public class CmBrandLandingServiceImpl implements CmBrandLandingService
+{
+    @Autowired
+    private CmBrandLandingMapper cmBrandLandingMapper;
+
+    /**
+     * 查询供应商落地页资源
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 供应商落地页资源
+     */
+    @Override
+    public CmBrandLanding selectCmBrandLandingById(String id)
+    {
+        return cmBrandLandingMapper.selectCmBrandLandingById(id);
+    }
+
+    /**
+     * 查询供应商落地页资源列表
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 供应商落地页资源
+     */
+    @Override
+    public List<CmBrandLanding> selectCmBrandLandingList(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.selectCmBrandLandingList(cmBrandLanding);
+    }
+
+    /**
+     * 新增供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    @Override
+    public int insertCmBrandLanding(CmBrandLanding cmBrandLanding)
+    {
+        return cmBrandLandingMapper.insertCmBrandLanding(cmBrandLanding);
+    }
+
+    /**
+     * 修改供应商落地页资源
+     * 
+     * @param cmBrandLanding 供应商落地页资源
+     * @return 结果
+     */
+    @Override
+    public int updateCmBrandLanding(CmBrandLanding cmBrandLanding)
+    {
+        cmBrandLanding.setUpdateTime(new Date());
+        return cmBrandLandingMapper.updateCmBrandLanding(cmBrandLanding);
+    }
+
+    /**
+     * 批量删除供应商落地页资源
+     * 
+     * @param ids 需要删除的供应商落地页资源主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandLandingByIds(String[] ids)
+    {
+        return cmBrandLandingMapper.deleteCmBrandLandingByIds(ids);
+    }
+
+    /**
+     * 删除供应商落地页资源信息
+     * 
+     * @param id 供应商落地页资源主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCmBrandLandingById(String id)
+    {
+        return cmBrandLandingMapper.deleteCmBrandLandingById(id);
+    }
+}

+ 5 - 0
src/main/resources/bootstrap.yml

@@ -13,3 +13,8 @@ spring:
       # uri: http://47.119.112.46:18001  # 配置中心地址(测试环境)
       uri: http://120.79.162.1:18001     # 配置中心地址(正式环境)
       name: user                        # 配置文件名称
+mybatis:
+  # 扫描classpath中mapper目录下的映射配置文件,针对于映射文件放到了resources目录下
+  mapper-locations: classpath:/mapper/*.xml
+  # 定义包别名,使用pojo时可以直接使用pojo的类型名称不用加包名
+  type-aliases-package: com.caimei365.user.model

+ 136 - 0
src/main/resources/mapper/CmBrandBannerMapper.xml

@@ -0,0 +1,136 @@
+<?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.caimei365.user.mapper.CmBrandBannerMapper">
+
+    <resultMap type="com.caimei365.user.model.po.CmBrandBanner" id="CmBrandBannerResult">
+        <result property="id"    column="id"    />
+        <result property="authUserId"    column="authUserId"    />
+        <result property="type"    column="type"    />
+        <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="jumpAppLink"    column="jumpAppLink"    />
+        <result property="titlePc"    column="titlePc"    />
+        <result property="titleApp"    column="titleApp"    />
+        <result property="sort"    column="sort"    />
+        <result property="pcStatus"    column="pcStatus"    />
+        <result property="appStatus"    column="appStatus"    />
+        <result property="delFlag"    column="delFlag"    />
+        <result property="updateTime"    column="updateTime"    />
+        <result property="addTime"    column="addTime"    />
+    </resultMap>
+
+    <sql id="selectCmBrandBannerVo">
+        select id, authUserId, type, headPcBanner, headAppBanner, jumpStatus, jumpPcPicture, jumpAppPicture, jumpLink, jumpAppLink, titlePc, titleApp, sort, pcStatus, appStatus, delFlag, updateTime, addTime from cm_brand_banner
+    </sql>
+
+    <select id="selectCmBrandBannerList" parameterType="com.caimei365.user.model.po.CmBrandBanner" resultMap="CmBrandBannerResult">
+        <include refid="selectCmBrandBannerVo"/>
+        <where>
+            <if test="authUserId != null "> and authUserId = #{authUserId}</if>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="headPcBanner != null  and headPcBanner != ''"> and headPcBanner = #{headPcBanner}</if>
+            <if test="headAppBanner != null  and headAppBanner != ''"> and headAppBanner = #{headAppBanner}</if>
+            <if test="jumpStatus != null "> and jumpStatus = #{jumpStatus}</if>
+            <if test="jumpPcPicture != null  and jumpPcPicture != ''"> and jumpPcPicture = #{jumpPcPicture}</if>
+            <if test="jumpAppPicture != null  and jumpAppPicture != ''"> and jumpAppPicture = #{jumpAppPicture}</if>
+            <if test="jumpLink != null  and jumpLink != ''"> and jumpLink = #{jumpLink}</if>
+            <if test="jumpAppLink != null  and jumpAppLink != ''"> and jumpAppLink = #{jumpAppLink}</if>
+            <if test="titlePc != null  and titlePc != ''"> and titlePc = #{titlePc}</if>
+            <if test="titleApp != null  and titleApp != ''"> and titleApp = #{titleApp}</if>
+            <if test="sort != null "> and sort = #{sort}</if>
+            <if test="pcStatus != null "> and pcStatus = #{pcStatus}</if>
+            <if test="appStatus != null "> and appStatus = #{appStatus}</if>
+            <if test="delFlag != null "> and delFlag = #{delFlag}</if>
+            <if test="updateTime != null "> and updateTime = #{updateTime}</if>
+            <if test="addTime != null "> and addTime = #{addTime}</if>
+        </where>
+    </select>
+
+    <select id="selectCmBrandBannerById" parameterType="String" resultMap="CmBrandBannerResult">
+        <include refid="selectCmBrandBannerVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertCmBrandBanner" parameterType="com.caimei365.user.model.po.CmBrandBanner" useGeneratedKeys="true" keyProperty="id">
+        insert into cm_brand_banner
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="authUserId != null">authUserId,</if>
+            <if test="type != null">type,</if>
+            <if test="headPcBanner != null">headPcBanner,</if>
+            <if test="headAppBanner != null">headAppBanner,</if>
+            <if test="jumpStatus != null">jumpStatus,</if>
+            <if test="jumpPcPicture != null">jumpPcPicture,</if>
+            <if test="jumpAppPicture != null">jumpAppPicture,</if>
+            <if test="jumpLink != null">jumpLink,</if>
+            <if test="jumpAppLink != null">jumpAppLink,</if>
+            <if test="titlePc != null">titlePc,</if>
+            <if test="titleApp != null">titleApp,</if>
+            <if test="sort != null">sort,</if>
+            <if test="pcStatus != null">pcStatus,</if>
+            <if test="appStatus != null">appStatus,</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="authUserId != null">#{authUserId},</if>
+            <if test="type != null">#{type},</if>
+            <if test="headPcBanner != null">#{headPcBanner},</if>
+            <if test="headAppBanner != null">#{headAppBanner},</if>
+            <if test="jumpStatus != null">#{jumpStatus},</if>
+            <if test="jumpPcPicture != null">#{jumpPcPicture},</if>
+            <if test="jumpAppPicture != null">#{jumpAppPicture},</if>
+            <if test="jumpLink != null">#{jumpLink},</if>
+            <if test="jumpAppLink != null">#{jumpAppLink},</if>
+            <if test="titlePc != null">#{titlePc},</if>
+            <if test="titleApp != null">#{titleApp},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="pcStatus != null">#{pcStatus},</if>
+            <if test="appStatus != null">#{appStatus},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="addTime != null">#{addTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateCmBrandBanner" parameterType="com.caimei365.user.model.po.CmBrandBanner">
+        update cm_brand_banner
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="authUserId != null">authUserId = #{authUserId},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="headPcBanner != null">headPcBanner = #{headPcBanner},</if>
+            <if test="headAppBanner != null">headAppBanner = #{headAppBanner},</if>
+            <if test="jumpStatus != null">jumpStatus = #{jumpStatus},</if>
+            <if test="jumpPcPicture != null">jumpPcPicture = #{jumpPcPicture},</if>
+            <if test="jumpAppPicture != null">jumpAppPicture = #{jumpAppPicture},</if>
+            <if test="jumpLink != null">jumpLink = #{jumpLink},</if>
+            <if test="jumpAppLink != null">jumpAppLink = #{jumpAppLink},</if>
+            <if test="titlePc != null">titlePc = #{titlePc},</if>
+            <if test="titleApp != null">titleApp = #{titleApp},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="pcStatus != null">pcStatus = #{pcStatus},</if>
+            <if test="appStatus != null">appStatus = #{appStatus},</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>
+
+    <delete id="deleteCmBrandBannerById" parameterType="String">
+        delete from cm_brand_banner where id = #{id}
+    </delete>
+
+    <delete id="deleteCmBrandBannerByIds" parameterType="String">
+        delete from cm_brand_banner where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 102 - 0
src/main/resources/mapper/CmBrandFilesMapper.xml

@@ -0,0 +1,102 @@
+<?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.caimei365.user.mapper.CmBrandFilesMapper">
+
+    <resultMap type="CmBrandFiles" id="CmBrandFilesResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="superId"    column="superId"    />
+        <result property="fileName"    column="fileName"    />
+        <result property="ossName"    column="ossName"    />
+        <result property="waterOssName"    column="waterOssName"    />
+        <result property="ossUrl"    column="ossUrl"    />
+        <result property="waterOssUrl"    column="waterOssUrl"    />
+        <result property="htmlUrl"    column="htmlUrl"    />
+        <result property="uploadTime"    column="uploadTime"    />
+        <result property="delFlag"    column="delFlag"    />
+    </resultMap>
+
+    <sql id="selectCmBrandFilesVo">
+        select id, type, superId, fileName, ossName, waterOssName, ossUrl, waterOssUrl, htmlUrl, uploadTime, delFlag from cm_brand_files
+    </sql>
+
+    <select id="selectCmBrandFilesList" parameterType="com.caimei365.user.model.po.CmBrandFiles" resultMap="CmBrandFilesResult">
+        <include refid="selectCmBrandFilesVo"/>
+        <where>
+            <if test="id != null "> and id = #{id}</if>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="superId != null  and superId != ''"> and superId = #{superId}</if>
+            <if test="fileName != null  and fileName != ''"> and fileName like concat('%', #{fileName}, '%')</if>
+            <if test="ossName != null  and ossName != ''"> and ossName like concat('%', #{ossName}, '%')</if>
+            <if test="waterOssName != null  and waterOssName != ''"> and waterOssName like concat('%', #{waterOssName}, '%')</if>
+            <if test="ossUrl != null  and ossUrl != ''"> and ossUrl = #{ossUrl}</if>
+            <if test="waterOssUrl != null  and waterOssUrl != ''"> and waterOssUrl = #{waterOssUrl}</if>
+            <if test="htmlUrl != null  and htmlUrl != ''"> and htmlUrl = #{htmlUrl}</if>
+            <if test="uploadTime != null "> and uploadTime = #{uploadTime}</if>
+            <if test="delFlag != null "> and delFlag = #{delFlag}</if>
+        </where>
+    </select>
+
+    <select id="selectCmBrandFilesById" parameterType="String" resultMap="CmBrandFilesResult">
+        <include refid="selectCmBrandFilesVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertCmBrandFiles" parameterType="com.caimei365.user.model.po.CmBrandFiles" useGeneratedKeys="true" keyProperty="id">
+        insert into cm_brand_files
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">type,</if>
+            <if test="superId != null">superId,</if>
+            <if test="fileName != null">fileName,</if>
+            <if test="ossName != null">ossName,</if>
+            <if test="waterOssName != null">waterOssName,</if>
+            <if test="ossUrl != null">ossUrl,</if>
+            <if test="waterOssUrl != null">waterOssUrl,</if>
+            <if test="htmlUrl != null">htmlUrl,</if>
+            <if test="uploadTime != null">uploadTime,</if>
+            <if test="delFlag != null">delFlag,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="superId != null">#{superId},</if>
+            <if test="fileName != null">#{fileName},</if>
+            <if test="ossName != null">#{ossName},</if>
+            <if test="waterOssName != null">#{waterOssName},</if>
+            <if test="ossUrl != null">#{ossUrl},</if>
+            <if test="waterOssUrl != null">#{waterOssUrl},</if>
+            <if test="htmlUrl != null">#{htmlUrl},</if>
+            <if test="uploadTime != null">#{uploadTime},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+        </trim>
+    </insert>
+
+    <update id="updateCmBrandFiles" parameterType="com.caimei365.user.model.po.CmBrandFiles">
+        update cm_brand_files
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="superId != null">superId = #{superId},</if>
+            <if test="fileName != null">fileName = #{fileName},</if>
+            <if test="ossName != null">ossName = #{ossName},</if>
+            <if test="waterOssName != null">waterOssName = #{waterOssName},</if>
+            <if test="ossUrl != null">ossUrl = #{ossUrl},</if>
+            <if test="waterOssUrl != null">waterOssUrl = #{waterOssUrl},</if>
+            <if test="htmlUrl != null">htmlUrl = #{htmlUrl},</if>
+            <if test="uploadTime != null">uploadTime = #{uploadTime},</if>
+            <if test="delFlag != null">delFlag = #{delFlag},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCmBrandFilesById" parameterType="String">
+        delete from cm_brand_files where id = #{id}
+    </delete>
+
+    <delete id="deleteCmBrandFilesByIds" parameterType="String">
+        delete from cm_brand_files where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

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

@@ -0,0 +1,136 @@
+<?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.caimei365.user.mapper.CmBrandLandingMapper">
+    
+    <resultMap type="com.caimei365.user.model.po.CmBrandLanding" id="CmBrandLandingResult">
+        <result property="id"    column="id"    />
+        <result property="authUserId"    column="authUserId"    />
+        <result property="type"    column="type"    />
+        <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="delFlag"    column="delFlag"    />
+        <result property="updateTime"    column="updateTime"    />
+        <result property="addTime"    column="addTime"    />
+    </resultMap>
+
+    <sql id="selectCmBrandLandingVo">
+        select id, authUserId, type, headPcBanner, headAppBanner, jumpStatus, jumpPcPicture, jumpAppPicture, jumpLink, title, content, video, sort, pcStatus, appStatus, delFlag, updateTime, addTime from cm_brand_landing
+    </sql>
+
+    <select id="selectCmBrandLandingList" parameterType="com.caimei365.user.model.po.CmBrandLanding" resultMap="CmBrandLandingResult">
+        <include refid="selectCmBrandLandingVo"/>
+        <where>  
+            <if test="authUserId != null "> and authUserId = #{authUserId}</if>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="headPcBanner != null  and headPcBanner != ''"> and headPcBanner = #{headPcBanner}</if>
+            <if test="headAppBanner != null  and headAppBanner != ''"> and headAppBanner = #{headAppBanner}</if>
+            <if test="jumpStatus != null "> and jumpStatus = #{jumpStatus}</if>
+            <if test="jumpPcPicture != null  and jumpPcPicture != ''"> and jumpPcPicture = #{jumpPcPicture}</if>
+            <if test="jumpAppPicture != null  and jumpAppPicture != ''"> and jumpAppPicture = #{jumpAppPicture}</if>
+            <if test="jumpLink != null  and jumpLink != ''"> and jumpLink = #{jumpLink}</if>
+            <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="content != null  and content != ''"> and content = #{content}</if>
+            <if test="video != null  and video != ''"> and video = #{video}</if>
+            <if test="sort != null "> and sort = #{sort}</if>
+            <if test="pcStatus != null "> and pcStatus = #{pcStatus}</if>
+            <if test="appStatus != null "> and appStatus = #{appStatus}</if>
+            <if test="delFlag != null "> and delFlag = #{delFlag}</if>
+            <if test="updateTime != null "> and updateTime = #{updateTime}</if>
+            <if test="addTime != null "> and addTime = #{addTime}</if>
+        </where>
+    </select>
+    
+    <select id="selectCmBrandLandingById" parameterType="String" resultMap="CmBrandLandingResult">
+        <include refid="selectCmBrandLandingVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertCmBrandLanding" parameterType="com.caimei365.user.model.po.CmBrandLanding" useGeneratedKeys="true" keyProperty="id">
+        insert into cm_brand_landing
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="authUserId != null">authUserId,</if>
+            <if test="type != null">type,</if>
+            <if test="headPcBanner != null">headPcBanner,</if>
+            <if test="headAppBanner != null">headAppBanner,</if>
+            <if test="jumpStatus != null">jumpStatus,</if>
+            <if test="jumpPcPicture != null">jumpPcPicture,</if>
+            <if test="jumpAppPicture != null">jumpAppPicture,</if>
+            <if test="jumpLink != null">jumpLink,</if>
+            <if test="title != null">title,</if>
+            <if test="content != null">content,</if>
+            <if test="video != null">video,</if>
+            <if test="sort != null">sort,</if>
+            <if test="pcStatus != null">pcStatus,</if>
+            <if test="appStatus != null">appStatus,</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="authUserId != null">#{authUserId},</if>
+            <if test="type != null">#{type},</if>
+            <if test="headPcBanner != null">#{headPcBanner},</if>
+            <if test="headAppBanner != null">#{headAppBanner},</if>
+            <if test="jumpStatus != null">#{jumpStatus},</if>
+            <if test="jumpPcPicture != null">#{jumpPcPicture},</if>
+            <if test="jumpAppPicture != null">#{jumpAppPicture},</if>
+            <if test="jumpLink != null">#{jumpLink},</if>
+            <if test="title != null">#{title},</if>
+            <if test="content != null">#{content},</if>
+            <if test="video != null">#{video},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="pcStatus != null">#{pcStatus},</if>
+            <if test="appStatus != null">#{appStatus},</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="com.caimei365.user.model.po.CmBrandLanding">
+        update cm_brand_landing
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="authUserId != null">authUserId = #{authUserId},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="headPcBanner != null">headPcBanner = #{headPcBanner},</if>
+            <if test="headAppBanner != null">headAppBanner = #{headAppBanner},</if>
+            <if test="jumpStatus != null">jumpStatus = #{jumpStatus},</if>
+            <if test="jumpPcPicture != null">jumpPcPicture = #{jumpPcPicture},</if>
+            <if test="jumpAppPicture != null">jumpAppPicture = #{jumpAppPicture},</if>
+            <if test="jumpLink != null">jumpLink = #{jumpLink},</if>
+            <if test="title != null">title = #{title},</if>
+            <if test="content != null">content = #{content},</if>
+            <if test="video != null">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="delFlag != null">delFlag = #{delFlag},</if>
+            <if test="updateTime != null">updateTime = #{updateTime},</if>
+            <if test="addTime != null">addTime = #{addTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCmBrandLandingById" parameterType="String">
+        delete from cm_brand_landing where id = #{id}
+    </delete>
+
+    <delete id="deleteCmBrandLandingByIds" parameterType="String">
+        delete from cm_brand_landing where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>