Преглед на файлове

灯控日志信息,兼容异常数据

crazycat преди 2 години
родител
ревизия
2d11a4b77b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/welampiot/controller/NewLampPoleController.java

+ 1 - 1
src/main/java/com/welampiot/controller/NewLampPoleController.java

@@ -327,7 +327,7 @@ public class NewLampPoleController {
         Integer lampId = (Integer) toolUtils.getRequestContent(request,"lampId",1);
         if (lampId == 0) return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR,version);
         LampInfoDTO detailsById = lampService.getDetailsById(lampId, version);
-        if (detailsById == null) toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
+        if (detailsById == null) return toolUtils.response(InterfaceResultEnum.PARAM_FAIL,version);
         Integer dateType = (Integer) toolUtils.getRequestContent(request,"dateType",1);
         long l = System.currentTimeMillis()-detailsById.getTimezone()*3600*1000;
         Long startTime = 0L;