Commit 6672e520 by 赵增煜

增加后端判断

parent 70d159c0
......@@ -496,6 +496,10 @@ public function enter(Request $request)
}
$prescription->status = PrescriptionModel::PRESCRIPTION_STATUS_PENDING;
if($prescription->reject_status == PrescriptionModel::REJECT_STSATUS_TRUE){
$prescription->reject_status = PrescriptionModel::REJECT_STSATUS_FALSE;
}
if ($prescription->save()) {
return $this->success('录入成功');
}
......
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