|
@@ -540,26 +540,26 @@ class BankManager: BaseManager {
|
|
|
/// - type: 扩展业务类型 - 1:签约 2:入金 3:出金
|
|
/// - type: 扩展业务类型 - 1:签约 2:入金 3:出金
|
|
|
/// - callback: 回调块
|
|
/// - callback: 回调块
|
|
|
func queryBankExtendInfo(cusBankId: String, type: Int, callback: @escaping (_ isCompleted: Bool, _ error: ErrorInfo?,_ extendInfo:[MoExtendInfo]?) -> Void) {
|
|
func queryBankExtendInfo(cusBankId: String, type: Int, callback: @escaping (_ isCompleted: Bool, _ error: ErrorInfo?,_ extendInfo:[MoExtendInfo]?) -> Void) {
|
|
|
- // 状态检验
|
|
|
|
|
|
|
+ /// 状态检验
|
|
|
if let error = checkStatus() {
|
|
if let error = checkStatus() {
|
|
|
callback(false, error, nil)
|
|
callback(false, error, nil)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- // 构建查询参数
|
|
|
|
|
|
|
+ /// 构建查询参数
|
|
|
let param = ("cusbankid", cusBankId)
|
|
let param = ("cusbankid", cusBankId)
|
|
|
let param1 = ("extendbiztype",type.description)
|
|
let param1 = ("extendbiztype",type.description)
|
|
|
|
|
|
|
|
- // 调用通用查询方法
|
|
|
|
|
|
|
+ /// 调用通用查询方法
|
|
|
QueryCommonHelper.queryCommon(statement: Statement.QUERYBANKEXTENDINFO, targetClass: MoExtendInfo.self, params: [param,param1]) {
|
|
QueryCommonHelper.queryCommon(statement: Statement.QUERYBANKEXTENDINFO, targetClass: MoExtendInfo.self, params: [param,param1]) {
|
|
|
isCompleted, error, results, protobufInfos in
|
|
isCompleted, error, results, protobufInfos in
|
|
|
if !isCompleted {
|
|
if !isCompleted {
|
|
|
- // 查询失败
|
|
|
|
|
|
|
+ /// 查询失败
|
|
|
callback(false, error, nil)
|
|
callback(false, error, nil)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
guard let results = results else {
|
|
guard let results = results else {
|
|
|
- // 通用查询返回数据为null
|
|
|
|
|
|
|
+ /// 通用查询返回数据为null
|
|
|
callback(false, ErrorInfo(retCode: -60000, retMsg: nil), nil)
|
|
callback(false, ErrorInfo(retCode: -60000, retMsg: nil), nil)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|