dcs 1 年之前
父節點
當前提交
45f72b5d34

+ 10 - 0
virgo.api/src/main/java/com/bosshand/virgo/api/model/PaymentOrdinary.java

@@ -76,6 +76,8 @@ public class PaymentOrdinary {
      */
      */
     private Integer status;
     private Integer status;
 
 
+    private List<Integer> statusList;
+
     /**
     /**
      * 类型
      * 类型
      */
      */
@@ -205,6 +207,14 @@ public class PaymentOrdinary {
         this.status = status;
         this.status = status;
     }
     }
 
 
+    public List<Integer> getStatusList() {
+        return statusList;
+    }
+
+    public void setStatusList(List<Integer> statusList) {
+        this.statusList = statusList;
+    }
+
     public Integer getType() {
     public Integer getType() {
         return type;
         return type;
     }
     }

+ 10 - 0
virgo.api/src/main/resources/mapper/PaymentOrdinaryMapper.xml

@@ -77,6 +77,11 @@
             <if test="status != null">
             <if test="status != null">
                 and status = #{status}
                 and status = #{status}
             </if>
             </if>
+            <if test="statusList!=null"> and status in
+                <foreach item="item" index="index" collection="statusList" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
             <if test="type != null">
             <if test="type != null">
                 and type = #{type}
                 and type = #{type}
             </if>
             </if>
@@ -121,6 +126,11 @@
             <if test="p.status != null">
             <if test="p.status != null">
                 and a.status = #{p.status}
                 and a.status = #{p.status}
             </if>
             </if>
+            <if test="p.statusList!=null"> and a.status in
+                <foreach item="item" index="index" collection="p.statusList" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
             <if test="p.type != null">
             <if test="p.type != null">
                 and a.type = #{p.type}
                 and a.type = #{p.type}
             </if>
             </if>