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 = {