Commit 79a47e10 by 1244575290@qq.com

显示真实在线状态

parent 5ce969f7
...@@ -161,7 +161,7 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz { ...@@ -161,7 +161,7 @@ public class PcloudRobotBizImpl implements PcloudRobotBiz {
} }
// 如果超时没有收到心跳则下线 // 如果超时没有收到心跳则下线
if (System.currentTimeMillis() > Long.parseLong(s)) { if (System.currentTimeMillis() > Long.parseLong(s)) {
pcloudRobotDao.updateRealStatus(id, 2); pcloudRobotDao.updateRealStatus(id, 0);
} }
} }
} }
......
...@@ -41,10 +41,10 @@ public class PcloudRobot extends BaseEntity { ...@@ -41,10 +41,10 @@ public class PcloudRobot extends BaseEntity {
@ApiModelProperty("小号分类id") @ApiModelProperty("小号分类id")
private String classifyId; private String classifyId;
@ApiModelProperty("状态:1 在线 2 离线") @ApiModelProperty("状态:1 在线 0 离线")
private Integer state; private Integer state;
@ApiModelProperty("真实状态:1 在线 2 离线") @ApiModelProperty("真实状态:1 在线 0 离线")
private Integer realStatus; private Integer realStatus;
@ApiModelProperty("小号回复欢迎语") @ApiModelProperty("小号回复欢迎语")
......
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
</select> </select>
<select id="listNoClassifyRobot" resultMap="BaseResultMap"> <select id="listNoClassifyRobot" resultMap="BaseResultMap">
select id, wx_id, unique_number select id, wx_id, unique_number, real_status
from pcloud_robot where robot_type is null from pcloud_robot where robot_type is null
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment