| | |
| | | import com.hxzkoa.json.tb_department; |
| | | import com.hxzkoa.json.tb_fence; |
| | | import com.hxzkoa.json.tb_shipin; |
| | | import com.hxzkoa.json.tb_system; |
| | | import com.hxzkoa.json.tb_tongbuanchor; |
| | | import com.hxzkoa.json.tb_xunjianbaobiao; |
| | | import com.hxzkoa.json.tb_xunjianset; |
| | | import com.hxzkoa.services.BasicInfoService; |
| | | import com.hxzkoa.services.FenceService; |
| | | import com.hxzkoa.services.LabelService; |
| | | import com.hxzkoa.services.SysSettingService; |
| | | import com.hxzkoa.udp.GetNowTime; |
| | | import com.hxzkoa.udp.Udp_Out; |
| | | /*import com.hxzkoa.udp.Udp_Receive;*/ |
| | |
| | | private BasicInfoService basicInfoService; |
| | | @Autowired |
| | | private LabelService labelService; |
| | | @Autowired |
| | | private SysSettingService sysSettingService; |
| | | |
| | | @RequestMapping(value = "/fenceList.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String fenceList(HttpServletRequest request) throws ParseException { |
| | |
| | | fence.setZuobiao(request.getParameter("zuobiao")); |
| | | fence.setStart(request.getParameter("start")); |
| | | fence.setStart(request.getParameter("stop")); |
| | | fence.setBaoliu1(request.getParameter("gaodu")); |
| | | fence.setId(Integer.parseInt(request.getParameter("id"))); |
| | | fenceService.fenceList_modify(fence); |
| | | List<tb_fence> fenceListList = fenceService.searchFenceListid(fence.getId()); |
| | |
| | | json.put("fences", fences2); |
| | | return json.toString(); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/kaishijianting.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void kaishijianting(HttpServletRequest request) { |
| | | String tagid = request.getParameter("tagid"); |
| | | String xieyi = "BSTOCS1,URTADDFENCE,出去告警,Start,"+tagid+",END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/jieshujianting.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void jieshujianting(HttpServletRequest request) { |
| | | String tagid = request.getParameter("tagid"); |
| | | String xieyi = "BSTOCS1,URTADDFENCE,出去告警,Stop,"+tagid+",END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/huoquzuobiao.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String huoquzuobiao(HttpServletRequest request) { |
| | | JSONObject json = new JSONObject(); |
| | | List<tb_system> systems = sysSettingService.getSetting(); |
| | | json.put("dataList", systems); |
| | | return json.toString(); |
| | | } |
| | | } |