| | |
| | | |
| | | @Override |
| | | public Map<String, Object> faceRecord(String token) { |
| | | SysUserInfo userInfo = UserInfoUtils.getInstance().getUserInfo(token); |
| | | int userCount = platUserMapper.queryPlatUser(userInfo.getCompanyId()); |
| | | //SysUserInfo userInfo = UserInfoUtils.getInstance().getUserInfo(token); |
| | | //int userCount = platUserMapper.queryPlatUser(userInfo.getCompanyId()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("mod","facerecord"); |
| | | //map.put("totalUserCount",userCount); |
| | | //map.put("watchUserCount",0); |
| | | //map.put("dangerUserCount",0); |
| | | |
| | | List<String> faceAreas = platUserMapper.faceArea(); |
| | | map.put("faceAreas",faceAreas); |
| | | |
| | | List<DoorUserVo> list = platUserMapper.queryDoorUser(); |
| | | map.put("doorUserList",list); |
| | | PlatUserFace platUserFace = platUserMapper.queryFaceUserByJobNum(list.get(0).getJobNum()); |
| | |
| | | platUserMapper.insertDoorListener(doorLisPic); |
| | | } |
| | | |
| | | @Override |
| | | public List<HashMap<String, Object>> queryGroups() { |
| | | return platUserMapper.queryGroups(); |
| | | } |
| | | |
| | | @Override |
| | | public List<HashMap<String, Object>> queryHelmetWarn() { |
| | | return platUserMapper.queryHelmetWarn(); |
| | | } |
| | | |
| | | @Override |
| | | public List<AreaAdmin> areaAdminInfo() { |
| | | List<AreaAdmin> areaAdminList = platUserMapper.queryAreaInfo(); |
| | | for(AreaAdmin areaAdmin : areaAdminList){ |
| | | List<NamePhoneDepart> namePhoneDepartList = platUserMapper.queryAdminByArea(areaAdmin.getAreaId()); |
| | | areaAdmin.setNpdList(namePhoneDepartList); |
| | | } |
| | | return areaAdminList; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | MqContent mqContent = new MqContent("sync_person", "notify"); |
| | | String uu = "02d32ee86bec2b11e4b23eb6"; |