wuggemail@foxmail.com 3 месяцев назад
Родитель
Сommit
7af5149ec1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/cxinv/controller/FinancialManager.php

+ 1 - 1
app/cxinv/controller/FinancialManager.php

@@ -166,7 +166,7 @@ class FinancialManager extends Base{
 
     public function info(){
         $id=$this->request->param("id",0,"intval");
-        $info=$this->model->findOrEmpty($id);
+        $info=$this->model->with(['ProductRela'=>["product"]])->findOrEmpty($id);
         if($info->isEmpty()) return error("数据不存在");
         return success("获取成功",$info);
     }