@ -42,7 +42,7 @@ class Note_model extends CI_Model {
public function search_date($date) {
public function search_date($date) {
$this->init();
$this->init();
$search_sql = " AND pn.IPL_completeTime BETWEEN '$date 00:00:00' AND '$date 23:59:59' ";
$search_sql = " AND pn.IPL_noticeTime BETWEEN '$date 00:00:00' AND '$date 23:59:59' ";
$this->search = $search_sql;
$this->search = $search_sql;
$this->orderby=" ORDER BY CASE pn.IPL_sent WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.IPL_sn DESC ";
$this->orderby=" ORDER BY CASE pn.IPL_sent WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.IPL_sn DESC ";
return $this->get_list();
return $this->get_list();
@ -55,6 +55,14 @@ class Note_model extends CI_Model {
return $this->get_list();
return $this->get_list();
}
}
public function note_order($orderid,$notice_time)
{
$this->init();
$this->topnum=1;
$this->dealId=" AND pn.IPL_orderId=".$this->INFO->escape($orderid)." AND pn.IPL_noticeTime=".$this->INFO->escape($notice_time);
return $this->get_list();
}
public function search_key($search_key) {
public function search_key($search_key) {
$this->init();
$this->init();
$this->topnum = 300; //限制最大数量,防止查询单词过短
$this->topnum = 300; //限制最大数量,防止查询单词过短
@ -81,7 +89,7 @@ class Note_model extends CI_Model {
* @author LYT <lyt@hainatravel.com>
* @author LYT <lyt@hainatravel.com>
* @date 2017-08-29
* @date 2017-08-29
*/
*/
public function save_ipl($IPL_dealId,$IPL_orderId,$IPL_currencyCode,$IPL_orderAmount,$IPL_payAmount,$IPL_stateCode,$IPL_acquiringTime,$IPL_completeTime,$IPL_memo,$IPL_payType,$IPL_resultCode=null,$IPL_resultMsg=null) {
public function save_ipl($IPL_dealId,$IPL_orderId,$IPL_currencyCode,$IPL_orderAmount,$IPL_payAmount,$IPL_stateCode,$IPL_acquiringTime,$IPL_completeTime,$IPL_memo,$IPL_payType,$IPL_resultCode,$IPL_resultMsg) {
$sql = "
$sql = "
INSERT INTO IPayLinksLog
INSERT INTO IPayLinksLog
(
(
@ -89,7 +97,7 @@ class Note_model extends CI_Model {
)
)
VALUES
VALUES
(
(
?,?,?,?,?,?,?,?,?,'unsend', GETDATE(),?,?,?
?,?,?,?,?,?,?,?,?,'unsend', GETDATE(),?,?,N?
)
)
";
";
$query = $this->INFO->query($sql,
$query = $this->INFO->query($sql,
@ -103,8 +111,6 @@ class Note_model extends CI_Model {