|
|
|
@ -42,7 +42,7 @@ class Alipay_note_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
public function search_date($date) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$search_sql = " AND pn.ALI_noticeTime BETWEEN '$date 00:00:00' AND '$date 23:59:59'
|
|
|
|
|
$search_sql = " AND pn.ALI_acquiringTime BETWEEN '$date 00:00:00' AND '$date 23:59:59'
|
|
|
|
|
OR isnull(ALI_sent,'') in ('sendfail','unsend','') ";
|
|
|
|
|
$this->search = $search_sql;
|
|
|
|
|
$this->orderby=" ORDER BY CASE pn.ALI_sent WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.ALI_sn DESC ";
|
|
|
|
@ -127,7 +127,7 @@ class Alipay_note_model extends CI_Model {
|
|
|
|
|
));
|
|
|
|
|
$insertid = $this->INFO->last_id('AlipayLog');
|
|
|
|
|
$ret = "SELECT TOP 1 * FROM AlipayLog WHERE ALI_dealId='$ALI_dealId' ORDER BY ALI_sn DESC ";
|
|
|
|
|
return $this->INFO->query($ret)->row();
|
|
|
|
|
return $this->set_fundsource( $this->INFO->query($ret)->row());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get_list() {
|
|
|
|
@ -161,6 +161,7 @@ class Alipay_note_model extends CI_Model {
|
|
|
|
|
if ($this->topnum === 1) {
|
|
|
|
|
if ($query->num_rows() > 0) {
|
|
|
|
|
$row = $query->row();
|
|
|
|
|
$this->set_fundsource($row);
|
|
|
|
|
return $row;
|
|
|
|
|
} else {
|
|
|
|
|
return FALSE;
|
|
|
|
|