|
|
|
@ -308,8 +308,15 @@ class Online_payment_account_model extends CI_Model {
|
|
|
|
|
,DeleteFlag,LastEditTime
|
|
|
|
|
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
|
|
|
|
|
$query = $this->HT->query($sql, array($GAI_COLI_SN, $GAI_SQJE, $payment_method, $GAI_COLI_SN, $GAI_COLI_ID, $payment_method, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo));
|
|
|
|
|
$insertid = $this->HT->last_id('BIZ_GroupAccountInfo');
|
|
|
|
|
return $query;
|
|
|
|
|
// $insertid = $this->HT->last_id('BIZ_GroupAccountInfo');
|
|
|
|
|
// return $query;
|
|
|
|
|
return $query->num_rows() > 0;
|
|
|
|
|
// affected_rows() doesn't work with the 'sqlsrv' driver in CI2
|
|
|
|
|
// The solution: Upgrade to the latest CodeIgniter 3.0.x version
|
|
|
|
|
// $ssql = "SELECT 1 as 'exist' from BIZ_GroupAccountInfo where GAI_AccreditNo=? ";
|
|
|
|
|
// $squery = $this->HT->query($ssql, array($GAI_AccreditNo));
|
|
|
|
|
// $ret = $squery->result();
|
|
|
|
|
// return !empty($ret);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//添加收款记录(传统订单)
|
|
|
|
@ -369,6 +376,17 @@ class Online_payment_account_model extends CI_Model {
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* QQS: APP组退款之后执行
|
|
|
|
|
* 插入数据到“我的支付”
|
|
|
|
|
**/
|
|
|
|
|
public function exec_BIZ_TrainCostAdd($COLI_SN, $ssje)
|
|
|
|
|
{
|
|
|
|
|
$sql = " EXEC dbo.SP_BIZ_TrainCostAdd $COLI_SN, $ssje ";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function save_automail($fromName, $fromEmail, $toName, $toEmail, $subject, $body, $M_RelatedInfo = '', $M_State = 0, $M_AddTime = '', $frominfo = 'paypal msg', $M_Web = 'paypal msg') {
|
|
|
|
|
$sql = "INSERT INTO
|
|
|
|
|
Email_AutomaticSend (
|
|
|
|
|