| | |
| | | return service.updateEOperatingSwitchStart(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位",value = "停止测试") |
| | | @ApiOperation(tags = "电操开关遥调遥控点位", value = "停止测试") |
| | | @PostMapping("updateEOperatingSwitchStop") |
| | | public Response updateEOperatingSwitchStop(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | public Response updateEOperatingSwitchStop(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.updateEOperatingSwitchStop(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位",value = "电操开关控制") |
| | | @ApiOperation(tags = "电操开关遥调遥控点位", value = "电操开关控制") |
| | | @PostMapping("updateEOperatingSwitchControl") |
| | | public Response updateEOperatingSwitchControl(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | public Response updateEOperatingSwitchControl(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.updateEOperatingSwitchControl(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取FBO_4830放电参数") |
| | | @GetMapping("searchFBO4830Param") |
| | | public Response searchFBO4830Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchFBO4830Param(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FBO_4830放电参数") |
| | | @PostMapping("updateFBO4830Param") |
| | | public Response updateFBO4830Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateFBO4830Param(a059setParam); |
| | | } |
| | | } |
| | |
| | | public static final int CMD_StopShowPic_ACK = 0xBF; //停止显示内窥镜图片成功 |
| | | |
| | | //电操开关控制 |
| | | public static final int CMD_EOperatingSwitch_ControlSwitch = 0x57; //电操开关控制命令 |
| | | public static final int CMD_EOperatingSwitch_ControlSwitchAck = 0x58; //电操开关控制成功 |
| | | public static final int CMD_EOperatingSwitch_ControlSwitch = 0x57; //电操开关控制命令 |
| | | public static final int CMD_EOperatingSwitch_ControlSwitchAck = 0x58; //电操开关控制成功 |
| | | |
| | | } |
| | |
| | | |
| | | public Response getEOperatingSwitch(int devId) { |
| | | boolean b = sendCmdToDev(FBS9100_ComBase.CMD_GetDischargeParm, devId); |
| | | if(b){ |
| | | if (b) { |
| | | QueryWrapper<Fbs9100Setparam> query = Wrappers.query(); |
| | | query.eq("dev_id",devId).last(" limit 1"); |
| | | query.eq("dev_id", devId).last(" limit 1"); |
| | | Fbs9100Setparam param = mapper.selectOne(query); |
| | | return new Response().setII(1, true,param,null); |
| | | return new Response().setII(1, true, param, null); |
| | | } |
| | | return new Response().set(1,false,"读取参数失败,请检查网络!"); |
| | | return new Response().set(1, false, "读取参数失败,请检查网络!"); |
| | | |
| | | } |
| | | |
| | | //在线监测-实时监控-读取FBO_4830放电参数 |
| | | public Response searchFBO4830Param(int opCmd, int devId) { |
| | | PageHelper.startPage(1, 1); |
| | | QueryWrapper wrapper = new QueryWrapper(); |
| | | wrapper.eq("dev_id", devId); |
| | | boolean bl = sendCmdToFBS9100Dev(opCmd, 0, devId); |
| | | Fbs9100Setparam a059param = mapper.selectOne(wrapper); |
| | | return new Response().setII(1, bl, a059param, bl == true ? "读取参数成功!" : "读取A059参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //在线监测-实时监控-设置FBO_4830放电参数 |
| | | public Response updateFBO4830Param(Fbs9100Setparam a059setParam) { |
| | | Boolean b = mapper.updateA059Param(a059setParam); |
| | | boolean bl = false; |
| | | if (b) { |
| | | bl = sendCmdToFBS9100Dev(a059setParam.getOpCmd().intValue(), 0, a059setParam.getDevId().intValue()); |
| | | } |
| | | return new Response().set(1, bl, bl == true ? "修改参数成功!" : "设置A059参数失败,请检查网络!"); |
| | | } |
| | | } |