From 978c670d985aae97fdf9e0fffa16346063edbef1 Mon Sep 17 00:00:00 2001 From: tangxuan <2233783319@qq.com> Date: Mon, 3 Apr 2023 15:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=99=E9=87=8F=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/medicament.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db_logic/medicament.py b/db_logic/medicament.py index 954d87e..58a9a07 100644 --- a/db_logic/medicament.py +++ b/db_logic/medicament.py @@ -984,6 +984,8 @@ class BllMedicament(Repository): 计算用量 :return: {"is_liquid": 是否为液体, "use_volume": 液体用量, "use_quality": 固体用量, "net_weight_unit": 单位} """ + if not drug.remain: + return medicament_variety_obj = BllMedicamentVariety().findEntity( EntityMedicamentVariety.variety_id == drug.variety_id) remain_result = {