You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
PHTML
62 lines
1.8 KiB
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
if (!defined('BASEPATH'))
|
||
|
exit('No direct script access allowed');
|
||
|
|
||
|
class Report_model extends CI_Model {
|
||
|
|
||
|
function __construct() {
|
||
|
parent::__construct();
|
||
|
$this->INFO = $this->load->database('INFO', TRUE);
|
||
|
}
|
||
|
|
||
|
/** 插入对账单记录 */
|
||
|
public function new_report($warrant_arr = array())
|
||
|
{
|
||
|
$sql = "INSERT INTO PaymentReports
|
||
|
(
|
||
|
PR_payType
|
||
|
,PR_orderType
|
||
|
,PR_COLI_SN
|
||
|
,PR_orderId
|
||
|
,PR_dealType
|
||
|
,PR_AccreditNo
|
||
|
,PR_currency
|
||
|
,PR_amount
|
||
|
,PR_rate
|
||
|
,PR_entryCurrency
|
||
|
,PR_entryAmount
|
||
|
,PR_fee
|
||
|
,PR_status
|
||
|
,PR_buyerName
|
||
|
,PR_buyerEmail
|
||
|
,PR_paymentTime
|
||
|
,PR_time
|
||
|
)
|
||
|
VALUES
|
||
|
(?,?,?,?,N?,?,?,?,?,?,?,?,N?,N?,N?,?
|
||
|
,GETDATE()
|
||
|
)";
|
||
|
$query = $this->INFO->query($sql,array(
|
||
|
$warrant_arr["PR_payType"]
|
||
|
,$warrant_arr["PR_orderType"]
|
||
|
,$warrant_arr["PR_COLI_SN"]
|
||
|
,$warrant_arr["PR_orderId"]
|
||
|
,$warrant_arr["PR_dealType"]
|
||
|
,$warrant_arr["PR_AccreditNo"]
|
||
|
,$warrant_arr["PR_currency"]
|
||
|
,$warrant_arr["PR_amount"]
|
||
|
,$warrant_arr["PR_rate"]
|
||
|
,$warrant_arr["PR_entryCurrency"]
|
||
|
,$warrant_arr["PR_entryAmount"]
|
||
|
,$warrant_arr["PR_fee"]
|
||
|
,$warrant_arr["PR_status"]
|
||
|
,$warrant_arr["PR_buyerName"]
|
||
|
,$warrant_arr["PR_buyerEmail"]
|
||
|
,$warrant_arr["PR_paymentTime"]
|
||
|
));
|
||
|
return $query;
|
||
|
}
|
||
|
|
||
|
}
|