Browse Source

增加是否上架 是否上链字段

zhangyang 2 years ago
parent
commit
15b24b2488

+ 33 - 2
ruoyi-system/src/main/java/com/ruoyi/system/domain/PoTether.java

@@ -47,10 +47,23 @@ public class PoTether extends BaseEntity
     @Excel(name = "数量")
     private Long total;
 
-    /** 状态(0已上架 1未上架 2已上链 3未上链) */
-    @Excel(name = "状态", readConverterExp = "0=已上架,1=未上架,2=已上链,3=未上链")
+    /** 状态 */
+    @Excel(name = "状态")
     private Integer status;
 
+    /**
+     * 上架
+     */
+    private Integer grounding;
+
+    /**
+     * 上链
+     */
+    private Integer cochain;
+
+    /**
+     * 逻辑删除
+     */
     private String delFlag;
 
     public void setExchange(Integer exchange) {
@@ -61,6 +74,22 @@ public class PoTether extends BaseEntity
         return exchange;
     }
 
+    public void setGrounding(Integer grounding) {
+        this.grounding = grounding;
+    }
+
+    public Integer getGrounding() {
+        return grounding;
+    }
+
+    public void setCochain(Integer cochain) {
+        this.cochain = cochain;
+    }
+
+    public Integer getCochain() {
+        return cochain;
+    }
+
     public void setDelFlag(String delFlag) {
         this.delFlag = delFlag;
     }
@@ -149,6 +178,8 @@ public class PoTether extends BaseEntity
                 .append("delFlag",getDelFlag())
                 .append("image",getImage())
                 .append("exchange",getExchange())
+                .append("grounding",getGrounding())
+                .append("cochain",getCochain())
                 .toString();
     }
 }

+ 17 - 1
ruoyi-system/src/main/resources/mapper/system/PoTetherMapper.xml

@@ -19,6 +19,8 @@
         <result property="delFlag" column="del_flag"/>
         <result property="image"    column="image"    />
         <result property="exchange" column="exchange"/>
+        <result property="grounding"    column="grounding"    />
+        <result property="cochain"    column="cochain"    />
     </resultMap>
 
     <resultMap type="PoCollection" id="PoCollectionResult">
@@ -43,7 +45,7 @@
     </resultMap>
 
     <sql id="selectPoTetherVo">
-        select tether_id, tether_name, show_time, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange from po_tether
+        select tether_id, tether_name, show_time, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange ,grounding,cochain from po_tether
     </sql>
 
 <!--在售-->
@@ -56,6 +58,8 @@
             <if test="status != null  and status != ''"> and status = #{status}</if>
             <if test="image != null and image != '' ">and image = #{image}</if>
             <if test="exchange != null">and exchange = #{exchange}</if>
+            <if test="grounding != null">and grounding = #{grounding}</if>
+            <if test="cochain != null">and cochain = #{cochain}</if>
             and del_flag = '0'
             and sell_status = 0
         </where>
@@ -87,6 +91,8 @@
             <if test="status != null  and status != ''"> and status = #{status}</if>
             <if test="image != null and image != '' ">and image = #{image}</if>
             <if test="exchange != null">and exchange = #{exchange}</if>
+            <if test="grounding != null">and grounding = #{grounding}</if>
+            <if test="cochain != null">and cochain = #{cochain}</if>
             and del_flag = '0'
             and sell_status = 1
         </where>
@@ -102,6 +108,8 @@
             <if test="status != null  and status != ''"> and status = #{status}</if>
             <if test="image != null and image != '' ">and image = #{image}</if>
             <if test="exchange != null">and exchange = #{exchange}</if>
+            <if test="grounding != null">and grounding = #{grounding}</if>
+            <if test="cochain != null">and cochain = #{cochain}</if>
             and del_flag = '0'
             and sell_status = 2
         </where>
@@ -117,6 +125,8 @@
             <if test="status != null  and status != ''"> and status = #{status}</if>
             <if test="image != null and image != '' ">and image = #{image}</if>
             <if test="exchange != null">and exchange = #{exchange}</if>
+            <if test="grounding != null">and grounding = #{grounding}</if>
+            <if test="cochain != null">and cochain = #{cochain}</if>
             and del_flag = '0'
         </where>
 
@@ -156,6 +166,8 @@
             <if test="sellStatus != null">sell_status,</if>
             <if test="image != null and image != ''">image,</if>
             <if test="exchange != null">exchange,</if>
+            <if test="grounding != null">grounding,</if>
+            <if test="cochain != null">cochain,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="tetherName != null">#{tetherName},</if>
@@ -170,6 +182,8 @@
             <if test="sellStatus != null">#{sellStatus},</if>
             <if test="image != null and image != ''">#{image},</if>
             <if test="exchange != null ">#{exchange},</if>
+            <if test="grounding != null">#{grounding},</if>
+            <if test="cochain != null">#{cochain},</if>
         </trim>
     </insert>
 
@@ -188,6 +202,8 @@
             <if test="sellStatus != null">sell_status = #{sellStatus},</if>
             <if test="image != null and image != ''">image = #{image},</if>
             <if test="exchange != null">exchange = #{exchange},</if>
+            <if test="grounding != null">grounding = #{grounding},</if>
+            <if test="cochain != null">cochain = #{cochain},</if>
         </trim>
         where tether_id = #{tetherId}
     </update>