request->get(); $ghsId = $get['ghsId'] ?? 0; if (empty($ghsId)) { util::success([]); } $ghs = GhsClass::getById($ghsId, true); if (empty($ghs)) { util::success([]); } if ($ghs->ownMainId != $this->mainId) { util::fail('不是你的供货商'); } $where = ['ghsId' => $ghsId]; $list = GhsBalanceChangeClass::getChangeList($where); util::success($list); } }