This commit is contained in:
Gitea
2022-07-14 16:20:43 +09:00
parent 8d82068324
commit 8245c32224
3 changed files with 41 additions and 39 deletions

View File

@ -226,8 +226,8 @@ class ReportViewSet:
"""post"""
def repayment(db: Session, data: schemas.RentRegisterNoticeInit):
return exec_procedure(db, 'uspGetRentRegisterNotices', **data)
def get_rent_register_notices(db: Session, data: schemas.RentRegisterNoticeInit):
return exec_procedure(db, 'uspGetRentRegisterNotices', data.dict())
"""AccrualViewSet"""
@ -388,7 +388,7 @@ class ReferenceViewSet:
return db.query(tb).with_entities(tb.c["ID"], tb.c["Name"]).all()
def get_address_types(db: Session):
tb = get_table('RefAddressType')
tb = get_table('RefAddressType', 'General')
return db.query(tb).with_entities(tb.c["ID"], tb.c["Name"]).all()
"""post"""