|
@@ -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);
|