Commit 325952cf by 赵增煜

增加日志

parent 6c44404a
......@@ -9,6 +9,7 @@
use App\Models\PrescriptionModel;
use DateTime;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;
class PrescriptionCommand extends Command
{
......@@ -35,7 +36,7 @@ public function handle()
// 如果处方单是审方状态,同时对应的药店开启自动审方
$prescriptions = PrescriptionModel::where('status', PrescriptionModel::PRESCRIPTION_STATUS_REVIEWING)
->get();
Log::info("自动审开方:".json_encode($prescriptions));
if ($prescriptions->count() > 0) {
$this->info('没有需要审方的处方单');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment