wugg 3 anos atrás
pai
commit
aaa2a00fca
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      app/admin/controller/Project.php

+ 5 - 3
app/admin/controller/Project.php

@@ -23,12 +23,12 @@ class Project extends \app\BaseController
             return error_show(1004,"参数platform不能为空");
         }
         $khNo = isset($this->post['khNo'])&&$this->post['khNo']!=""?trim($this->post['khNo']):"";
-        $supplierNo = isset($this->post['supplierNo'])&&$this->post['supplierNo']!=""?trim($this->post['supplierNo']):"";
+        $companyNo = isset($this->post['companyNo'])&&$this->post['companyNo']!=""?trim($this->post['companyNo']):"";
         if($khNo==""){
             return error_show(1004,"参数khNo不能为空");
         }
-        if($supplierNo==""){
-            return error_show(1004,"参数supplierNo不能为空");
+        if($companyNo==""){
+            return error_show(1004,"参数companyNo不能为空");
         }
         $use_desc = isset($this->post['use_desc'])&&$this->post['use_desc']!=""?trim($this->post['use_desc']):"";
         $budget_total = isset($this->post['budget_total'])&&$this->post['budget_total']!=""?floatval($this->post['budget_total']):"";
@@ -277,6 +277,8 @@ class Project extends \app\BaseController
 
         $khinfo = Db::name("customer_info")->where(["companyNo"=>$plat['khNo']])->find();
         $info['khName'] = isset($khinfo['CompanyName'])?$khinfo['CompanyName']:"";
+        $company = Db::name("business")->where(["companyNo"=>$plat['companyNo']])->find();
+        $info['company'] = isset($company['company'])?$company['company']:"";
 
         $ladder = Db::name("project_info")->where(['projectNo'=>$projectNo,"is_del"=>0])->select()->toArray();
         $info['ladder']=[];