dcs 1 year ago
parent
commit
bed0857e23

+ 3 - 3
virgo.api/src/main/java/com/bosshand/virgo/api/model/ProjectItemTargetRoom.java

@@ -108,7 +108,7 @@ public class ProjectItemTargetRoom {
     /**
      * 是否公开
      */
-    private long openState;
+    private Integer openState;
 
     /**
      * 单价
@@ -312,11 +312,11 @@ public class ProjectItemTargetRoom {
         this.tagList = tagList;
     }
 
-    public long getOpenState() {
+    public Integer getOpenState() {
         return openState;
     }
 
-    public void setOpenState(long openState) {
+    public void setOpenState(Integer openState) {
         this.openState = openState;
     }
 

+ 4 - 4
virgo.api/src/main/resources/mapper/ProjectItemTargetRoomMapper.xml

@@ -92,7 +92,7 @@
                     FIND_IN_SET (#{tagId}, tagIds)
                 </foreach>
             </if>
-            <if test="openState == 0 or openState == 1">
+            <if test="openState != null">
                 and openState = #{openState}
             </if>
             <if test="price != null">
@@ -169,7 +169,7 @@
                     FIND_IN_SET (#{tagId}, tagIds)
                 </foreach>
             </if>
-            <if test="openState == 0 or openState == 1">
+            <if test="openState != null">
                 and openState = #{openState}
             </if>
             <if test="price != null">
@@ -231,7 +231,7 @@
                     FIND_IN_SET (#{tagId}, tagIds)
                 </foreach>
             </if>
-            <if test="p.openState == 0 or p.openState == 1">
+            <if test="p.openState != null">
                 and openState = #{p.openState}
             </if>
             <if test="p.price != null">
@@ -269,7 +269,7 @@
             <if test="picture!=null">picture=#{picture},</if>
             <if test="video!=null">video=#{video},</if>
             <if test="tagIds!=null">tagIds=#{tagIds},</if>
-            <if test="openState == 0 or openState == 1">openState=#{openState},</if>
+            <if test="openState!=null">openState=#{openState},</if>
             <if test="data!=null">data=#{data},</if>
             <if test="price!=null">price=#{price},</if>
             <if test="payWay!=0">payWay=#{payWay},</if>