wuggemail@foxmail.com 3 months ago
parent
commit
2ff2b7cf23
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/cxinv/controller/Adjust.php

+ 2 - 2
app/cxinv/controller/Adjust.php

@@ -27,7 +27,7 @@ class Adjust extends Base
       if($params['seller_code']!='') $where[]=['Manager.seller_code','=',$params['seller_code']];
 
       $list = $this->model
-          ->with(["ProductTz"=>["ManagerProduct"]])
+          ->with(["ProductTz"=>["Product"]])
           ->withJoin("Manager", "LEFT")
           ->where($where)
           ->order("financial_tz.id", "desc")
@@ -40,7 +40,7 @@ class Adjust extends Base
         $ids = $this->request->param("id","0","int");
         if($ids==0) return error("参数错误");
         $info = $this->model
-            ->with(["ProductTz"=>["ManagerProduct"],"Manager"])
+            ->with(["ProductTz"=>["Product"],"Manager"])
             ->findOrEmpty($ids);
         if($info->isEmpty()) return error("信息不存在");
         return success("获取成功",$info);