anderx 2 年 前
コミット
81b02ddded

+ 9 - 0
src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

@@ -432,6 +432,9 @@
     <if test="type != null">
       and a.type= #{type}
     </if>
+    <if test="checkNo != null">
+      and a.check_no like concat('%',#{checkNo},'%')
+    </if>
     <if test="startTime !=null and endTime !=null">
       and a.create_time between #{startTime} and #{endTime}
     </if>
@@ -493,6 +496,9 @@
     <if test="type != null">
       and a.type= #{type}
     </if>
+    <if test="checkNo != null">
+      and a.check_no like concat('%',#{checkNo},'%')
+    </if>
     <if test="startTime !=null and endTime !=null">
       and a.create_time between #{startTime} and #{endTime}
     </if>
@@ -550,6 +556,9 @@
     <if test="type != null">
       and a.type= #{type}
     </if>
+    <if test="checkNo != null">
+      and a.check_no like concat('%',#{checkNo},'%')
+    </if>
     <if test="startTime !=null and endTime !=null">
       and a.create_time between #{startTime} and #{endTime}
     </if>

+ 8 - 0
src/main/java/com/goafanti/expenseAccount/bo/InputPageListBo.java

@@ -18,10 +18,18 @@ public class InputPageListBo {
     private String type;
     private String applyDep;
     private String payDep;
+    private String checkNo;
 
     private Integer pageNo;
     private Integer pageSize;
 
+    public String getCheckNo() {
+        return checkNo;
+    }
+
+    public void setCheckNo(String checkNo) {
+        this.checkNo = checkNo;
+    }
 
     public String getAid() {
         return aid;

+ 1 - 0
src/main/java/com/goafanti/expenseAccount/service/impl/ExpenseAccountServiceImpl.java

@@ -866,6 +866,7 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
         if (in.getApplyDep()!=null)param.put("applyDep",in.getApplyDep());
         if (in.getPayDep()!=null)param.put("payDep",in.getPayDep());
         if (in.getType()!=null)param.put("type",in.getType());
+        if (in.getCheckNo()!=null)param.put("checkNo",in.getCheckNo());
     }
 
     /**