|
@@ -3508,7 +3508,7 @@ class Lampcontrol extends Base_Controller {
|
|
|
}
|
|
|
if ($datatype == 'lampinfo') {
|
|
|
|
|
|
- $fields = "L.isfaulted,L.number,L.networkid as network_id,L.projectid,L.address,L.longitude,L.latitude,L.section,L.boardpower,L.lamptype,L.boardtype,L.batteryah,L.loadpower,L.devstatus,N.id as networkid,L.logtime as updatetime,L.batterytype,N.protocoltype,N.status,N.simid,N.packageSurplus,N.monthly_can_usage,N.monthly_already_usage,L.loadtype";
|
|
|
+ $fields = "L.isfaulted,L.number,L.networkid as network_id,L.projectid,L.address,L.longitude,L.latitude,L.section,L.boardpower,L.lamptype,L.boardtype,L.batteryah,L.loadpower,L.devstatus,N.id as networkid,L.logtime as updatetime,L.batterytype,N.protocoltype,N.status,N.simid,N.packageSurplus,N.monthly_can_usage,N.monthly_already_usage,L.loadtype,L.supplier,L.upazilla,L.po,L.manu";
|
|
|
|
|
|
$res = $this->Lamp_model->getOne($lamp_id,$fields);
|
|
|
if (empty($res)) {
|
|
@@ -3583,6 +3583,10 @@ class Lampcontrol extends Base_Controller {
|
|
|
'status' => $res['status'],
|
|
|
'batterytype' => $res['batterytype'],
|
|
|
'protocoltype'=>intval($res['protocoltype']),
|
|
|
+ 'supplier'=>intval($res['supplier']),
|
|
|
+ 'upazilla'=>intval($res['upazilla']),
|
|
|
+ 'po'=>intval($res['po']),
|
|
|
+ 'manu'=>intval($res['manu']),
|
|
|
"simid" => empty($res["simid"]) ? '' : $res["simid"],
|
|
|
"packageSurplus" => $res["packageSurplus"],
|
|
|
"updatetime" => $res["updatetime"],
|