Commit 6c44404a by 赵增煜

自动脚本

parent 2d130f52
......@@ -202,7 +202,7 @@ public function create(Request $request)
Log::info('医师开方统计:'.json_encode($prescriptionCounts));
if (count($prescriptionCounts) > 0) {
foreach ($doctorIds as $key=>$doctorId) {
foreach ($doctorIds as $key => $doctorId) {
if (isset($prescriptionCounts[$doctorId])) {
// 判断是否达到上限
if (intval($prescriptionCounts[$doctorId]) >= intval($prescription_limit)) {
......
......@@ -33,8 +33,7 @@ public function handle()
{
$this->info('开始自动审开方...');
// 如果处方单是审方状态,同时对应的药店开启自动审方
$prescriptions = PrescriptionModel::where('status', 1)
->where('status', PrescriptionModel::PRESCRIPTION_STATUS_REVIEWING)
$prescriptions = PrescriptionModel::where('status', PrescriptionModel::PRESCRIPTION_STATUS_REVIEWING)
->get();
if ($prescriptions->count() > 0) {
......
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