|
@@ -120,7 +120,7 @@ class Lamp_model extends Base_model {
|
|
|
// $this->db->join('(select t1.* from system_info_log t1, (select lampid, max(updatetime) as maxtime from system_info_log group by lampid) t2 where t1.lampid = t2.lampid and t1.updatetime = t2.maxtime) as SIL', 'L.id = SIL.lampid', 'left');
|
|
|
$this->db->join('project as P', 'L.projectid = P.id', 'left');
|
|
|
// $this->db->join('network as N', 'L.networkid = N.id', 'left');
|
|
|
- $this->db->join('msisdn as M', 'N.simid = M.imsi', 'left');
|
|
|
+ // $this->db->join('msisdn as M', 'N.simid = M.imsi', 'left');
|
|
|
// $this->db->join('(select lampid,max(updatetime) as time from history_info_log group by lampid) as T', 'L.id = T.lampid', 'left');
|
|
|
// $this->db->join('lamp_info_log as LI', 'L.id = LI.lampid AND LI.lampid=T.lampid AND LI.updatetime = T.time', 'left');
|
|
|
// $this->db->join('battery_info_log as BI', 'L.id = BI.lampid AND BI.lampid=T.lampid AND BI.updatetime = T.time', 'left');
|