wuggemail@foxmail.com 3 months ago
parent
commit
b6b105cb32
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/cxinv/controller/FinancialManager.php

+ 4 - 4
app/cxinv/controller/FinancialManager.php

@@ -25,10 +25,10 @@ class FinancialManager extends Base{
         if($param['end']!="") $where[]= ["create_time","<=",endTime($param['end'])];
         if($param['seller_code']!="") $where[]= ["seller_code","=",$param['seller_code']];
         if($param['buyer_code']!="") $where[]= ["buyer_code","=",$param['buyer_code']];
-        if($param['orderCode']!="") $where[]= ["orderCode","=",$param['orderCode']];
-        if($param['cxCode']!="") $where[]= ["cxCode","=",$param['cxCode']];
-        if($param['goodNo']!="") $where[]= ["goodNo","=",$param['goodNo']];
-        if($param['inv_number']!="") $where[]= ["inv_number","=",$param['inv_number']];
+        if($param['orderCode']!="") $where[]= ["orderCode","like", "%{$param['orderCode']}%"];
+        if($param['cxCode']!="") $where[]= ["cxCode","like","%{$param['cxCode']}%"];
+        if($param['goodNo']!="") $where[]= ["goodNo","like","%{$param['goodNo']}%"];
+        if($param['inv_number']!="") $where[]= ["inv_number","like","%{$param['inv_number']}%"];
         if($param['inv_buyer_code']!="") $where[]= ["inv_buyer_code","=",$param['inv_buyer_code']];
         $list = $this->model->with(['ProductRela'=>["product"]])
         ->where($where)