|
|
|
@ -3,8 +3,6 @@
|
|
|
|
|
'''
|
|
|
|
|
@Date:2022/07/18 15:28:11
|
|
|
|
|
'''
|
|
|
|
|
from datetime import datetime
|
|
|
|
|
from random import randint
|
|
|
|
|
import sys
|
|
|
|
|
sys.path.append('.')
|
|
|
|
|
# from common.utils import Utils
|
|
|
|
@ -103,16 +101,6 @@ class EntityMedicament(Base):
|
|
|
|
|
remark30 = Column(String(50), comment='扩展字段30')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_dict(self):
|
|
|
|
|
# li = []
|
|
|
|
|
# for i in self.__table__.columns:
|
|
|
|
|
# li.append(i.name)
|
|
|
|
|
return [i for i in c.__table__.columns]
|
|
|
|
|
# return {c.name: getattr(self, c.name) for c in self.__table__.columns}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EntityMedicamentTemplate(Base):
|
|
|
|
|
__tablename__ = "rms_medicament_template"
|
|
|
|
@ -230,7 +218,7 @@ class EntityMedicamentExtend(Base):
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
drug_info = {}
|
|
|
|
|
user_info = {}
|
|
|
|
|
from common.utils import Utils
|
|
|
|
|
from Common.Utils import Utils
|
|
|
|
|
entity = EntityMedicamentVariety(
|
|
|
|
|
customer_id="customer_id",
|
|
|
|
|
name=drug_info.get("name"),
|
|
|
|
|