NewLampPoleController.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. package com.welampiot.controller;
  2. import com.welampiot.common.BaseResult;
  3. import com.welampiot.common.InterfaceResultEnum;
  4. import com.welampiot.dto.*;
  5. import com.welampiot.service.*;
  6. import com.welampiot.utils.ToolUtils;
  7. import com.welampiot.vo.*;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.CrossOrigin;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RequestMethod;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import javax.servlet.http.HttpServletRequest;
  14. import java.text.ParseException;
  15. import java.text.SimpleDateFormat;
  16. import java.util.*;
  17. /**
  18. * ClassName: NewLampPoleController
  19. * Package: com.welampiot.controller
  20. * Description:
  21. *
  22. * @Author: zhj_Start
  23. * @Create: 2023/4/11 - 19:53
  24. * @Version: v1.0
  25. */
  26. @RestController
  27. @CrossOrigin
  28. @RequestMapping("/newLampPole")
  29. public class NewLampPoleController {
  30. @Autowired
  31. private WifiService wifiService;
  32. @Autowired
  33. private WifiInfoLogService wifiInfoLogService;
  34. @Autowired
  35. private EnvmonitorService envmonitorService;
  36. @Autowired
  37. private ScreenService screenService;
  38. @Autowired
  39. private ToolUtils toolUtils;
  40. @Autowired
  41. private LampPoleService lampPoleService;
  42. @Autowired
  43. private OperationLogService operationLogService;
  44. @Autowired
  45. private LampService lampService;
  46. @Autowired
  47. private LampInfoLogService lampInfoLogService;
  48. @RequestMapping(value = "/info",method = RequestMethod.POST)
  49. public BaseResult info(HttpServletRequest request){
  50. Integer version = request.getParameter("version") == null ? 0 : Integer.parseInt(request.getParameter("version"));
  51. LampPoleInfoVO lampPoleInfoVO = new LampPoleInfoVO();
  52. List sectionList = toolUtils.getSectionList(request);
  53. LampPoleVO lampPoleVO = new LampPoleVO();
  54. lampPoleVO.setSectionList(sectionList);
  55. List<LampPoleDTO> listByVO = lampPoleService.getListByVO(lampPoleVO);
  56. lampPoleInfoVO.setDeviceCount(listByVO.size());
  57. lampPoleInfoVO.setRunCount(listByVO.size());
  58. lampPoleInfoVO.setWifiCount(listByVO.size());
  59. lampPoleInfoVO.setEmCount(0);
  60. for (LampPoleDTO l:listByVO) {
  61. String devType = l.getDevType();
  62. List split = Arrays.asList(devType.split(","));
  63. if (split.contains("5")) lampPoleInfoVO.setEmCount(lampPoleInfoVO.getEmCount()+1);;
  64. }
  65. // $data['loopCount'] = $this->Loop_model->get_count(array('sectionid'=>$sectionId));
  66. // $id_arr = array_column($lampPoleList, 'id');
  67. // $temp_l = [];
  68. // if (!empty($id_arr)) {
  69. // $sql = 'select lamp_pole_id,max(updatetime),status,id,devtype from lamp_pole_alarm_log where lamp_pole_id in ('.implode(',', $id_arr).') and (status = 0 or status = 1) group by lamp_pole_id';
  70. // $l_list = $this->db->query($sql)->result_array();
  71. // foreach ($l_list as $key => $value) {
  72. // // if ($value['status'] != 1 && $value['status'] != 0) continue;
  73. // $temp_l[$value['lamp_pole_id']] = $value;
  74. // }
  75. // }
  76. //
  77. // $lampPoleId = array();
  78. // foreach ($lampPoleList as $lampPole) {
  79. // $data['deviceCount'] += 1;
  80. // $data['runCount'] += 1;
  81. // if (time() - strtotime($lampPole['createtime']) <= 3600*24*30) {
  82. // $data['newCount'] += 1;
  83. // }
  84. // $typeArr = explode(',', $lampPole['devtype']);
  85. // if (in_array('0', $typeArr)) $data['lampCount'] += 1;
  86. // if (in_array('1', $typeArr)) $data['videoCount'] += 1;
  87. // if (in_array('2', $typeArr)) $data['wifiCount'] += 1;
  88. // if (in_array('4', $typeArr)) $data['screenCount'] += 1;
  89. // if (in_array('5', $typeArr)) $data['emCount'] += 1;
  90. // if (in_array('6', $typeArr)) $data['chargeCount'] += 1;
  91. // if (in_array('7', $typeArr)) $data['weatherCount'] += 1;
  92. // if (in_array('9', $typeArr)) $data['radioCount'] += 1;
  93. // if (in_array('14', $typeArr)) $data['waterImmersionCount'] += 1;
  94. // if (in_array('18', $typeArr)) $data['tiltCount'] += 1;
  95. // if (in_array('15', $typeArr)) $data['lockCount'] += 1;
  96. // if (isset($temp_l[$lampPole['id']])) {
  97. // $data['faultCount'] += 1;
  98. // $data['runCount'] -= 1;
  99. // }
  100. //
  101. // $lampPoleId[] = $lampPole['id'];
  102. // }
  103. //
  104. // if (!empty($lampPoleId)) {
  105. // // smart_lock_dev_info
  106. // $res = $this->db->query('select count(*) as total from smart_lock_dev_info where lamp_pole_id in ('.implode(',', $lampPoleId).')')->row_array();
  107. // $data['lockCount'] = intval($res['total']);
  108. //
  109. // $lampinfoList = $this->Lampinfo_model->get_list(array('lamp_pole_id'=>$lampPoleId),'id');
  110. // $lampId = array();
  111. // $data['lampCount'] = count($lampinfoList);
  112. // foreach ($lampinfoList as $l) {
  113. // $lampId[] = $l['id'];
  114. // }
  115. // if (!empty($lampId)) {
  116. // $join = array(
  117. // array('table'=>'lamp_info_log_new as t1','cond'=>'t1.updatetime = LI.updatetime AND t1.lampid = LI.lampid','type'=>'inner')
  118. // );
  119. // $sql = "select day_gener_energy,month_gener_energy,used_energy_total from lamp_info_log_new a where a.lampid in (".implode(',', $lampId).")";
  120. // $lampInfoLogList = $this->db->query($sql)->result_array();
  121. // foreach ($lampInfoLogList as $lampLog) {
  122. // $data['dayCom'] += $lampLog['day_gener_energy'];
  123. // $data['monthCom'] += $lampLog['month_gener_energy'];
  124. // $data['totalCom'] += $lampLog['used_energy_total'];
  125. // }
  126. // }
  127. // }
  128. // $data['dayCom'] = round($data['dayCom'],1);
  129. // $data['monthCom'] = round($data['monthCom'],1);
  130. // $data['totalCom'] = round($data['totalCom'],1);
  131. return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,lampPoleInfoVO);
  132. }
  133. /**
  134. * 获取云盒列表
  135. * @param request
  136. * @return
  137. */
  138. @RequestMapping(value = "/wifiList", method = RequestMethod.POST)
  139. public BaseResult<WifiDTO> wifiList(HttpServletRequest request){
  140. Integer page = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
  141. Integer count = request.getParameter("count") == null ? 16 : Integer.parseInt(request.getParameter("count"));
  142. Integer online = request.getParameter("online") == null ? 0 : Integer.parseInt(request.getParameter("online"));
  143. String keyword = request.getParameter("keyword") == null ? "" : request.getParameter("keyword");
  144. WifiDTO dto = new WifiDTO();
  145. dto.setPage(count * (page - 1));
  146. dto.setCount(count);
  147. dto.setKeyword(keyword);
  148. dto.setOnlineState(online);
  149. dto.setSectionList(toolUtils.getSectionList(request));
  150. WifiVO vo = wifiService.getWifiList(dto);
  151. return BaseResult.success(vo);
  152. }
  153. /**
  154. * 获取云盒数据概览
  155. * @param request
  156. * @return
  157. */
  158. @RequestMapping(value = "/wifiInfo", method = RequestMethod.POST)
  159. public BaseResult<WifiDTO> wifiInfo(HttpServletRequest request){
  160. WifiDTO dto = new WifiDTO();
  161. dto.setSectionList(toolUtils.getSectionList(request));
  162. WifiVO vo = wifiService.getWifiInfo(dto);
  163. return BaseResult.success(vo);
  164. }
  165. /**
  166. * 获取云盒电源设置
  167. * @param request
  168. * @return
  169. */
  170. @RequestMapping(value = "/wifiOutInfo", method = RequestMethod.POST)
  171. public BaseResult<WifiDTO> wifiOutInfo(HttpServletRequest request){
  172. Integer version = request.getParameter("version") == null ? 0 : Integer.parseInt(request.getParameter("version"));
  173. Integer id = request.getParameter("id") == null ? 0 : Integer.parseInt(request.getParameter("id"));
  174. WifiOutInfoVO vo = wifiService.getWifiOutInfo(id, toolUtils.getSectionList(request));
  175. if (vo == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
  176. return BaseResult.success(vo);
  177. }
  178. /**
  179. * 获取云盒输出统计数据
  180. * @param request
  181. * @return
  182. */
  183. @RequestMapping(value = "/wifiOutStatistics", method = RequestMethod.POST)
  184. public BaseResult<WifiInfoLogDTO> wifiOutStatistics(HttpServletRequest request){
  185. Integer id = request.getParameter("id") == null ? 0 : Integer.parseInt(request.getParameter("id"));
  186. Integer version = request.getParameter("version") == null ? 0 : Integer.parseInt(request.getParameter("version"));
  187. Integer dateType = request.getParameter("dateType") == null ? 0 : Integer.parseInt(request.getParameter("dateType"));
  188. Integer date = request.getParameter("date") == null ? 0 : Integer.parseInt(request.getParameter("date"));
  189. Integer dataType = request.getParameter("dataType") == null ? 0 : Integer.parseInt(request.getParameter("dataType"));
  190. WifiInfoLogDTO dto = new WifiInfoLogDTO();
  191. dto.setWifiId(id);
  192. dto.setDateType(dateType);
  193. dto.setDate(date);
  194. dto.setDataType(dataType);
  195. dto.setSectionList(toolUtils.getSectionList(request));
  196. WifiInfoLogVO vo = wifiInfoLogService.getWifiOutStatisticsByDTO(dto);
  197. if (vo == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
  198. return BaseResult.success(vo);
  199. }
  200. /**
  201. * 获取气象站数据列表
  202. * @param request
  203. * @return
  204. */
  205. @RequestMapping(value = "/weatherList", method = RequestMethod.POST)
  206. public BaseResult<EnvmonitorDTO> weatherList(HttpServletRequest request){
  207. Integer page = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
  208. Integer count = request.getParameter("count") == null ? 16 : Integer.parseInt(request.getParameter("count"));
  209. Integer online = request.getParameter("online") == null ? 0 : Integer.parseInt(request.getParameter("online"));
  210. EnvmonitorDTO dto = new EnvmonitorDTO();
  211. dto.setPage(count * (page - 1));
  212. dto.setCount(count);
  213. dto.setOnline(online);
  214. dto.setSectionList(toolUtils.getSectionList(request));
  215. EnvmonitorVO vo = envmonitorService.getWeatherList(dto);
  216. return BaseResult.success(vo);
  217. }
  218. /**
  219. * 获取气象站概览数据
  220. * @param request
  221. * @return
  222. */
  223. @RequestMapping(value = "/weatherInfo", method = RequestMethod.POST,produces = "application/json;charset=utf-8")
  224. public BaseResult<EnvmonitorDTO> weatherInfo(HttpServletRequest request){
  225. EnvmonitorDTO dto = new EnvmonitorDTO();
  226. dto.setSectionList(toolUtils.getSectionList(request));
  227. EnvmonitorVO vo = envmonitorService.getDeviceCountBySectionList(dto);
  228. return BaseResult.success(vo);
  229. }
  230. /**
  231. * 获取广告列表
  232. * @param request
  233. * @return
  234. */
  235. @RequestMapping(value = "/screenList", method = RequestMethod.POST)
  236. public BaseResult<ScreenDTO> screenList(HttpServletRequest request){
  237. Integer page = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
  238. Integer count = request.getParameter("count") == null ? 16 : Integer.parseInt(request.getParameter("count"));
  239. Integer online = request.getParameter("online") == null ? 0 : Integer.parseInt(request.getParameter("online"));
  240. ScreenDTO dto = new ScreenDTO();
  241. dto.setPage(count * (page - 1));
  242. dto.setCount(count);
  243. dto.setOnline(online);
  244. dto.setSectionList(toolUtils.getSectionList(request));
  245. ScreenVO vo = screenService.getScreenList(dto);
  246. return BaseResult.success(vo);
  247. }
  248. /**
  249. * 操作日志列表
  250. * @param request
  251. * @return
  252. */
  253. @RequestMapping(value = "/logList", method = RequestMethod.POST)
  254. public BaseResult<OperationLogDTO> logList(HttpServletRequest request){
  255. String keyword = request.getParameter("keyword") == null ? "" : request.getParameter("keyword");
  256. String username = request.getParameter("username") == null ? "" : request.getParameter("username");
  257. int page = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
  258. int count = request.getParameter("count") == null ? 16 : Integer.parseInt(request.getParameter("count"));
  259. int operaType = request.getParameter("operaType") == null ? 0 : Integer.parseInt(request.getParameter("operaType"));
  260. int devType = request.getParameter("devType") == null ? 0 : Integer.parseInt(request.getParameter("devType"));
  261. OperationLogVO vo = new OperationLogVO();
  262. vo.setKeyword(keyword);
  263. vo.setOffset(count * (page - 1));
  264. vo.setLimit(count);
  265. vo.setOperaType(operaType);
  266. vo.setDevType(devType);
  267. vo.setUsername(username);
  268. OperationLogVO logVO = operationLogService.getLogListByVO(vo);
  269. return BaseResult.success(logVO);
  270. }
  271. /**
  272. * 删除日志信息
  273. * @param request
  274. * @return
  275. */
  276. @RequestMapping(value = "/delLog", method = RequestMethod.POST)
  277. public BaseResult delLog(HttpServletRequest request){
  278. Integer version = request.getParameter("version") == null ? 0 : Integer.parseInt(request.getParameter("version"));
  279. String logId = request.getParameter("logId");
  280. if (logId == null || logId.length() == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
  281. String[] split = logId.split(",");
  282. for (String id :split) {
  283. int l = Integer.parseInt(id);
  284. operationLogService.deleteLogListById(l);
  285. }
  286. return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version);
  287. }
  288. /**
  289. * 获取灯控日志信息
  290. * @param request
  291. * @return
  292. */
  293. @RequestMapping(value = "/lampDataHistory", method = RequestMethod.POST)
  294. public BaseResult lampDataHistory(HttpServletRequest request) throws ParseException {
  295. Integer version = (Integer) toolUtils.getRequestContent(request,"version",1);
  296. // List sectionList = toolUtils.getSectionList(request);lampId
  297. Integer lampId = (Integer) toolUtils.getRequestContent(request,"lampId",1);
  298. if (lampId == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
  299. LampInfoDTO detailsById = lampService.getDetailsById(lampId, version);
  300. Integer dateType = (Integer) toolUtils.getRequestContent(request,"dateType",1);
  301. long l = System.currentTimeMillis()-detailsById.getTimezone()*3600*1000;
  302. Long startTime = 0L;
  303. Long endTime = 0L;
  304. SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  305. if (dateType == 0){ // 1 天
  306. startTime = l - 24*3600*1000;
  307. endTime = l;
  308. }else if (dateType == 1){ // 3 天
  309. startTime = l - 24*3600*1000*3;
  310. endTime = l;
  311. }else if (dateType == 2){ // 7 天
  312. startTime = l - 24*3600*1000*7;
  313. endTime = l;
  314. }else if (dateType == 3){ // 14 天
  315. startTime = l - 24*3600*1000*14;
  316. endTime = l;
  317. }else if (dateType == 4){ // 日期选择 最多30天
  318. String date = (String) toolUtils.getRequestContent(request,"date",2);
  319. if (date.length() == 0) return toolUtils.response(InterfaceResultEnum.LACK_DATE_ERROR,version);
  320. List<String> split = Arrays.asList(date.split("/"));
  321. System.out.println(split.toString());
  322. System.out.println(split.get(0));
  323. System.out.println(split.get(1));
  324. startTime = simpleDateFormat.parse(split.get(0) + " 00:00:00").getTime();
  325. endTime = simpleDateFormat.parse(split.get(1) + " 23:59:59").getTime();
  326. if (endTime < startTime) toolUtils.response(InterfaceResultEnum.LACK_DATE_FORMAT_ERROR,version);
  327. if (endTime - startTime > 29*24*3600*1000) toolUtils.response(InterfaceResultEnum.LACK_DATE_RANGE_ERROR,version);
  328. startTime -= detailsById.getTimezone()*3600*1000;
  329. endTime -= detailsById.getTimezone()*3600*1000;
  330. }
  331. HashMap<String, Integer> objectObjectHashMap = new HashMap<>();
  332. Long timeT = startTime;
  333. int i = 0;
  334. ArrayList<Object> dateList = new ArrayList<>();
  335. ArrayList<Object> volList = new ArrayList<>();
  336. ArrayList<Object> curList = new ArrayList<>();
  337. ArrayList<Object> powerList = new ArrayList<>();
  338. ArrayList<Object> lightList = new ArrayList<>();
  339. ArrayList<LampInfoLogDTO> list = new ArrayList<>();
  340. simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:00:00");
  341. while (timeT < endTime){
  342. objectObjectHashMap.put(simpleDateFormat.format(new Date(timeT)).toString(),i);
  343. dateList.add(simpleDateFormat.format(new Date(timeT+detailsById.getTimezone()*3600*1000)).toString());
  344. volList.add(0);
  345. powerList.add(0);
  346. lightList.add(0);
  347. curList.add(0);
  348. list.add(null);
  349. timeT += 3600*1000;
  350. i ++;
  351. }
  352. SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  353. String startDate = simpleDateFormat.format(new Date(startTime));
  354. String endDate = simpleDateFormat.format(new Date(endTime));
  355. LampLogVO lampLogVO = new LampLogVO();
  356. lampLogVO.setLampId(lampId);
  357. lampLogVO.setStartDate(startDate);
  358. lampLogVO.setEndDate(endDate);
  359. List<LampInfoLogDTO> listByVO = lampInfoLogService.getListByVO(lampLogVO);
  360. for (LampInfoLogDTO lampInfoLogDTO :listByVO) {
  361. Date date = new Date(simpleDateFormat2.parse(lampInfoLogDTO.getUpdateTime()).getTime());
  362. String s = simpleDateFormat.format(date).toString();
  363. System.out.println(s);
  364. if (objectObjectHashMap.containsKey(s)){
  365. Integer integer = objectObjectHashMap.get(s);
  366. list.set(integer,lampInfoLogDTO);
  367. }
  368. }
  369. LampLogVO lampLogVO1 = new LampLogVO();
  370. Float maxCur = Float.valueOf(lampLogVO1.getMaxCur() == null ? "0" : lampLogVO1.getMaxCur());
  371. Float maxPower = Float.valueOf(lampLogVO1.getMaxPower() == null ? "0":lampLogVO1.getMaxPower());
  372. Integer maxLight = Integer.valueOf(lampLogVO1.getMaxLight() == null ? "0":lampLogVO1.getMaxLight());
  373. Float maxVol = Float.valueOf(lampLogVO1.getMaxVol()==null?"0":lampLogVO1.getMaxVol());
  374. ArrayList<Object> logList = new ArrayList<>();
  375. for (LampInfoLogDTO lampInfoLogDTO:list) {
  376. if (lampInfoLogDTO != null){
  377. Date date = new Date(simpleDateFormat2.parse(lampInfoLogDTO.getUpdateTime()).getTime());
  378. String s = simpleDateFormat.format(date).toString();
  379. System.out.println(s);
  380. Integer integer = null;
  381. if (objectObjectHashMap.containsKey(s)){
  382. integer = objectObjectHashMap.get(s);
  383. list.set(integer,lampInfoLogDTO);
  384. }
  385. if (lampInfoLogDTO.getCurrent() != null && !lampInfoLogDTO.getCurrent().equals("0") && integer != null){
  386. curList.set(integer,Float.valueOf(lampInfoLogDTO.getCurrent()));
  387. if (maxCur < Float.valueOf(lampInfoLogDTO.getCurrent()))maxCur = Float.valueOf(lampInfoLogDTO.getCurrent());
  388. }
  389. if (lampInfoLogDTO.getVoltage() != null && !lampInfoLogDTO.getVoltage().equals("0") && integer != null){
  390. volList.set(integer,Float.valueOf(lampInfoLogDTO.getVoltage()));
  391. if (maxVol < Float.valueOf(lampInfoLogDTO.getVoltage()))maxVol = Float.valueOf(lampInfoLogDTO.getVoltage());
  392. }
  393. if (lampInfoLogDTO.getDimValue() != null && !lampInfoLogDTO.getDimValue().equals("0") && integer != null){
  394. lightList.set(integer,Integer.valueOf(lampInfoLogDTO.getDimValue()));
  395. if (maxLight < Integer.valueOf(lampInfoLogDTO.getDimValue()))maxLight = Integer.valueOf(lampInfoLogDTO.getDimValue());
  396. }
  397. if (lampInfoLogDTO.getPower() != null && !lampInfoLogDTO.getPower().equals("0") && integer != null){
  398. powerList.set(integer,Float.valueOf(lampInfoLogDTO.getPower()));
  399. if (maxPower < Float.valueOf(lampInfoLogDTO.getPower()))maxPower = Float.valueOf(lampInfoLogDTO.getPower());
  400. }
  401. if (maxLight.intValue() < Integer.valueOf(lampInfoLogDTO.getDimValue()).intValue())maxLight = Integer.valueOf(lampInfoLogDTO.getDimValue());
  402. date = new Date(simpleDateFormat2.parse(lampInfoLogDTO.getUpdateTime()).getTime()+detailsById.getTimezone()*3600*1000);
  403. lampInfoLogDTO.setUpdateTime(simpleDateFormat.format(date).toString());
  404. logList.add(lampInfoLogDTO);
  405. }
  406. }
  407. lampLogVO1.setCurList(curList);
  408. lampLogVO1.setVolList(volList);
  409. lampLogVO1.setPowerList(powerList);
  410. lampLogVO1.setLightList(lightList);
  411. lampLogVO1.setDateList(dateList);
  412. lampLogVO1.setList(logList);
  413. lampLogVO1.setStep(3600);
  414. lampLogVO1.setMaxCur(maxCur.toString());
  415. lampLogVO1.setMaxLight(maxLight.toString());
  416. lampLogVO1.setMaxPower(maxPower.toString());
  417. lampLogVO1.setMaxVol(maxVol.toString());
  418. return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,lampLogVO1);
  419. }
  420. }