chenzhengming před 2 roky
rodič
revize
8803dba0bd
18 změnil soubory, kde provedl 1796 přidání a 0 odebrání
  1. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/CollectionController.java
  2. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/CollectionSystemController.java
  3. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IssuerController.java
  4. 211 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Collection.java
  5. 197 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/CollectionSystem.java
  6. 98 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Issuer.java
  7. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/CollectionMapper.java
  8. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/CollectionSystemMapper.java
  9. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/IssuerMapper.java
  10. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ICollectionService.java
  11. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ICollectionSystemService.java
  12. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/IIssuerService.java
  13. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CollectionServiceImpl.java
  14. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CollectionSystemServiceImpl.java
  15. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IssuerServiceImpl.java
  16. 119 0
      ruoyi-system/src/main/resources/mapper/system/CollectionMapper.xml
  17. 114 0
      ruoyi-system/src/main/resources/mapper/system/CollectionSystemMapper.xml
  18. 91 0
      ruoyi-system/src/main/resources/mapper/system/IssuerMapper.xml

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/CollectionController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.Collection;
+import com.ruoyi.system.service.ICollectionService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@RestController
+@RequestMapping("/system/collection")
+public class CollectionController extends BaseController
+{
+    @Autowired
+    private ICollectionService collectionService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(Collection collection)
+    {
+        startPage();
+        List<Collection> list = collectionService.selectCollectionList(collection);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, Collection collection)
+    {
+        List<Collection> list = collectionService.selectCollectionList(collection);
+        ExcelUtil<Collection> util = new ExcelUtil<Collection>(Collection.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(collectionService.selectCollectionById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody Collection collection)
+    {
+        return toAjax(collectionService.insertCollection(collection));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody Collection collection)
+    {
+        return toAjax(collectionService.updateCollection(collection));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:collection:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(collectionService.deleteCollectionByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/CollectionSystemController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.CollectionSystem;
+import com.ruoyi.system.service.ICollectionSystemService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@RestController
+@RequestMapping("/system/system")
+public class CollectionSystemController extends BaseController
+{
+    @Autowired
+    private ICollectionSystemService collectionSystemService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CollectionSystem collectionSystem)
+    {
+        startPage();
+        List<CollectionSystem> list = collectionSystemService.selectCollectionSystemList(collectionSystem);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CollectionSystem collectionSystem)
+    {
+        List<CollectionSystem> list = collectionSystemService.selectCollectionSystemList(collectionSystem);
+        ExcelUtil<CollectionSystem> util = new ExcelUtil<CollectionSystem>(CollectionSystem.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(collectionSystemService.selectCollectionSystemById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CollectionSystem collectionSystem)
+    {
+        return toAjax(collectionSystemService.insertCollectionSystem(collectionSystem));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CollectionSystem collectionSystem)
+    {
+        return toAjax(collectionSystemService.updateCollectionSystem(collectionSystem));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:system:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(collectionSystemService.deleteCollectionSystemByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IssuerController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.Issuer;
+import com.ruoyi.system.service.IIssuerService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@RestController
+@RequestMapping("/system/issuer")
+public class IssuerController extends BaseController
+{
+    @Autowired
+    private IIssuerService issuerService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(Issuer issuer)
+    {
+        startPage();
+        List<Issuer> list = issuerService.selectIssuerList(issuer);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, Issuer issuer)
+    {
+        List<Issuer> list = issuerService.selectIssuerList(issuer);
+        ExcelUtil<Issuer> util = new ExcelUtil<Issuer>(Issuer.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(issuerService.selectIssuerById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody Issuer issuer)
+    {
+        return toAjax(issuerService.insertIssuer(issuer));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody Issuer issuer)
+    {
+        return toAjax(issuerService.updateIssuer(issuer));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(issuerService.deleteIssuerByIds(ids));
+    }
+}

+ 211 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/Collection.java

@@ -0,0 +1,211 @@
+package com.ruoyi.system.domain;
+
+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 com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 【请填写功能名称】对象 collection
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public class Collection extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 套系id */
+    @Excel(name = "套系id")
+    private Long systemId;
+
+    /** 发行方id */
+    @Excel(name = "发行方id")
+    private Long issuerId;
+
+    /** 套系名称 */
+    @Excel(name = "套系名称")
+    private String name;
+
+    /** 售卖开始时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "售卖开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date startTime;
+
+    /** 售卖结束时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "售卖结束时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date endTime;
+
+    /** 0 未上架 1 已上架 */
+    @Excel(name = "0 未上架 1 已上架")
+    private Long state;
+
+    /** 藏品数量 */
+    @Excel(name = "藏品数量")
+    private Long collectionsNumber;
+
+    /** 藏品故事 */
+    @Excel(name = "藏品故事")
+    private String collectionsStory;
+
+    /** 藏品图片储存地址 */
+    @Excel(name = "藏品图片储存地址")
+    private String image;
+
+    /** 创建者 */
+    @Excel(name = "创建者")
+    private String createUser;
+
+    /** 更新者 */
+    @Excel(name = "更新者")
+    private String updateUser;
+
+    /** 0 不删除 1 删除 */
+    @Excel(name = "0 不删除 1 删除")
+    private Long isDeleted;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setSystemId(Long systemId)
+    {
+        this.systemId = systemId;
+    }
+
+    public Long getSystemId()
+    {
+        return systemId;
+    }
+    public void setIssuerId(Long issuerId)
+    {
+        this.issuerId = issuerId;
+    }
+
+    public Long getIssuerId()
+    {
+        return issuerId;
+    }
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+    public void setStartTime(Date startTime)
+    {
+        this.startTime = startTime;
+    }
+
+    public Date getStartTime()
+    {
+        return startTime;
+    }
+    public void setEndTime(Date endTime)
+    {
+        this.endTime = endTime;
+    }
+
+    public Date getEndTime()
+    {
+        return endTime;
+    }
+    public void setState(Long state)
+    {
+        this.state = state;
+    }
+
+    public Long getState()
+    {
+        return state;
+    }
+    public void setCollectionsNumber(Long collectionsNumber)
+    {
+        this.collectionsNumber = collectionsNumber;
+    }
+
+    public Long getCollectionsNumber()
+    {
+        return collectionsNumber;
+    }
+    public void setCollectionsStory(String collectionsStory)
+    {
+        this.collectionsStory = collectionsStory;
+    }
+
+    public String getCollectionsStory()
+    {
+        return collectionsStory;
+    }
+    public void setImage(String image)
+    {
+        this.image = image;
+    }
+
+    public String getImage()
+    {
+        return image;
+    }
+    public void setCreateUser(String createUser)
+    {
+        this.createUser = createUser;
+    }
+
+    public String getCreateUser()
+    {
+        return createUser;
+    }
+    public void setUpdateUser(String updateUser)
+    {
+        this.updateUser = updateUser;
+    }
+
+    public String getUpdateUser()
+    {
+        return updateUser;
+    }
+    public void setIsDeleted(Long isDeleted)
+    {
+        this.isDeleted = isDeleted;
+    }
+
+    public Long getIsDeleted()
+    {
+        return isDeleted;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("systemId", getSystemId())
+                .append("issuerId", getIssuerId())
+                .append("name", getName())
+                .append("startTime", getStartTime())
+                .append("endTime", getEndTime())
+                .append("state", getState())
+                .append("collectionsNumber", getCollectionsNumber())
+                .append("collectionsStory", getCollectionsStory())
+                .append("image", getImage())
+                .append("createTime", getCreateTime())
+                .append("updateTime", getUpdateTime())
+                .append("createUser", getCreateUser())
+                .append("updateUser", getUpdateUser())
+                .append("isDeleted", getIsDeleted())
+                .toString();
+    }
+}

+ 197 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/CollectionSystem.java

@@ -0,0 +1,197 @@
+package com.ruoyi.system.domain;
+
+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 com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 【请填写功能名称】对象 collection_system
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public class CollectionSystem extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 0 在售 1 预售 2已过期 */
+    @Excel(name = "0 在售 1 预售 2已过期")
+    private Long type;
+
+    /** 藏品名称 */
+    @Excel(name = "藏品名称")
+    private String name;
+
+    /** 开始展示时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "开始展示时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date startTime;
+
+    /** 结束展示时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "结束展示时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date endTime;
+
+    /** 藏品数量 */
+    @Excel(name = "藏品数量")
+    private Long systemNumber;
+
+    /** 0 未上架 1 已上架 */
+    @Excel(name = "0 未上架 1 已上架")
+    private Long state;
+
+    /** 藏品套系图片储存地址 */
+    @Excel(name = "藏品套系图片储存地址")
+    private String image;
+
+    /** 0 线下礼品不兑换 1 线下礼品兑换 */
+    @Excel(name = "0 线下礼品不兑换 1 线下礼品兑换")
+    private Long giftExchange;
+
+    /** 创建者 */
+    @Excel(name = "创建者")
+    private String createUser;
+
+    /** 更新者 */
+    @Excel(name = "更新者")
+    private String updateUser;
+
+    /** 0 不删除 1 删除 */
+    @Excel(name = "0 不删除 1 删除")
+    private Long isDeleted;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setType(Long type)
+    {
+        this.type = type;
+    }
+
+    public Long getType()
+    {
+        return type;
+    }
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+    public void setStartTime(Date startTime)
+    {
+        this.startTime = startTime;
+    }
+
+    public Date getStartTime()
+    {
+        return startTime;
+    }
+    public void setEndTime(Date endTime)
+    {
+        this.endTime = endTime;
+    }
+
+    public Date getEndTime()
+    {
+        return endTime;
+    }
+    public void setSystemNumber(Long systemNumber)
+    {
+        this.systemNumber = systemNumber;
+    }
+
+    public Long getSystemNumber()
+    {
+        return systemNumber;
+    }
+    public void setState(Long state)
+    {
+        this.state = state;
+    }
+
+    public Long getState()
+    {
+        return state;
+    }
+    public void setImage(String image)
+    {
+        this.image = image;
+    }
+
+    public String getImage()
+    {
+        return image;
+    }
+    public void setGiftExchange(Long giftExchange)
+    {
+        this.giftExchange = giftExchange;
+    }
+
+    public Long getGiftExchange()
+    {
+        return giftExchange;
+    }
+    public void setCreateUser(String createUser)
+    {
+        this.createUser = createUser;
+    }
+
+    public String getCreateUser()
+    {
+        return createUser;
+    }
+    public void setUpdateUser(String updateUser)
+    {
+        this.updateUser = updateUser;
+    }
+
+    public String getUpdateUser()
+    {
+        return updateUser;
+    }
+    public void setIsDeleted(Long isDeleted)
+    {
+        this.isDeleted = isDeleted;
+    }
+
+    public Long getIsDeleted()
+    {
+        return isDeleted;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("type", getType())
+                .append("name", getName())
+                .append("createTime", getCreateTime())
+                .append("startTime", getStartTime())
+                .append("endTime", getEndTime())
+                .append("systemNumber", getSystemNumber())
+                .append("state", getState())
+                .append("image", getImage())
+                .append("giftExchange", getGiftExchange())
+                .append("updateTime", getUpdateTime())
+                .append("createUser", getCreateUser())
+                .append("updateUser", getUpdateUser())
+                .append("isDeleted", getIsDeleted())
+                .toString();
+    }
+}

+ 98 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/Issuer.java

@@ -0,0 +1,98 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 【请填写功能名称】对象 issuer
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public class Issuer extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 头像储存地址 */
+    @Excel(name = "头像储存地址")
+    private String avatar;
+
+    /** 发行方名称 */
+    @Excel(name = "发行方名称")
+    private String issuerName;
+
+    /** 电话 */
+    @Excel(name = "电话")
+    private String mobile;
+
+    /** 邮件 */
+    @Excel(name = "邮件")
+    private String email;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setAvatar(String avatar)
+    {
+        this.avatar = avatar;
+    }
+
+    public String getAvatar()
+    {
+        return avatar;
+    }
+    public void setIssuerName(String issuerName)
+    {
+        this.issuerName = issuerName;
+    }
+
+    public String getIssuerName()
+    {
+        return issuerName;
+    }
+    public void setMobile(String mobile)
+    {
+        this.mobile = mobile;
+    }
+
+    public String getMobile()
+    {
+        return mobile;
+    }
+    public void setEmail(String email)
+    {
+        this.email = email;
+    }
+
+    public String getEmail()
+    {
+        return email;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("avatar", getAvatar())
+                .append("issuerName", getIssuerName())
+                .append("mobile", getMobile())
+                .append("email", getEmail())
+                .append("remark", getRemark())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateBy", getUpdateBy())
+                .append("updateTime", getUpdateTime())
+                .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/CollectionMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.Collection;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface CollectionMapper
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public Collection selectCollectionById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collection 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<Collection> selectCollectionList(Collection collection);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertCollection(Collection collection);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateCollection(Collection collection);
+
+    /**
+     * 删除【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteCollectionById(Long id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCollectionByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/CollectionSystemMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.CollectionSystem;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface CollectionSystemMapper
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public CollectionSystem selectCollectionSystemById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<CollectionSystem> selectCollectionSystemList(CollectionSystem collectionSystem);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertCollectionSystem(CollectionSystem collectionSystem);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateCollectionSystem(CollectionSystem collectionSystem);
+
+    /**
+     * 删除【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteCollectionSystemById(Long id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCollectionSystemByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/IssuerMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.Issuer;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface IssuerMapper
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public Issuer selectIssuerById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<Issuer> selectIssuerList(Issuer issuer);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertIssuer(Issuer issuer);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateIssuer(Issuer issuer);
+
+    /**
+     * 删除【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteIssuerById(Long id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIssuerByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ICollectionService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.Collection;
+
+/**
+ * 【请填写功能名称】Service接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface ICollectionService
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public Collection selectCollectionById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collection 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<Collection> selectCollectionList(Collection collection);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertCollection(Collection collection);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateCollection(Collection collection);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteCollectionByIds(Long[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteCollectionById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ICollectionSystemService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.CollectionSystem;
+
+/**
+ * 【请填写功能名称】Service接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface ICollectionSystemService
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public CollectionSystem selectCollectionSystemById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<CollectionSystem> selectCollectionSystemList(CollectionSystem collectionSystem);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertCollectionSystem(CollectionSystem collectionSystem);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateCollectionSystem(CollectionSystem collectionSystem);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteCollectionSystemByIds(Long[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteCollectionSystemById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IIssuerService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.Issuer;
+
+/**
+ * 【请填写功能名称】Service接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface IIssuerService
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public Issuer selectIssuerById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<Issuer> selectIssuerList(Issuer issuer);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertIssuer(Issuer issuer);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateIssuer(Issuer issuer);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteIssuerByIds(Long[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteIssuerById(Long id);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CollectionServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.CollectionMapper;
+import com.ruoyi.system.domain.Collection;
+import com.ruoyi.system.service.ICollectionService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@Service
+public class CollectionServiceImpl implements ICollectionService
+{
+    @Autowired
+    private CollectionMapper collectionMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public Collection selectCollectionById(Long id)
+    {
+        return collectionMapper.selectCollectionById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collection 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<Collection> selectCollectionList(Collection collection)
+    {
+        return collectionMapper.selectCollectionList(collection);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertCollection(Collection collection)
+    {
+        collection.setCreateTime(DateUtils.getNowDate());
+        return collectionMapper.insertCollection(collection);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collection 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateCollection(Collection collection)
+    {
+        collection.setUpdateTime(DateUtils.getNowDate());
+        return collectionMapper.updateCollection(collection);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCollectionByIds(Long[] ids)
+    {
+        return collectionMapper.deleteCollectionByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCollectionById(Long id)
+    {
+        return collectionMapper.deleteCollectionById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CollectionSystemServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.CollectionSystemMapper;
+import com.ruoyi.system.domain.CollectionSystem;
+import com.ruoyi.system.service.ICollectionSystemService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@Service
+public class CollectionSystemServiceImpl implements ICollectionSystemService
+{
+    @Autowired
+    private CollectionSystemMapper collectionSystemMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public CollectionSystem selectCollectionSystemById(Long id)
+    {
+        return collectionSystemMapper.selectCollectionSystemById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<CollectionSystem> selectCollectionSystemList(CollectionSystem collectionSystem)
+    {
+        return collectionSystemMapper.selectCollectionSystemList(collectionSystem);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertCollectionSystem(CollectionSystem collectionSystem)
+    {
+        collectionSystem.setCreateTime(DateUtils.getNowDate());
+        return collectionSystemMapper.insertCollectionSystem(collectionSystem);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param collectionSystem 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateCollectionSystem(CollectionSystem collectionSystem)
+    {
+        collectionSystem.setUpdateTime(DateUtils.getNowDate());
+        return collectionSystemMapper.updateCollectionSystem(collectionSystem);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCollectionSystemByIds(Long[] ids)
+    {
+        return collectionSystemMapper.deleteCollectionSystemByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCollectionSystemById(Long id)
+    {
+        return collectionSystemMapper.deleteCollectionSystemById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IssuerServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.IssuerMapper;
+import com.ruoyi.system.domain.Issuer;
+import com.ruoyi.system.service.IIssuerService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@Service
+public class IssuerServiceImpl implements IIssuerService
+{
+    @Autowired
+    private IssuerMapper issuerMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public Issuer selectIssuerById(Long id)
+    {
+        return issuerMapper.selectIssuerById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<Issuer> selectIssuerList(Issuer issuer)
+    {
+        return issuerMapper.selectIssuerList(issuer);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertIssuer(Issuer issuer)
+    {
+        issuer.setCreateTime(DateUtils.getNowDate());
+        return issuerMapper.insertIssuer(issuer);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param issuer 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateIssuer(Issuer issuer)
+    {
+        issuer.setUpdateTime(DateUtils.getNowDate());
+        return issuerMapper.updateIssuer(issuer);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIssuerByIds(Long[] ids)
+    {
+        return issuerMapper.deleteIssuerByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIssuerById(Long id)
+    {
+        return issuerMapper.deleteIssuerById(id);
+    }
+}

+ 119 - 0
ruoyi-system/src/main/resources/mapper/system/CollectionMapper.xml

@@ -0,0 +1,119 @@
+<?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.ruoyi.system.mapper.CollectionMapper">
+
+    <resultMap type="Collection" id="CollectionResult">
+        <result property="id"    column="id"    />
+        <result property="systemId"    column="system_id"    />
+        <result property="issuerId"    column="issuer_id"    />
+        <result property="name"    column="name"    />
+        <result property="startTime"    column="start_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="state"    column="state"    />
+        <result property="collectionsNumber"    column="collections_number"    />
+        <result property="collectionsStory"    column="collections_story"    />
+        <result property="image"    column="image"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="createUser"    column="create_user"    />
+        <result property="updateUser"    column="update_user"    />
+        <result property="isDeleted"    column="is_deleted"    />
+    </resultMap>
+
+    <sql id="selectCollectionVo">
+        select id, system_id, issuer_id, name, start_time, end_time, state, collections_number, collections_story, image, create_time, update_time, create_user, update_user, is_deleted from collection
+    </sql>
+
+    <select id="selectCollectionList" parameterType="Collection" resultMap="CollectionResult">
+        <include refid="selectCollectionVo"/>
+        <where>
+            <if test="systemId != null "> and system_id = #{systemId}</if>
+            <if test="issuerId != null "> and issuer_id = #{issuerId}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="startTime != null "> and start_time = #{startTime}</if>
+            <if test="endTime != null "> and end_time = #{endTime}</if>
+            <if test="state != null "> and state = #{state}</if>
+            <if test="collectionsNumber != null "> and collections_number = #{collectionsNumber}</if>
+            <if test="collectionsStory != null  and collectionsStory != ''"> and collections_story = #{collectionsStory}</if>
+            <if test="image != null  and image != ''"> and image = #{image}</if>
+            <if test="createUser != null  and createUser != ''"> and create_user = #{createUser}</if>
+            <if test="updateUser != null  and updateUser != ''"> and update_user = #{updateUser}</if>
+            <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
+        </where>
+    </select>
+
+    <select id="selectCollectionById" parameterType="Long" resultMap="CollectionResult">
+        <include refid="selectCollectionVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertCollection" parameterType="Collection" useGeneratedKeys="true" keyProperty="id">
+        insert into collection
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="systemId != null">system_id,</if>
+            <if test="issuerId != null">issuer_id,</if>
+            <if test="name != null">name,</if>
+            <if test="startTime != null">start_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="state != null">state,</if>
+            <if test="collectionsNumber != null">collections_number,</if>
+            <if test="collectionsStory != null">collections_story,</if>
+            <if test="image != null">image,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="createUser != null">create_user,</if>
+            <if test="updateUser != null">update_user,</if>
+            <if test="isDeleted != null">is_deleted,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="systemId != null">#{systemId},</if>
+            <if test="issuerId != null">#{issuerId},</if>
+            <if test="name != null">#{name},</if>
+            <if test="startTime != null">#{startTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="state != null">#{state},</if>
+            <if test="collectionsNumber != null">#{collectionsNumber},</if>
+            <if test="collectionsStory != null">#{collectionsStory},</if>
+            <if test="image != null">#{image},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="createUser != null">#{createUser},</if>
+            <if test="updateUser != null">#{updateUser},</if>
+            <if test="isDeleted != null">#{isDeleted},</if>
+        </trim>
+    </insert>
+
+    <update id="updateCollection" parameterType="Collection">
+        update collection
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="systemId != null">system_id = #{systemId},</if>
+            <if test="issuerId != null">issuer_id = #{issuerId},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="startTime != null">start_time = #{startTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="state != null">state = #{state},</if>
+            <if test="collectionsNumber != null">collections_number = #{collectionsNumber},</if>
+            <if test="collectionsStory != null">collections_story = #{collectionsStory},</if>
+            <if test="image != null">image = #{image},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createUser != null">create_user = #{createUser},</if>
+            <if test="updateUser != null">update_user = #{updateUser},</if>
+            <if test="isDeleted != null">is_deleted = #{isDeleted},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCollectionById" parameterType="Long">
+        delete from collection where id = #{id}
+    </delete>
+
+    <delete id="deleteCollectionByIds" parameterType="String">
+        delete from collection where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 114 - 0
ruoyi-system/src/main/resources/mapper/system/CollectionSystemMapper.xml

@@ -0,0 +1,114 @@
+<?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.ruoyi.system.mapper.CollectionSystemMapper">
+
+    <resultMap type="CollectionSystem" id="CollectionSystemResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="name"    column="name"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="startTime"    column="start_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="systemNumber"    column="system_number"    />
+        <result property="state"    column="state"    />
+        <result property="image"    column="image"    />
+        <result property="giftExchange"    column="gift_exchange"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="createUser"    column="create_user"    />
+        <result property="updateUser"    column="update_user"    />
+        <result property="isDeleted"    column="is_deleted"    />
+    </resultMap>
+
+    <sql id="selectCollectionSystemVo">
+        select id, type, name, create_time, start_time, end_time, system_number, state, image, gift_exchange, update_time, create_user, update_user, is_deleted from collection_system
+    </sql>
+
+    <select id="selectCollectionSystemList" parameterType="CollectionSystem" resultMap="CollectionSystemResult">
+        <include refid="selectCollectionSystemVo"/>
+        <where>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="startTime != null "> and start_time = #{startTime}</if>
+            <if test="endTime != null "> and end_time = #{endTime}</if>
+            <if test="systemNumber != null "> and system_number = #{systemNumber}</if>
+            <if test="state != null "> and state = #{state}</if>
+            <if test="image != null  and image != ''"> and image = #{image}</if>
+            <if test="giftExchange != null "> and gift_exchange = #{giftExchange}</if>
+            <if test="createUser != null  and createUser != ''"> and create_user = #{createUser}</if>
+            <if test="updateUser != null  and updateUser != ''"> and update_user = #{updateUser}</if>
+            <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if>
+        </where>
+    </select>
+
+    <select id="selectCollectionSystemById" parameterType="Long" resultMap="CollectionSystemResult">
+        <include refid="selectCollectionSystemVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertCollectionSystem" parameterType="CollectionSystem" useGeneratedKeys="true" keyProperty="id">
+        insert into collection_system
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">type,</if>
+            <if test="name != null">name,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="startTime != null">start_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="systemNumber != null">system_number,</if>
+            <if test="state != null">state,</if>
+            <if test="image != null">image,</if>
+            <if test="giftExchange != null">gift_exchange,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="createUser != null">create_user,</if>
+            <if test="updateUser != null">update_user,</if>
+            <if test="isDeleted != null">is_deleted,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="name != null">#{name},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="startTime != null">#{startTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="systemNumber != null">#{systemNumber},</if>
+            <if test="state != null">#{state},</if>
+            <if test="image != null">#{image},</if>
+            <if test="giftExchange != null">#{giftExchange},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="createUser != null">#{createUser},</if>
+            <if test="updateUser != null">#{updateUser},</if>
+            <if test="isDeleted != null">#{isDeleted},</if>
+        </trim>
+    </insert>
+
+    <update id="updateCollectionSystem" parameterType="CollectionSystem">
+        update collection_system
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="startTime != null">start_time = #{startTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="systemNumber != null">system_number = #{systemNumber},</if>
+            <if test="state != null">state = #{state},</if>
+            <if test="image != null">image = #{image},</if>
+            <if test="giftExchange != null">gift_exchange = #{giftExchange},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createUser != null">create_user = #{createUser},</if>
+            <if test="updateUser != null">update_user = #{updateUser},</if>
+            <if test="isDeleted != null">is_deleted = #{isDeleted},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCollectionSystemById" parameterType="Long">
+        delete from collection_system where id = #{id}
+    </delete>
+
+    <delete id="deleteCollectionSystemByIds" parameterType="String">
+        delete from collection_system where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 91 - 0
ruoyi-system/src/main/resources/mapper/system/IssuerMapper.xml

@@ -0,0 +1,91 @@
+<?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.ruoyi.system.mapper.IssuerMapper">
+
+    <resultMap type="Issuer" id="IssuerResult">
+        <result property="id"    column="id"    />
+        <result property="avatar"    column="avatar"    />
+        <result property="issuerName"    column="Issuer_name"    />
+        <result property="mobile"    column="mobile"    />
+        <result property="email"    column="email"    />
+        <result property="remark"    column="remark"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectIssuerVo">
+        select id, avatar, Issuer_name, mobile, email, remark, create_by, create_time, update_by, update_time from issuer
+    </sql>
+
+    <select id="selectIssuerList" parameterType="Issuer" resultMap="IssuerResult">
+        <include refid="selectIssuerVo"/>
+        <where>
+            <if test="avatar != null  and avatar != ''"> and avatar = #{avatar}</if>
+            <if test="issuerName != null  and issuerName != ''"> and Issuer_name like concat('%', #{issuerName}, '%')</if>
+            <if test="mobile != null  and mobile != ''"> and mobile = #{mobile}</if>
+            <if test="email != null  and email != ''"> and email = #{email}</if>
+        </where>
+    </select>
+
+    <select id="selectIssuerById" parameterType="Long" resultMap="IssuerResult">
+        <include refid="selectIssuerVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertIssuer" parameterType="Issuer" useGeneratedKeys="true" keyProperty="id">
+        insert into issuer
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="avatar != null">avatar,</if>
+            <if test="issuerName != null">Issuer_name,</if>
+            <if test="mobile != null">mobile,</if>
+            <if test="email != null">email,</if>
+            <if test="remark != null">remark,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="avatar != null">#{avatar},</if>
+            <if test="issuerName != null">#{issuerName},</if>
+            <if test="mobile != null">#{mobile},</if>
+            <if test="email != null">#{email},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+        </trim>
+    </insert>
+
+    <update id="updateIssuer" parameterType="Issuer">
+        update issuer
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="avatar != null">avatar = #{avatar},</if>
+            <if test="issuerName != null">Issuer_name = #{issuerName},</if>
+            <if test="mobile != null">mobile = #{mobile},</if>
+            <if test="email != null">email = #{email},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIssuerById" parameterType="Long">
+        delete from issuer where id = #{id}
+    </delete>
+
+    <delete id="deleteIssuerByIds" parameterType="String">
+        delete from issuer where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>