Module: Reapal::Api::Tender::TenderFinish
- Defined in:
- lib/reapal/api/tender/tender_finish.rb
Instance Method Summary collapse
Instance Method Details
#tender_finish(flow_id, tender_no, debit_contracts, invest_details, fee_details = [], busway = '01', remark = '') ⇒ Hash
3.7 满标
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/reapal/api/tender/tender_finish.rb', line 37 def tender_finish(flow_id, tender_no, debit_contracts, invest_details, fee_details=[], busway='01', remark='') service = 'reapal.trust.tenderFinish' post_path = '/tender/rest.htm' params = { orderNo: flow_id, tenderNo: tender_no, debitContracts: debit_contracts, feeDetails: fee_details, investDetails: invest_details, 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_finish, ['0000']) if 'S' == res[:result] && '0001' == res[:data][:resultCode] res[:result] = 'F' end Reapal.logger.info res res end |