dcs 1 year ago
parent
commit
612e555f57

+ 3 - 3
virgo.core/src/main/java/com/bosshand/virgo/core/model/MgrClient.java

@@ -95,7 +95,7 @@ public class MgrClient {
     /**
      * 状态
      */
-    private int status;
+    private Integer status;
 
 
     public long getId() {
@@ -242,11 +242,11 @@ public class MgrClient {
         this.remark = remark;
     }
 
-    public int getStatus() {
+    public Integer getStatus() {
         return status;
     }
 
-    public void setStatus(int status) {
+    public void setStatus(Integer status) {
         this.status = status;
     }
 }

+ 2 - 2
virgo.core/src/main/resources/mapper/MgrClientMapper.xml

@@ -82,7 +82,7 @@
             <if test="visitingChannels!=null">and visitingChannels=#{visitingChannels}</if>
             <if test="visitingTime!=null">and visitingTime=#{visitingTime}</if>
             <if test="remark!=null">and remark=#{remark}</if>
-            <if test="status == 0 or status == 1">and status=#{status}</if>
+            <if test="status!=null">and status=#{status}</if>
         </where>
     </select>
 
@@ -105,7 +105,7 @@
             <if test="p.visitingChannels!=null">and visitingChannels=#{p.visitingChannels}</if>
             <if test="p.visitingTime!=null">and visitingTime=#{p.visitingTime}</if>
             <if test="p.remark!=null">and remark=#{p.remark}</if>
-            <if test="p.status == 0 or p.status == 1">and status=#{p.status}</if>
+            <if test="p.status!=null">and status=#{p.status}</if>
         </where>
         limit #{currIndex} , #{pageSize}
     </select>