wzh hace 5 años
padre
commit
adec47bdd5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/application/controllers/Common.php

+ 1 - 1
api/application/controllers/Common.php

@@ -271,7 +271,7 @@ class Common extends CI_Controller {
 
     // 获取制造商下拉列表
     public function manu_nav(){
-        $list = $this->db->query('select id,name,no from company where type = 2')->result_array();
+        $list = $this->db->query('select id,name,no from company where type = 2 and companyId != ""')->result_array();
         foreach ($list as $key => $value) {
             if (!empty($value['no'])) {
                 $list[$key]['name'] = $value['no'];