|
|
|
|
@ -54,7 +54,7 @@ class Logs_model extends CI_Model {
|
|
|
|
|
function get_all_backup_list($is_id) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->log_res_id = " AND il.log_res_id =" . $this->HT->escape($is_id);
|
|
|
|
|
$this->log_action = " AND il.log_action = 'backup_info'";
|
|
|
|
|
$this->log_action = " AND (il.log_action = 'backup_info' or il.log_action = 'backup_amp')";
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -215,4 +215,12 @@ class Logs_model extends CI_Model {
|
|
|
|
|
return $query;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询上一次修改记录
|
|
|
|
|
function get_last_edit_amp($ic_id){
|
|
|
|
|
$sql = 'select top 1 log_id from infoLogs where log_res_id = ? order by log_datetime desc';
|
|
|
|
|
$query = $this->HT->query($sql, array($ic_id));
|
|
|
|
|
return $query->row();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|