Commit 60473acf by 赵增煜

增加时间判断

parent cb11c165
......@@ -83,7 +83,9 @@ public function handle(array $input): JsonResponse
$externalPrescriptionModel->diagnosis = $prescription['诊断'];
$externalPrescriptionModel->drug_info = json_encode($prescription['药品明细']);
$externalPrescriptionModel->pharmacist_name = $prescription['审核药师'] ?? '';
$externalPrescriptionModel->review_at = $prescription['药师审核时间'] ?? '';
if($prescription['药师审核时间']){
$externalPrescriptionModel->review_at = $prescription['药师审核时间'];
}
$externalPrescriptionModel->pharmacist_attr = $prescription['药师属性'] ?? '';
$externalPrescriptionModel->dispatcher = $prescription['调配人'] ?? '';
$externalPrescriptionModel->checker = $prescription['核对人'] ?? '';
......
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