Browse Source

财务管理-信用调整单列表增加搜索条件:经销商

eganwu 1 year ago
parent
commit
9fce57a7fb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/custom/restcontroller/sale/creditbill/creditbill.java

+ 4 - 1
src/custom/restcontroller/sale/creditbill/creditbill.java

@@ -128,11 +128,14 @@ public class creditbill extends Controller {
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
                 where = where + " and (t1.billno like'%" + whereObject.getString("condition")
                         + "%' or t1.remarks like '%" + whereObject.getString("condition")
-                        + "%' or t5.enterprisename like '%" + whereObject.getString("condition") + "%')";
+                        + "%')";
             }
             if (whereObject.containsKey("status") && !"".equals(whereObject.getString("status"))) {
                 where = where + " and t1.status ='" + whereObject.getString("status") + "' ";
             }
+            if (whereObject.containsKey("enterprisename") && !"".equals(whereObject.getString("enterprisename"))) {
+                where = where + " and t5.enterprisename like '%" + whereObject.getString("enterprisename") + "%' ";
+            }
         }
         SQLFactory sqlFactory = new SQLFactory(this, "信用额度调整单列表查询", pageSize, pageNumber, pageSorting);
         sqlFactory.addParameter_SQL("where", where);