Browse Source

订单增加account 搜索条件

周箭河 5 năm trước cách đây
mục cha
commit
eb4b265c07

+ 9 - 0
src/main/java/com/ym/mec/collectfee/entity/OrderQueryInfo.java

@@ -4,6 +4,7 @@ import com.ym.mec.collectfee.common.page.QueryInfo;
 
 public class OrderQueryInfo extends QueryInfo {
 
+    private String account;
     private Integer classId;
     private Integer type;
     private String voicyPart;
@@ -58,4 +59,12 @@ public class OrderQueryInfo extends QueryInfo {
     public void setBranchId(Integer branchId) {
         this.branchId = branchId;
     }
+
+    public String getAccount() {
+        return account;
+    }
+
+    public void setAccount(String account) {
+        this.account = account;
+    }
 }

+ 3 - 0
src/main/resources/config/mybatis/OrderMapper.xml

@@ -243,6 +243,9 @@
         SELECT * FROM `order` WHERE `user_id` = #{userId} AND `type`=1 AND `status` = #{status}
     </select>
     <sql id="orderPage">
+        <if test="account != null">
+            and account = #{account}
+        </if>
         <if test="classId != null">
             and class_id = #{classId}
         </if>