changed the errorMsg to return the whole response body in case of any unknown json message from server in TransactionExecutor.kt
This commit is contained in:
@@ -7,39 +7,48 @@ class TellerDao {
|
||||
|
||||
private val tellerMap = mapOf(
|
||||
"0003" to mapOf(
|
||||
"00008" to "8",
|
||||
"00022" to "22",
|
||||
"00012" to "12",
|
||||
"00014" to "14",
|
||||
"00003" to "1003",
|
||||
"00015" to "15",
|
||||
"00013" to "13",
|
||||
"00018" to "18",
|
||||
"00001" to "1001",
|
||||
"00004" to "4",
|
||||
"00017" to "1234",
|
||||
"00005" to "5",
|
||||
"00011" to "11",
|
||||
"00020" to "1234",
|
||||
"00021" to "1234",
|
||||
"00016" to "016",
|
||||
"00009" to "9",
|
||||
"00010" to "10",
|
||||
"00007" to "7",
|
||||
"00006" to "6",
|
||||
"00012" to "312",
|
||||
"00017" to "317",
|
||||
"00013" to "313",
|
||||
"00014" to "314",
|
||||
"00015" to "315",
|
||||
"00016" to "316",
|
||||
"00019" to "319",
|
||||
"00020" to "320",
|
||||
"00026" to "11126",
|
||||
"00010" to "310"
|
||||
),
|
||||
"0015" to mapOf(
|
||||
"00008" to "118",
|
||||
"00002" to "249",
|
||||
"00006" to "11106",
|
||||
"00005" to "11105",
|
||||
"00002" to "11102",
|
||||
"00004" to "11104",
|
||||
"00023" to "1234",
|
||||
"00008" to "11108",
|
||||
"00017" to "11117",
|
||||
"00011" to "10111",
|
||||
"00021" to "1234",
|
||||
"00001" to "1234",
|
||||
"00018" to "11118",
|
||||
"00012" to "11112",
|
||||
"00019" to "11119",
|
||||
"00003" to "11103",
|
||||
"00009" to "11109",
|
||||
"00015" to "11115",
|
||||
"00020" to "11120",
|
||||
"00013" to "11113",
|
||||
"00014" to "1234",
|
||||
"00016" to "11116",
|
||||
"00010" to "11110",
|
||||
"00007" to "11107",
|
||||
"00022" to "1234",
|
||||
"00026" to "11126"
|
||||
),
|
||||
"0016" to mapOf(
|
||||
"00001" to "249",
|
||||
"00002" to "249"
|
||||
)
|
||||
)
|
||||
|
||||
fun getTeller(dccbCode: String, branchCode: String): Teller? {
|
||||
val branchList = tellerMap[dccbCode] ?: return null
|
||||
val tellerId = branchList[branchCode] ?: "249"
|
||||
val tellerId = branchList[branchCode] ?: return null
|
||||
val teller = Teller(
|
||||
tellerId,
|
||||
dccbCode,
|
||||
|
Reference in New Issue
Block a user