| | |
| | | |
| | | @Override |
| | | public void record(String mess) { |
| | | logger.info("人脸通过记录"+mess); |
| | | JSONObject jsonObject = JSON.parseObject(mess); |
| | | DoorLis doorLis = new DoorLis(jsonObject); |
| | | userMapper.insertDoorLis(doorLis); |
| | |
| | | logger.info("删除人员通知"+mess); |
| | | JSONObject jsonObject = JSON.parseObject(mess); |
| | | if(jsonObject.containsKey("success")&&jsonObject.getBooleanValue("success")){ |
| | | JSONObject paramJson = jsonObject.getJSONObject("param"); |
| | | JSONObject paramJson = jsonObject.getJSONObject("params"); |
| | | List<String> userIds = JSONArray.parseArray(paramJson.getString("userIds"),String.class); |
| | | userMapper.syncResult(3,userIds); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public String queryOriStrById(String id) { |
| | | return userMapper.queryOriStrById(id); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("method","delete_person"); |