Browse Source

fulllorderexcel 筛选

lvhao 1 ngày trước cách đây
mục cha
commit
5d56492c23
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      core/CoreApp/controllers/Fullorderexcel.php

+ 5 - 0
core/CoreApp/controllers/Fullorderexcel.php

@@ -130,6 +130,7 @@ class Fullorderexcel extends Start_Controller {
 		    $page = $this->input->post('page',true);
 		    $perpage = $this->input->post('perpage',true);
 			$type = $this->input->post('type',true);
+			$must = $this->input->post('must',true);
 			$where = "1=1 ";
             //数据排序
             $order_str = "id asc";
@@ -146,6 +147,10 @@ class Fullorderexcel extends Start_Controller {
 			{
 				$where .= " and type = '$type'";
 			}
+			if($must)
+			{
+				$where .= " and title like '%".$must."%' ";
+			}
             //取得信息列表
             $info_list = $this->fullorderexcel->find_all($where,'id,type,title',$order_str,$start,$perpage);
 			foreach ($info_list as $k=>$v)