| | |
| | | |
| | | //删除标签 |
| | | @GetMapping("deletetag") |
| | | public void deletetag(Integer id){ |
| | | public void deletetag(Integer id,String caozuoName){ |
| | | String xieyi = "BSTOCS1,DELETETAG," + id + ",END"; |
| | | TbSystemOperationLog systemOperationLog = new TbSystemOperationLog(); |
| | | systemOperationLog.setName(UserController.username); |
| | | systemOperationLog.setName(caozuoName); |
| | | systemOperationLog.setTime(gettime()); |
| | | systemOperationLog.setContent("删除了一个标签,该标签为:"+id); |
| | | systemLogService.insertSystem(systemOperationLog); |
| | |
| | | //新增标签 |
| | | @PostMapping("addTag") |
| | | @ResponseBody |
| | | public void addTag(TbTag tag, HttpServletResponse response) throws IOException { |
| | | public void addTag(TbTag tag, HttpServletResponse response,String caozuoName) throws IOException { |
| | | String xieyi = "BSTOCS1,ADDTAG," + tag.getTagId() +",未绑定,150,10000,1,"+tag.getType()+",END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | TbSystemOperationLog systemOperationLog = new TbSystemOperationLog(); |
| | | systemOperationLog.setName(UserController.username); |
| | | systemOperationLog.setName(caozuoName); |
| | | systemOperationLog.setTime(gettime()); |
| | | systemOperationLog.setContent("增加了一个标签,该标签为:"+tag.getTagId()); |
| | | systemLogService.insertSystem(systemOperationLog); |
| | |
| | | //修改标签 |
| | | @PostMapping("upTag") |
| | | @ResponseBody |
| | | public void upTag(TbTag tag, HttpServletResponse response) throws IOException { |
| | | public void upTag(TbTag tag, HttpServletResponse response,String caozuoName) throws IOException { |
| | | String xieyi = "BSTOCS1,ALTERTAG," + tag.getTagId() +",未绑定,150,10000,1,"+tag.getType()+",END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | TbSystemOperationLog systemOperationLog = new TbSystemOperationLog(); |
| | | systemOperationLog.setName(UserController.username); |
| | | systemOperationLog.setName(caozuoName); |
| | | systemOperationLog.setTime(gettime()); |
| | | systemOperationLog.setContent("修改了标签信息,该标签为:"+tag.getTagId()); |
| | | systemLogService.insertSystem(systemOperationLog); |
| | |
| | | PageInfo<TbTag> cz= tagService.findSearch(page, limit,tag); |
| | | return resultutil.returnSuccess(cz.getTotal(), cz.getList()); |
| | | } |
| | | |
| | | //给标签发送语音消息 |
| | | @GetMapping("sendMsg") |
| | | public void sendMsg(String username,String context,String tagid){ |
| | | String xieyi = "BSTOCS1,TOMESSAGE," + tagid + "," + context + "," + username + ",END"; |
| | | TbTag tag = new TbTag(); |
| | | tag.setTagId(tagid); |
| | | TbTag tag1 = tagService.findSearchOne(tag); |
| | | String xieyi = "BSTOCS1,TOMESSAGE," + tag1.getTagId() + "," + context + "," + username + ",END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | //获取发送人员,发送对象,发送时间,发送内容 |
| | | TbMessageHistory tbMessageHistory = new TbMessageHistory(); |