fix: 不排除无效订单

feature/pay
lyt 6 years ago
parent d746fab3a9
commit 2f112ac48b

@ -20,7 +20,7 @@ class Alipay_model extends CI_Model {
if ($ordertype == 'B' || $ordertype == 'A') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,COLI_GRI_SN,OPI_Email,OPI_FirstName,OPI_SN,OPI_Name,COLI_WebCode,COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID =? and COLI_State<>50";
where COLI_ID =? "; // and COLI_State<>50
$query = $this->HT->query($sql, array($COLI_ID));
$result = $query->result();
}

@ -20,7 +20,7 @@ class IPayLinks_model extends CI_Model {
if ($ordertype == 'B' || $ordertype == 'A') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,COLI_GRI_SN,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode, COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID =? and COLI_State<>50";
where COLI_ID =? ";// and COLI_State<>50
$query = $this->HT->query($sql, array($COLI_ID));
$result = $query->result();
}

@ -32,7 +32,7 @@ class Online_payment_account_model extends CI_Model {
if ($ordertype == 'B' || $ordertype == 'A' || $ordertype == 'TP') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID =? and COLI_State<>50";
where COLI_ID =? "; // and COLI_State<>50
$query = $this->HT->query($sql, array($COLI_ID));
$result = $query->result();
}

@ -21,7 +21,7 @@ class Paypal_model extends CI_Model {
if ($ordertype == 'B' || $ordertype == 'A') {
$sql = "SELECT TOP 2 0 as order_type,COLI_SN,COLI_ID,COLI_GRI_SN,OPI_Email,OPI_FirstName,OPI_SN,OPI_Name,COLI_WebCode,COLI_Department,COLI_PayManner,COLI_State $fieldsql from BIZ_ConfirmLineInfo
LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN
where COLI_ID =? and COLI_State<>50 ";
where COLI_ID =? "; // and COLI_State<>50
$query = $this->HT->query($sql, array($COLI_ID));
$result = $query->result();
}

Loading…
Cancel
Save