From 8a20c698e241011bd694eb7ca7b862474a815993 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Wed, 30 Nov 2022 10:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E7=94=A8=E5=BD=92=E8=BF=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/medicament.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db_logic/medicament.py b/db_logic/medicament.py index a4adfce..3746810 100644 --- a/db_logic/medicament.py +++ b/db_logic/medicament.py @@ -222,6 +222,7 @@ class BllMedicament(Repository): # 创建事务 self.beginTrans() + entityDrug.remark30 = '0' self.session.add(entityDrug) if entityDrug.status == 1: self.session.add(entityDrugRecord) @@ -233,6 +234,7 @@ class BllMedicament(Repository): def drugUse(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()): #创建事务 self.beginTrans() + entityDrug.remark30 = '0' self.session.merge(entityDrug) entityDrugRecord = EntityMedicamentRecord( customer_id=entityClient.customer_id, @@ -261,6 +263,7 @@ class BllMedicament(Repository): def drugReturn(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()): #创建事务 self.beginTrans() + entityDrug.remark30 = '0' self.session.merge(entityDrug) drug = BllMedicament().findEntity(entityDrug.medicament_id)