| | |
| | | package com.ruoyi.app.position.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.alarm.wall.domain.ArdAlarmWall; |
| | | import com.ruoyi.alarm.wall.mapper.ArdAlarmWallMapper; |
| | | import com.ruoyi.alarm.wall.service.IArdAlarmWallService; |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public void sendCheckCommandersPosition(String usersId,Map<String, Object> para) { |
| | | String reason = (String) para.get("reason"); |
| | | List<String> usersIdList = (List<String>) para.get("usersIdList"); |
| | | for(String commanderId : usersIdList){ |
| | | //设置key为checkCommanderPosition_指挥端主键_单兵端主键 |
| | | String key = "checkCommanderPosition_" + commanderId + "_" + usersId; |
| | | Map<String,Object> value = new HashMap(); |
| | | value.put("reason",reason); |
| | | value.put("state","0"); |
| | | value.put("begin",""); |
| | | redisCache.setCacheObject(key, JSON.toJSONString(value)); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void sendCheckSYCarsPosition(String usersId, Map<String, Object> para) { |
| | | String reason = (String) para.get("reason"); |
| | | List<String> usersIdList = (List<String>) para.get("usersIdList"); |
| | | for(String commanderId : usersIdList){ |
| | | //设置key为checkCommanderPosition_指挥端主键/PC端主键_单兵端主键 |
| | | String key = "checkSYCarsPosition_" + commanderId + "_" + usersId; |
| | | Map<String,Object> value = new HashMap(); |
| | | value.put("reason",reason); |
| | | value.put("state","0"); |
| | | value.put("begin",""); |
| | | redisCache.setCacheObject(key, JSON.toJSONString(value)); |
| | | } |
| | | } |
| | | } |