Browse Source

增加套系获取藏品数量实体类

sjx 2 years ago
parent
commit
eab281f33b

+ 0 - 12
ruoyi-system/src/main/java/com/ruoyi/system/domain/PostCollectionsSystem.java

@@ -38,9 +38,6 @@ public class PostCollectionsSystem extends BaseEntity
     @Excel(name = "结束展示时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date endTime;
 
-    /** 藏品数量 */
-    @Excel(name = "藏品数量")
-    private Long systemNumber;
 
     /** 0 未上架 1 已上架 */
     @Excel(name = "0 未上架 1 已上架")
@@ -110,15 +107,7 @@ public class PostCollectionsSystem extends BaseEntity
     {
         return endTime;
     }
-    public void setSystemNumber(Long systemNumber)
-    {
-        this.systemNumber = systemNumber;
-    }
 
-    public Long getSystemNumber()
-    {
-        return systemNumber;
-    }
     public void setStatus(String status)
     {
         this.status = status;
@@ -183,7 +172,6 @@ public class PostCollectionsSystem extends BaseEntity
                 .append("createTime", getCreateTime())
                 .append("startTime", getStartTime())
                 .append("endTime", getEndTime())
-                .append("systemNumber", getSystemNumber())
                 .append("status", getStatus())
                 .append("image", getImage())
                 .append("giftExchange", getGiftExchange())

+ 19 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/CollectionsVo.java

@@ -0,0 +1,19 @@
+package com.ruoyi.system.domain.vo;
+
+import com.ruoyi.system.domain.PostCollectionsSystem;
+
+/**
+ *  藏品数量
+ */
+public class CollectionsVo extends PostCollectionsSystem{
+    // 藏品数量
+    private Integer copies;
+
+    public Integer getCopies() {
+        return copies;
+    }
+
+    public void setCopies(Integer copies) {
+        this.copies = copies;
+    }
+}

+ 1 - 6
ruoyi-system/src/main/resources/mapper/system/PostCollectionsSystemMapper.xml

@@ -11,7 +11,6 @@
         <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="status"    column="status"    />
         <result property="image"    column="image"    />
         <result property="giftExchange"    column="gift_exchange"    />
@@ -22,7 +21,7 @@
     </resultMap>
 
     <sql id="selectPostCollectionsSystemVo">
-        select id, type, name, create_time, start_time, end_time, system_number, status, image, gift_exchange, update_time, create_user, update_user, del_flag from post_collections_system
+        select id, type, name, create_time, start_time, end_time, status, image, gift_exchange, update_time, create_user, update_user, del_flag from post_collections_system
     </sql>
 
     <select id="selectPostCollectionsSystemList" parameterType="PostCollectionsSystem" resultMap="PostCollectionsSystemResult">
@@ -32,7 +31,6 @@
             <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="status != null  and status != ''"> and status = #{status}</if>
             <if test="image != null  and image != ''"> and image = #{image}</if>
             <if test="giftExchange != null "> and gift_exchange = #{giftExchange}</if>
@@ -55,7 +53,6 @@
             <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="status != null">status,</if>
             <if test="image != null">image,</if>
             <if test="giftExchange != null">gift_exchange,</if>
@@ -70,7 +67,6 @@
             <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="status != null">#{status},</if>
             <if test="image != null">#{image},</if>
             <if test="giftExchange != null">#{giftExchange},</if>
@@ -89,7 +85,6 @@
             <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="status != null">status = #{status},</if>
             <if test="image != null">image = #{image},</if>
             <if test="giftExchange != null">gift_exchange = #{giftExchange},</if>