|
|
@@ -42,17 +42,11 @@ class TestController extends BaseController
|
|
|
echo '没有找到客户';
|
|
|
die;
|
|
|
}
|
|
|
- $ghsId = $custom->ghsId ?? 0;
|
|
|
- $ghs = GhsClass::getById($ghsId, true);
|
|
|
- $ghsShopId = $ghs->shopId ?? 0;
|
|
|
- $shop = ShopClass::getById($ghsShopId, true);
|
|
|
- $mainId = $shop->mainId ?? 0;
|
|
|
$flag = [];
|
|
|
$changeList = CustomDebtChangeClass::getAllByCondition(['customId' => $customId], null, '*');
|
|
|
if (!empty($changeList)) {
|
|
|
foreach ($changeList as $change) {
|
|
|
$event = $change['evnet'] ?? '';
|
|
|
- $capitalType = $change['capitalType'] ?? 0;
|
|
|
$relateId = $change['relateId'] ?? 0;
|
|
|
$amount = $change['amount'] ?? 0;
|
|
|
|