完成测试,增加 PayPal 更新

hotfix/paypal-note
LiaoYijun 4 years ago
parent ba9e6aee2c
commit 30c61052ff

@ -28,7 +28,7 @@ class Group_model extends CI_Model {
var_dump($check_group_row);
if (empty($check_group_row)) {
$update_group_query = "exec SP_CheckGroup_UpdateCKGroupInfo(?, 29)";
// $update_group_row = $this->HT->query($update_group_query, array($group_sn));
$update_group_row = $this->HT->query($update_group_query, array($group_sn));
}
}
}

@ -0,0 +1,36 @@
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Group_model extends CI_Model {
private $HT;
function __construct() {
parent::__construct();
$this->HT = $this->load->database('HT', TRUE);
}
public function update_ck_group_info($COLI_SN)
{
$group_sn_query =
"select COLI_GRI_SN from ConfirmLineInfo where COLI_SN=?
union
select COLI_GRI_SN from BIZ_ConfirmLineInfo where COLI_SN=?";
$group_sn_row = $this->HT->query($group_sn_query, array($COLI_SN, $COLI_SN))->row();
var_dump($group_sn_row);
if (!empty($group_sn_row) && $group_sn_row->COLI_GRI_SN > 0) {
$group_sn = $group_sn_row->COLI_GRI_SN;
$check_group_query = "select CGI_SN from CK_GroupInfo where CGI_GRI_SN=?";
$check_group_row = $this->HT->query($check_group_query, array($group_sn))->row();
var_dump($check_group_row);
if (empty($check_group_row)) {
$update_group_query = "exec SP_CheckGroup_UpdateCKGroupInfo(?, 29)";
$update_group_row = $this->HT->query($update_group_query, array($group_sn));
}
}
}
}
Loading…
Cancel
Save