From a419044571ad7b8d3da1bfabf78d380017eaf549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Sat, 15 Jan 2022 13:16:40 +0800 Subject: [PATCH] Update --- app/Console/Commands/Dealer/ManageSubsidySettleCommand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php b/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php index c0c3df69..68ba5200 100644 --- a/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php +++ b/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php @@ -129,9 +129,7 @@ class ManageSubsidySettleCommand extends Command ]; } - if (count($data) > 0) { - DealerEarning::insert($data); - } + DealerEarning::insert($data); } /**