Module: Reapal::Api::Tender::TenderHistoryApply
- Defined in:
- lib/reapal/api/tender/tender_history_apply.rb
Instance Method Summary collapse
Instance Method Details
#tender_history_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term, debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts, guarant_contract = '', commissioned_contract = '', returned_principal = 0, returned_interest = 0, returned_fee = 0, returned_def_amount = 0, busway = '01', remark = '') ⇒ Hash
3.20 历史标的迁移
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/reapal/api/tender/tender_history_apply.rb', line 42 def tender_history_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term, debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts, guarant_contract='', commissioned_contract='', returned_principal=0, returned_interest=0, returned_fee=0, returned_def_amount=0, busway='01', remark='') service = 'reapal.trust.tenderHistoryApply' post_path = '/tender/rest.htm' params = { orderNo: flow_id, tenderNo: tender_no, tenderName: tender_name, amount: money, rate: rate, feeAmount: fee_amount, refundTerm: refund_term, debitTerm: debit_term, debitType: debit_type, repayDate: repay_date.strftime("%Y%m%d"), expiryDate: expiry_date.strftime("%Y%m%d"), tenderType: tender_type, debitContracts: debit_contracts, guarantContract: guarant_contract, commissionedContract: commissioned_contract, hisAmount: returned_principal, hisIntAmount: returned_interest, hisFeeAmount: returned_fee, hisDefAmount: returned_def_amount, busway: busway, remark: remark, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_apply, ['0000']) Reapal.logger.info res res end |