|
|
|
@ -197,10 +197,10 @@ class Note_model extends CI_Model {
|
|
|
|
|
-- gai.GAI_SN,
|
|
|
|
|
-- gaib.GAI_SN,
|
|
|
|
|
-- COLI.COLI_ID,IPL_payType='pay' and
|
|
|
|
|
-- when IPL_payType<>'pay' then 10000
|
|
|
|
|
case
|
|
|
|
|
when (ISNULL(gaib.GAI_SN, 0)+ISNULL(gai.GAI_SN, 0))>0 then 9999
|
|
|
|
|
when IPL_payType='pay' and coli.COLI_ID is not null then 99999
|
|
|
|
|
when IPL_payType<>'pay' then 10000
|
|
|
|
|
when IPL_sent='closeRecord' then 10000
|
|
|
|
|
else 1
|
|
|
|
|
end isRecord,
|
|
|
|
@ -287,7 +287,7 @@ class Note_model extends CI_Model {
|
|
|
|
|
)
|
|
|
|
|
VALUES
|
|
|
|
|
(
|
|
|
|
|
?,?,?,?,?,?,?,'send',?,?,?
|
|
|
|
|
?,?,?,?,?,?,?,'unsend',?,?,?
|
|
|
|
|
)
|
|
|
|
|
";
|
|
|
|
|
$query = $this->INFO->query($sql,
|
|
|
|
|