MS-PDRLKVHCADMG\Administrator 5 tahun lalu
induk
melakukan
3da5b70ba0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -2020,7 +2020,7 @@ class Lampcontrol extends Base_Controller {
             }
             $list = $temp;
         }else{  // 电量
-            $sql = 'select daychargeah,daydischarah,updatetime from realtime_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
+            $sql = 'select chargeday as daychargeah,dischargeday as daydischarah,updatetime from realtime_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
             $list = $this->db->query($sql)->result_array();
             $temp = [];
             foreach ($list as $value) {