shish 3 лет назад
Родитель
Сommit
ef4eff2dde
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      console/controllers/DebtController.php

+ 3 - 2
console/controllers/DebtController.php

@@ -23,6 +23,7 @@ class DebtController extends Controller
             foreach ($list as $shop) {
                 $shopId = $shop->id ?? 0;
                 $mainId = $shop->mainId ?? 0;
+                $sjName = $shop->merchantName ?? '';
                 $shopName = $shop->shopName ?? '';
                 $customList = CustomClass::getAllByCondition(['ownMainId' => $mainId], null, '*', null, true);
                 $customDebt = 0;
@@ -41,9 +42,9 @@ class DebtController extends Controller
                     }
                 }
                 if (floatval($customDebt) != floatval($orderDebt)) {
-                    echo "门店:{$shopName} 订单和客户欠款不一致 \n";
+                    echo "门店:{$sjName} {$shopName} 订单和客户欠款不一致 \n";
                 } else {
-                    echo "门店:{$shopName} 总欠款{$customDebt} \n";
+                    echo "门店:{$sjName} {$shopName} 总欠款{$customDebt} \n";
                 }
                 //$lsShopId = $shop->lsShopId ?? 0;
             }