Commit 6af66686 by 赵增煜

自动脚本

parent 325952cf
......@@ -36,8 +36,8 @@ public function handle()
// 如果处方单是审方状态,同时对应的药店开启自动审方
$prescriptions = PrescriptionModel::where('status', PrescriptionModel::PRESCRIPTION_STATUS_REVIEWING)
->get();
Log::info("自动审开方:".json_encode($prescriptions));
if ($prescriptions->count() > 0) {
Log::info('自动审开方:'.json_encode($prescriptions));
if ($prescriptions->count() <= 0) {
$this->info('没有需要审方的处方单');
return;
......
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