|
|
@@ -40,7 +40,7 @@ class GhsClass extends BaseClass
|
|
|
$base = ['ownShopId' => $ownShopId, 'delStatus' => 0];
|
|
|
return [
|
|
|
'all' => (int)self::getCount($base),
|
|
|
- 'debtRank' => (int)self::getCount(['and', $base, ['<', 'balance', 0]]),
|
|
|
+ 'debtRank' => (int)self::getCount(array_merge($base, ['balance<' => 0])),
|
|
|
'expendRank' => (int)self::getCount($base),
|
|
|
];
|
|
|
}
|