|
|
|
@ -276,8 +276,9 @@ class Online_payment_account_model extends CI_Model {
|
|
|
|
|
,DeleteFlag,LastEditTime
|
|
|
|
|
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
|
|
|
|
|
$query = $this->HT->query($sql, array($GAI_AccreditNo, $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');
|
|
|
|
|
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('BIZ_GroupAccountInfo') : false;
|
|
|
|
|
return $insertid;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//添加收款记录(商务订单),APP会自动增加记录,所以添加前根据金额来判断是否有重复记录
|
|
|
|
@ -308,7 +309,7 @@ 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');
|
|
|
|
|
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('BIZ_GroupAccountInfo') : false;
|
|
|
|
|
return $insertid;
|
|
|
|
|
// return $query->num_rows() > 0;
|
|
|
|
|
// affected_rows() doesn't work with the 'sqlsrv' driver in CI2
|
|
|
|
@ -347,7 +348,7 @@ class Online_payment_account_model extends CI_Model {
|
|
|
|
|
,DeleteFlag,LastEditTime
|
|
|
|
|
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
|
|
|
|
|
$query = $this->HT->query($sql, array($GAI_AccreditNo, $GAI_COLI_SN, $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('GroupAccountInfo');
|
|
|
|
|
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('GroupAccountInfo') : false;
|
|
|
|
|
return $insertid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -383,7 +384,7 @@ class Online_payment_account_model extends CI_Model {
|
|
|
|
|
**/
|
|
|
|
|
public function exec_BIZ_TrainCostAdd($COLI_SN, $ssje)
|
|
|
|
|
{
|
|
|
|
|
$sql = " EXEC dbo.SP_BIZ_TrainCostAdd $COLI_SN, $ssje ";
|
|
|
|
|
$sql = " EXEC dbo.SP_BIZ_TrainCostAdd $COLI_SN, $ssje; select 0; ";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|