|
@@ -432,7 +432,10 @@ class User extends Base_Controller{
|
|
|
|
|
|
if ($role != SYSTEM_ADMIN) $where['id'] = $company;
|
|
|
|
|
|
- $list = $this->Company_model->get_list($where, 'id,name',null, null, 'name asc,id desc', NUll);
|
|
|
+ $list = $this->Company_model->get_list($where, 'id,name,no',null, null, 'name asc,id desc', NUll);
|
|
|
+ foreach ($list as $key => $value) {
|
|
|
+ if (!empty($value['no'])) $list[$key]['name'] = $value['no'];
|
|
|
+ }
|
|
|
|
|
|
exit(json_result('0000',$this->response['0000'],array('list'=>$list)));
|
|
|
}
|