|
|
@@ -214,9 +214,9 @@ class CfItem extends Backend |
|
|
|
$keyValue=$this->request->post('keyValue'); |
|
|
|
$this->model->field('id,item_name as name,item_unit,item_type,item_memo'); |
|
|
|
if($keyValue){ |
|
|
|
$this->model->where(['id'=>$keyValue]); |
|
|
|
$this->model->where(['id'=>$keyValue,"del_flag"=>0]); |
|
|
|
}elseif($name){ |
|
|
|
$this->model->where(['item_name'=>['like','%'.$name.'%']]); |
|
|
|
$this->model->where(['item_name'=>['like','%'.$name.'%'],"del_flag"=>0]); |
|
|
|
} |
|
|
|
$result= $this->model->select()->toArray(); |
|
|
|
|
|
|
|