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

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

@@ -327,6 +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);
         Integer dateType = (Integer) toolUtils.getRequestContent(request,"dateType",1);
         long l = System.currentTimeMillis()-detailsById.getTimezone()*3600*1000;
         Long startTime = 0L;