fix(账户余额): 修复非镜像平台每日余额读取

允许唯品会MP、唯品会JX和小红书的每日余额读取以空收入支出方向查询全部账单,避免参数类型错误导致这三个平台每日余额显示为空。
This commit is contained in:
qiuxiang 2026-11-19 17:23:37 +08:00
parent 824e1b0d92
commit acab1db9ff

View File

@ -1512,7 +1512,7 @@ class StoreReceivingBalanceOverviewService
*
* @return iterable<int,array<string,mixed>>
*/
private function accountBillRows(string $platform, string $start, string $end, string $flow): iterable
private function accountBillRows(string $platform, string $start, string $end, ?string $flow): iterable
{
$query = AccountBill::query()
->where('company_id', company_id())