|
|
|
@ -81,6 +81,30 @@ class Alipay_model extends CI_Model {
|
|
|
|
|
return $result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查找付款记录,用于判断是否已经审核。
|
|
|
|
|
* 已经审核过得记录不能修改订单号。
|
|
|
|
|
*/
|
|
|
|
|
public function get_group_accout_info($coli_sn, $pn_txn_id) {
|
|
|
|
|
// select * from BIZ_GroupAccountInfo where GAI_COLI_SN = 559007281 and GAI_AccreditNo = '91R84932UM059045C'
|
|
|
|
|
$info_sql = "select GAI_SN, GAI_State from BIZ_GroupAccountInfo
|
|
|
|
|
where GAI_COLI_SN = $coli_sn and GAI_AccreditNo = '$pn_txn_id'
|
|
|
|
|
union
|
|
|
|
|
select GAI_SN, GAI_State from GroupAccountInfo
|
|
|
|
|
where GAI_COLI_SN = $coli_sn and GAI_AccreditNo = '$pn_txn_id'";
|
|
|
|
|
|
|
|
|
|
$info_query = $this->HT->query($info_sql);
|
|
|
|
|
$info_result = $info_query->result();
|
|
|
|
|
$group_accout_info = array(
|
|
|
|
|
'GAI_SN' => 0,
|
|
|
|
|
'GAI_State' => 0
|
|
|
|
|
);
|
|
|
|
|
if (!empty($info_empty)) {
|
|
|
|
|
$group_accout_info = $info_result[0];
|
|
|
|
|
}
|
|
|
|
|
return $group_accout_info;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取收款记录(商务订单)
|
|
|
|
|
public function get_money_list($GAI_COLI_ID, $GAI_SQJE, $GAI_SQJECurrency) {
|
|
|
|
|
$sql = "SELECT GAI_SN,GAI_CusEmail,GAI_Memo
|
|
|
|
|