wzh 5 years atrás
parent
commit
b4a5e6d167
1 changed files with 3 additions and 3 deletions
  1. 3 3
      api/application/controllers/Project.php

+ 3 - 3
api/application/controllers/Project.php

@@ -418,17 +418,17 @@ class Project extends Base_Controller {
 
             $join = [];
             $join[] = ['table'=>'project as P','cond'=>'L.projectid = P.id','type'=>'inner'];
-            if ($type == 1) {
+            if ($type == 2) {
                 $join[] = ['table'=>'company as C','cond'=>'L.manu = C.id','type'=>'inner'];
                 $group = 'L.manu,L.projectid';
                 $order = 'convert(C.name using gbk) asc';
                 $fields = 'C.name as company,P.projectname,P.id,C.id as cId';
-            }elseif ($type == 2) {
+            }elseif ($type == 3) {
                 $join[] = ['table'=>'company as C','cond'=>'L.supplier = C.id','type'=>'inner'];
                 $group = 'L.supplier,L.projectid';
                 $order = 'convert(C.name using gbk) asc';
                 $fields = 'C.name as company,P.projectname,P.id,C.id as cId';
-            }elseif ($type == 3) {
+            }elseif ($type == 4) {
                 $join[] = ['table'=>'company as C','cond'=>'L.po = C.id','type'=>'inner'];
                 $group = 'L.po,L.projectid';
                 $order = 'convert(C.name using gbk) asc';