|
|
|
|
@ -114,8 +114,8 @@ class FixOrderItemsPaidAt extends Command
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 计算在 service_date 23:59:59 时的客户余额
|
|
|
|
|
$balanceAtTime = $this->calculateCustomerBalanceAtTime($customerId, $serviceDateEnd, $item->id);
|
|
|
|
|
// 计算在 service_date 时的客户余额
|
|
|
|
|
$balanceAtTime = $this->calculateCustomerBalanceAtTime($customerId, $serviceDateStr, $item->id);
|
|
|
|
|
|
|
|
|
|
// 判断是否满足修复条件
|
|
|
|
|
if ($balanceAtTime >= $item->total) {
|
|
|
|
|
|