| | |
| | | List<SuserVOs> selectName(); |
| | | String selectNames(String ud); |
| | | void updateOne(Integer id, String ynumber, String yname, String phone, String address, String type, String dj, String information, String jd, String wd, String createtime, String addvcd); |
| | | void updateUser(String online_status,String account); |
| | | void updateUser(String online_status,String account,String workSt); |
| | | |
| | | void s(String ynumber, String yname, String phone, String address, String type, String dj, String information, String jd, String wd, String createtime, String addvcd); |
| | | |
| | |
| | | </select> |
| | | |
| | | <update id="updateUser"> |
| | | update jfpth.blade_user SET online_status=#{online_status} where account=#{account} |
| | | update jfpth.blade_user SET online_status=#{online_status},work_status=#{workSt} where id=#{account} |
| | | </update> |
| | | |
| | | </mapper> |
| | |
| | | String selectNames(String ud); |
| | | void updateOne(Integer id, String ynumber, String yname, String phone, String address, String type, String dj, String information, String jd, String wd, String createtime, String addvcd); |
| | | void s(String ynumber, String yname, String phone, String address, String type, String dj, String information, String jd, String wd, String createtime, String addvcd); |
| | | void updateUser(String online_status,String account); |
| | | void updateUser(String online_status,String account,String workSt); |
| | | /** |
| | | * 查询业主总数 |
| | | * @return |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void updateUser(String online_status, String account) { |
| | | baseMapper.updateUser(online_status, account); |
| | | public void updateUser(String online_status, String account,String workSt) { |
| | | baseMapper.updateUser(online_status, account , workSt); |
| | | } |
| | | |
| | | |
| | |
| | | //用户离线状态 |
| | | String name = ChannelSupervise.findName(ctx.channel().id().asShortText()); |
| | | String num="0"; |
| | | webSocketHandler.suserService.updateUser(num,name); |
| | | //工作状态(0闲置,1工作中) |
| | | String workSt = "0"; |
| | | webSocketHandler.suserService.updateUser(num,name,workSt); |
| | | ChannelSupervise.removeChannel(ctx.channel()); |
| | | } |
| | | |
| | |
| | | ChannelSupervise.addChannel(ctx.channel(),request); |
| | | //用户在线状态 |
| | | this.on=request; |
| | | //在线状态(0掉线,1在线) |
| | | String num="1"; |
| | | webSocketHandler.suserService.updateUser(num,request); |
| | | //工作状态(0闲置,1工作中) |
| | | String workSt = "0"; |
| | | webSocketHandler.suserService.updateUser(num,request,workSt); |
| | | TextWebSocketFrame tws = new TextWebSocketFrame(new Date().toString() |
| | | + ctx.channel().id() + ":" + ctx.channel()); |
| | | // 返回【谁发的发给谁】 |