|
|
|
@ -46,7 +46,7 @@ class Note_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
public function search_date($date) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$search_sql = " AND (pn.pn_datetime BETWEEN '$date 00:00:00' AND '$date 23:59:59' OR pn_send not in ('send','closeRecord')) ";
|
|
|
|
|
$search_sql = " AND (pn.pn_datetime BETWEEN '$date 00:00:00' AND '$date 23:59:59' OR isnull(pn_send,'') in ('sendfail','unsend','')) ";
|
|
|
|
|
$this->search = $search_sql;
|
|
|
|
|
$this->orderby=" ORDER BY CASE pn.pn_send WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.pn_sn DESC ";
|
|
|
|
|
return $this->get_list();
|
|
|
|
|