config updated
This commit is contained in:
BIN
db/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
db/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/models.cpython-39.pyc
Normal file
BIN
db/__pycache__/models.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/oracle_connector.cpython-39.pyc
Normal file
BIN
db/__pycache__/oracle_connector.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/repository.cpython-39.pyc
Normal file
BIN
db/__pycache__/repository.cpython-39.pyc
Normal file
Binary file not shown.
@@ -30,6 +30,7 @@ class NEFTOutwardRecord:
|
||||
benef_address: str # VARCHAR2(400)
|
||||
msg_type: str # VARCHAR2(400)
|
||||
bank_code: str
|
||||
sender_to_reciver_info: str
|
||||
|
||||
def to_dict(self):
|
||||
"""Convert to dictionary for DB insertion."""
|
||||
@@ -50,6 +51,7 @@ class NEFTOutwardRecord:
|
||||
"REJECT_REASON": self.reject_reason,
|
||||
"BENEFICIARY_ADDRESS": self.benef_address,
|
||||
"MSG_TYPE": self.msg_type,
|
||||
"SENDER_TO_RECIVER_INFO": self.sender_to_reciver_info,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class Repository:
|
||||
# ---------------------------------------------------------
|
||||
def bulk_insert_transactions(self, transactions: List[NEFTOutwardRecord]) -> tuple:
|
||||
"""
|
||||
Bulk insert NEFT transactions into inward_neft_api_log.
|
||||
Bulk insert NEFT transactions into outward_neft_api_log.
|
||||
Records with invalid beneficiary account numbers are skipped.
|
||||
|
||||
Args:
|
||||
@@ -112,7 +112,8 @@ class Repository:
|
||||
REJECT_CODE,
|
||||
REJECT_REASON,
|
||||
BENEFICIARY_ADDRESS,
|
||||
MSG_TYPE
|
||||
MSG_TYPE,
|
||||
SENDER_TO_RECIVER_INFO
|
||||
) VALUES (
|
||||
:TXNIND,
|
||||
:JRNL_ID,
|
||||
@@ -129,7 +130,8 @@ class Repository:
|
||||
:REJECT_CODE,
|
||||
:REJECT_REASON,
|
||||
:BENEFICIARY_ADDRESS,
|
||||
:MSG_TYPE
|
||||
:MSG_TYPE,
|
||||
:SENDER_TO_RECIVER_INFO
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -277,12 +279,12 @@ class Repository:
|
||||
cursor = conn.cursor()
|
||||
|
||||
try:
|
||||
cursor.execute("SELECT COUNT(*) FROM inward_neft_api_log WHERE ROWNUM = 1")
|
||||
logger.info("✓ inward_neft_api_log table exists")
|
||||
cursor.execute("SELECT COUNT(*) FROM outward_neft_api_log WHERE ROWNUM = 1")
|
||||
logger.info("✓ inoutward_neft_api_log table exists")
|
||||
except Exception as e:
|
||||
logger.error(f"✗ inward_neft_api_log table not found: {e}")
|
||||
logger.error(f"✗ inoutward_neft_api_log table not found: {e}")
|
||||
raise SystemExit(
|
||||
"FATAL: inward_neft_api_log table must be created manually before running this application"
|
||||
"FATAL: outward_neft_api_log table must be created manually before running this application"
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user