Browse Source

套系对应藏品数量查询

zhangyang 2 năm trước cách đây
mục cha
commit
0286945972

+ 105 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoTetherandcollectionController.java

@@ -0,0 +1,105 @@
+package com.ruoyi.web.controller.system;
+
+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.PoTetherandcollection;
+import com.ruoyi.system.service.IPoTetherandcollectionService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 【请填写功能名称】Controller
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@RestController
+@RequestMapping("/system/TetherAndcollection")
+class PoTetherandcollectionController extends BaseController
+{
+    @Autowired
+    private IPoTetherandcollectionService poTetherandcollectionService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PoTetherandcollection poTetherandcollection)
+    {
+        startPage();
+        List<PoTetherandcollection> list = poTetherandcollectionService.selectPoTetherandcollectionList(poTetherandcollection);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PoTetherandcollection poTetherandcollection)
+    {
+        List<PoTetherandcollection> list = poTetherandcollectionService.selectPoTetherandcollectionList(poTetherandcollection);
+        ExcelUtil<PoTetherandcollection> util = new ExcelUtil<PoTetherandcollection>(PoTetherandcollection.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:query')")
+    @GetMapping(value = "/{collectionId}")
+    public AjaxResult getInfo(@PathVariable("collectionId") Long collectionId)
+    {
+        return success(poTetherandcollectionService.selectPoTetherandcollectionByCollectionId(collectionId));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PoTetherandcollection poTetherandcollection)
+    {
+        return toAjax(poTetherandcollectionService.insertPoTetherandcollection(poTetherandcollection));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PoTetherandcollection poTetherandcollection)
+    {
+        return toAjax(poTetherandcollectionService.updatePoTetherandcollection(poTetherandcollection));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:TetherAndcollection:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{collectionIds}")
+    public AjaxResult remove(@PathVariable Long[] collectionIds)
+    {
+        return toAjax(poTetherandcollectionService.deletePoTetherandcollectionByCollectionIds(collectionIds));
+    }
+}
+

+ 224 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/PoTetherandcollection.java

@@ -0,0 +1,224 @@
+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;
+
+/**
+ * 【请填写功能名称】对象 po_TetherAndcollection
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public class PoTetherandcollection extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 藏品Id */
+    private Long collectionId;
+
+    /** 藏品名字 */
+    @Excel(name = "藏品名字")
+    private String collectionTitle;
+
+    /** 藏品状态(0正常 1禁止) */
+    @Excel(name = "藏品状态", readConverterExp = "0=正常,1=禁止")
+    private String status;
+
+    /** 藏品类型(0=邮票 1其他) */
+    @Excel(name = "藏品类型", readConverterExp = "0=邮票,1=其他")
+    private Long collectionType;
+
+    /** 是否删除(1删除 0未删除) */
+    private Long delFlag;
+
+    /** 藏品数量 */
+    @Excel(name = "藏品数量")
+    private Long total;
+
+    /** 藏品图片 */
+    @Excel(name = "藏品图片")
+    private String image;
+
+    /** 模版 */
+    @Excel(name = "模版")
+    private String formwork;
+
+    /** 藏品价格 */
+    @Excel(name = "藏品价格")
+    private Long price;
+
+    /** 发行方 */
+    @Excel(name = "发行方")
+    private Long publisherName;
+
+    /** 作者故事 */
+    @Excel(name = "作者故事")
+    private String story;
+
+    /** 是否上架(0上架 1未上架) */
+    @Excel(name = "是否上架", readConverterExp = "0=上架,1=未上架")
+    private Long grounding;
+
+    /** 是否上链(0上链1未上链) */
+    @Excel(name = "是否上链", readConverterExp = "0=上链1未上链")
+    private Long cochain;
+
+    /** 套系id */
+    @Excel(name = "套系id")
+    private Long tetherId;
+
+    public void setCollectionId(Long collectionId)
+    {
+        this.collectionId = collectionId;
+    }
+
+    public Long getCollectionId()
+    {
+        return collectionId;
+    }
+    public void setCollectionTitle(String collectionTitle)
+    {
+        this.collectionTitle = collectionTitle;
+    }
+
+    public String getCollectionTitle()
+    {
+        return collectionTitle;
+    }
+    public void setStatus(String status)
+    {
+        this.status = status;
+    }
+
+    public String getStatus()
+    {
+        return status;
+    }
+    public void setCollectionType(Long collectionType)
+    {
+        this.collectionType = collectionType;
+    }
+
+    public Long getCollectionType()
+    {
+        return collectionType;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setTotal(Long total)
+    {
+        this.total = total;
+    }
+
+    public Long getTotal()
+    {
+        return total;
+    }
+    public void setImage(String image)
+    {
+        this.image = image;
+    }
+
+    public String getImage()
+    {
+        return image;
+    }
+    public void setFormwork(String formwork)
+    {
+        this.formwork = formwork;
+    }
+
+    public String getFormwork()
+    {
+        return formwork;
+    }
+    public void setPrice(Long price)
+    {
+        this.price = price;
+    }
+
+    public Long getPrice()
+    {
+        return price;
+    }
+    public void setPublisherName(Long publisherName)
+    {
+        this.publisherName = publisherName;
+    }
+
+    public Long getPublisherName()
+    {
+        return publisherName;
+    }
+    public void setStory(String story)
+    {
+        this.story = story;
+    }
+
+    public String getStory()
+    {
+        return story;
+    }
+    public void setGrounding(Long grounding)
+    {
+        this.grounding = grounding;
+    }
+
+    public Long getGrounding()
+    {
+        return grounding;
+    }
+    public void setCochain(Long cochain)
+    {
+        this.cochain = cochain;
+    }
+
+    public Long getCochain()
+    {
+        return cochain;
+    }
+    public void setTetherId(Long tetherId)
+    {
+        this.tetherId = tetherId;
+    }
+
+    public Long getTetherId()
+    {
+        return tetherId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("collectionId", getCollectionId())
+                .append("collectionTitle", getCollectionTitle())
+                .append("status", getStatus())
+                .append("collectionType", getCollectionType())
+                .append("createTime", getCreateTime())
+                .append("createBy", getCreateBy())
+                .append("updateTime", getUpdateTime())
+                .append("updateBy", getUpdateBy())
+                .append("delFlag", getDelFlag())
+                .append("total", getTotal())
+                .append("remark", getRemark())
+                .append("image", getImage())
+                .append("formwork", getFormwork())
+                .append("price", getPrice())
+                .append("publisherName", getPublisherName())
+                .append("story", getStory())
+                .append("grounding", getGrounding())
+                .append("cochain", getCochain())
+                .append("tetherId", getTetherId())
+                .toString();
+    }
+}
+

+ 70 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PoTetherandcollectionMapper.java

@@ -0,0 +1,70 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.PoTetherandcollection;
+import org.apache.ibatis.annotations.Param;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface PoTetherandcollectionMapper
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public PoTetherandcollection selectPoTetherandcollectionByCollectionId(Long collectionId);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<PoTetherandcollection> selectPoTetherandcollectionList(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertPoTetherandcollection(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    public int updatePoTetherandcollection(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 删除【请填写功能名称】
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deletePoTetherandcollectionByCollectionId(Long collectionId);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param collectionIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePoTetherandcollectionByCollectionIds(Long[] collectionIds);
+
+    /**
+     *
+     * @param
+     */
+    void insertPoTetherandcollectionWithStream( List<PoTetherandcollection> list);
+
+}
+

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.PoTetherandcollection;
+
+/**
+ * 【请填写功能名称】Service接口
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+public interface IPoTetherandcollectionService
+{
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public PoTetherandcollection selectPoTetherandcollectionByCollectionId(Long collectionId);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<PoTetherandcollection> selectPoTetherandcollectionList(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertPoTetherandcollection(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    public int updatePoTetherandcollection(PoTetherandcollection poTetherandcollection);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param collectionIds 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deletePoTetherandcollectionByCollectionIds(Long[] collectionIds);
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deletePoTetherandcollectionByCollectionId(Long collectionId);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PoTetherandcollectionServiceImpl.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.PoTetherandcollectionMapper;
+import com.ruoyi.system.domain.PoTetherandcollection;
+import com.ruoyi.system.service.IPoTetherandcollectionService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2023-02-14
+ */
+@Service
+public class PoTetherandcollectionServiceImpl implements IPoTetherandcollectionService
+{
+    @Autowired
+    private PoTetherandcollectionMapper poTetherandcollectionMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public PoTetherandcollection selectPoTetherandcollectionByCollectionId(Long collectionId)
+    {
+        return poTetherandcollectionMapper.selectPoTetherandcollectionByCollectionId(collectionId);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<PoTetherandcollection> selectPoTetherandcollectionList(PoTetherandcollection poTetherandcollection)
+    {
+        return poTetherandcollectionMapper.selectPoTetherandcollectionList(poTetherandcollection);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertPoTetherandcollection(PoTetherandcollection poTetherandcollection)
+    {
+        poTetherandcollection.setCreateTime(DateUtils.getNowDate());
+        return poTetherandcollectionMapper.insertPoTetherandcollection(poTetherandcollection);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param poTetherandcollection 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updatePoTetherandcollection(PoTetherandcollection poTetherandcollection)
+    {
+        poTetherandcollection.setUpdateTime(DateUtils.getNowDate());
+        return poTetherandcollectionMapper.updatePoTetherandcollection(poTetherandcollection);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param collectionIds 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deletePoTetherandcollectionByCollectionIds(Long[] collectionIds)
+    {
+        return poTetherandcollectionMapper.deletePoTetherandcollectionByCollectionIds(collectionIds);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param collectionId 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deletePoTetherandcollectionByCollectionId(Long collectionId)
+    {
+        return poTetherandcollectionMapper.deletePoTetherandcollectionByCollectionId(collectionId);
+    }
+}

+ 140 - 0
ruoyi-system/src/main/resources/mapper/system/PoTetherandcollectionMapper.xml

@@ -0,0 +1,140 @@
+<?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.PoTetherandcollectionMapper">
+
+    <resultMap type="PoTetherandcollection" id="PoTetherandcollectionResult">
+        <result property="collectionId"    column="collection_id"    />
+        <result property="collectionTitle"    column="collection_title"    />
+        <result property="status"    column="status"    />
+        <result property="collectionType"    column="collection_type"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="total"    column="total"    />
+        <result property="remark"    column="remark"    />
+        <result property="image"    column="image"    />
+        <result property="formwork"    column="formwork"    />
+        <result property="price"    column="price"    />
+        <result property="publisherName"    column="publisher_name"    />
+        <result property="story"    column="story"    />
+        <result property="grounding"    column="grounding"    />
+        <result property="cochain"    column="cochain"    />
+        <result property="tetherId"    column="tether_id"    />
+    </resultMap>
+
+    <sql id="selectPoTetherandcollectionVo">
+        select collection_id, collection_title, status, collection_type, create_time, create_by, update_time, update_by, del_flag, total, remark, image, formwork, price, publisher_name, story, grounding, cochain, tether_id from po_TetherAndcollection
+    </sql>
+
+    <select id="selectPoTetherandcollectionList" parameterType="PoTetherandcollection" resultMap="PoTetherandcollectionResult">
+        <include refid="selectPoTetherandcollectionVo"/>
+        <where>
+            <if test="collectionTitle != null  and collectionTitle != ''"> and collection_title = #{collectionTitle}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="collectionType != null "> and collection_type = #{collectionType}</if>
+            <if test="total != null "> and total = #{total}</if>
+            <if test="image != null  and image != ''"> and image = #{image}</if>
+            <if test="formwork != null  and formwork != ''"> and formwork = #{formwork}</if>
+            <if test="price != null "> and price = #{price}</if>
+            <if test="publisherName != null "> and publisher_name like concat('%', #{publisherName}, '%')</if>
+            <if test="story != null  and story != ''"> and story = #{story}</if>
+            <if test="grounding != null "> and grounding = #{grounding}</if>
+            <if test="cochain != null "> and cochain = #{cochain}</if>
+            <if test="tetherId != null "> and tether_id = #{tetherId}</if>
+        </where>
+    </select>
+
+    <select id="selectPoTetherandcollectionByCollectionId" parameterType="Long" resultMap="PoTetherandcollectionResult">
+        <include refid="selectPoTetherandcollectionVo"/>
+        where collection_id = #{collectionId}
+    </select>
+
+    <insert id="insertPoTetherandcollection" parameterType="PoTetherandcollection" useGeneratedKeys="true" keyProperty="collectionId">
+        insert into po_TetherAndcollection
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="collectionTitle != null and collectionTitle != ''">collection_title,</if>
+            <if test="status != null">status,</if>
+            <if test="collectionType != null">collection_type,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="total != null">total,</if>
+            <if test="remark != null">remark,</if>
+            <if test="image != null">image,</if>
+            <if test="formwork != null">formwork,</if>
+            <if test="price != null">price,</if>
+            <if test="publisherName != null">publisher_name,</if>
+            <if test="story != null">story,</if>
+            <if test="grounding != null">grounding,</if>
+            <if test="cochain != null">cochain,</if>
+            <if test="tetherId != null">tether_id,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="collectionTitle != null and collectionTitle != ''">#{collectionTitle},</if>
+            <if test="status != null">#{status},</if>
+            <if test="collectionType != null">#{collectionType},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="total != null">#{total},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="image != null">#{image},</if>
+            <if test="formwork != null">#{formwork},</if>
+            <if test="price != null">#{price},</if>
+            <if test="publisherName != null">#{publisherName},</if>
+            <if test="story != null">#{story},</if>
+            <if test="grounding != null">#{grounding},</if>
+            <if test="cochain != null">#{cochain},</if>
+            <if test="tetherId != null">#{tetherId},</if>
+        </trim>
+    </insert>
+
+    <insert id="insertPoTetherandcollectionWithStream" parameterType="java.util.List" >
+
+    </insert>
+
+    <update id="updatePoTetherandcollection" parameterType="PoTetherandcollection">
+        update po_TetherAndcollection
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="collectionTitle != null and collectionTitle != ''">collection_title = #{collectionTitle},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="collectionType != null">collection_type = #{collectionType},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="total != null">total = #{total},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="image != null">image = #{image},</if>
+            <if test="formwork != null">formwork = #{formwork},</if>
+            <if test="price != null">price = #{price},</if>
+            <if test="publisherName != null">publisher_name = #{publisherName},</if>
+            <if test="story != null">story = #{story},</if>
+            <if test="grounding != null">grounding = #{grounding},</if>
+            <if test="cochain != null">cochain = #{cochain},</if>
+            <if test="tetherId != null">tether_id = #{tetherId},</if>
+        </trim>
+        where collection_id = #{collectionId}
+    </update>
+
+    <delete id="deletePoTetherandcollectionByCollectionId" parameterType="Long">
+        delete from po_TetherAndcollection where collection_id = #{collectionId}
+    </delete>
+
+    <delete id="deletePoTetherandcollectionByCollectionIds" parameterType="String">
+        delete from po_TetherAndcollection where collection_id in
+        <foreach item="collectionId" collection="array" open="(" separator="," close=")">
+            #{collectionId}
+        </foreach>
+    </delete>
+</mapper>
+