You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
704 B
PHP
20 lines
704 B
PHP
<?php
|
|
|
|
class messagecenter_model extends CI_Model {
|
|
function __construct() {
|
|
parent::__construct();
|
|
$this->INFO = $this->load->database('INFO', TRUE);
|
|
}
|
|
|
|
public function get_tp_list($from_time,$to_time){
|
|
$sql = 'select * from trippest_sms_log where TPSL_callbackTime > ? and TPSL_callbackTime < ? and TPSL_sendState = 1';
|
|
$query = $this->INFO->query($sql,array($from_time,$to_time));
|
|
return $query->result();
|
|
}
|
|
|
|
public function get_cht_list($from_time,$to_time){
|
|
$sql = 'select * from [syn123].InfoManager.dbo.train_sms_verification where created_on > ? and created_on < ?';
|
|
$query = $this->INFO->query($sql,array($from_time,$to_time));
|
|
return $query->result();
|
|
}
|
|
} |