|
|
|
@ -73,6 +73,16 @@ class Note_model extends CI_Model {
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function notewebhooks($topnum = 2) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topnum = $topnum;
|
|
|
|
|
$sql = " AND (SUBSTRING(pn_memo, 8, 3) ='WH-' ) ";
|
|
|
|
|
$this->pn_send = $sql;
|
|
|
|
|
// $this->orderby=" ORDER BY pn_payment_date DESC, pn.pn_sn ASC ";
|
|
|
|
|
$this->orderby=" ORDER BY CASE pn.pn_send WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.pn_sn DESC ";
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function noteaccount($topnum = 2, $account = '') {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topnum = $topnum;
|
|
|
|
|