Browse Source

优化

master
lxc 2 years ago
parent
commit
765c4f8c4f
  1. 13
      lmp_v0.3.9/src/com/lpro/iot/bean/ec/IotNodeInfoBOSocket.java
  2. 29
      lpro/src/main/java/com/lp/controller/iot/IotNodeInfoController.java

13
lmp_v0.3.9/src/com/lpro/iot/bean/ec/IotNodeInfoBOSocket.java

@ -0,0 +1,13 @@
package com.lpro.iot.bean.ec;
import com.lpro.iot.bean.IotNodeInfoBO;
import org.apache.mina.core.session.IoSession;
import java.util.Date;
public class IotNodeInfoBOSocket extends IotNodeInfoBO {
//Stocket session
public IoSession session;
//最后访问时间
public Date lastDatetime;
}

29
lpro/src/main/java/com/lp/controller/iot/IotNodeInfoController.java

@ -6,22 +6,6 @@
*/
package com.lp.controller.iot;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import com.lp.bo.IotHistoryNodeDataBO;
import com.lp.bo.IotNodeInfoBO;
import com.lp.bo.IotSensorInfoBO;
@ -32,13 +16,22 @@ import com.lp.cfg.ProConfig;
import com.lp.common.Code;
import com.lp.common.Code.ResponseCode;
import com.lp.common.CodeIot;
import com.lp.common.Constants;
import com.lp.common.RequestURLIOT;
import com.lp.controller.BaseController;
import com.lp.service.IotNodeInfoService;
import com.lp.util.ObjectUtil;
import com.lp.util.ResultMapUtils;
import com.lp.util.iot.ProtocolUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;
@Controller
@ -254,7 +247,7 @@ public class IotNodeInfoController extends BaseController {
}
/**
* LPM 更新网关状态设备在线
* 设备在线 更新设备状态 #LPM 1 更新网关状态
* @param response
* @param obj
* @return

Loading…
Cancel
Save