Browse Source

返回值优化

dev
nizongfeng 3 years ago
parent
commit
a5af6bc646
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      application/admin/controller/CfItem.php

+ 1
- 0
application/admin/controller/CfItem.php View File

@@ -213,6 +213,7 @@ class CfItem extends Backend
public function getList(){ public function getList(){
$name=$this->request->post('name'); $name=$this->request->post('name');
$keyValue=$this->request->post('keyValue'); $keyValue=$this->request->post('keyValue');
$this->model->field('id,item_name as name,item_unit,item_type,item_memo,purchase_user_id');
$where = ["del_flag"=>0]; $where = ["del_flag"=>0];
if($keyValue){ if($keyValue){
$where = ['id'=>$keyValue,"del_flag"=>0]; $where = ['id'=>$keyValue,"del_flag"=>0];


Loading…
Cancel
Save