| | |
| | | public Response update61850Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update61850Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-只能61853放电参数设置", notes = "Fbs9100_setparamAction_action_update61853Param") |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置61853放电参数设置") |
| | | @PostMapping("update61853Param") |
| | | public Response update61853Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update61853Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置6184放电参数设置") |
| | | @PostMapping("update6184Param") |
| | | public Response update6184Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update6184Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取6184放电参数") |
| | | @GetMapping("get6184Param") |
| | | public Response get6184Param(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.get6184Param(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184设备远程重启") |
| | | @GetMapping("restart6184") |
| | | public Response restart6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.restart6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184远程启动放电测试") |
| | | @GetMapping("startDis6184") |
| | | public Response startDis6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.startDis6184(devId, battGroupNum); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184启动内阻测试") |
| | | @GetMapping("startRes6184") |
| | | public Response startRes6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.startRes6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184停止测试") |
| | | @GetMapping("stop6184") |
| | | public Response stop6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.stop6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-A059发送指令", notes = "Fbs9100_setparamAction_action_updateA059Cmd(新需求A059检测到停电事件也用此接口发送停止命令)") |
| | | @GetMapping("updateA059Cmd") |
| | |
| | | final public static int CMD_Stop=83; |
| | | final public static int CMD_SetDischargeParm=40; |
| | | final public static int CMD_GetDischargeParm=41; |
| | | final public static int CMD_StartResDischarge = 0x32; //内阻测试 |
| | | final public static int CMd_SetIp_Tem=90; // 暂时 |
| | | final public static int CMd_SetIp_Per=88; // 永久 |
| | | |
| | |
| | | |
| | | //在线监测-实时监控-设置并联电源放电参数 |
| | | Boolean updateParalleParam(Fbs9100Setparam a059setParam); |
| | | //在线监测-实时监控-设置6184放电参数设置 |
| | | Boolean update6184Param(Fbs9100Setparam fbs9100Setparam); |
| | | } |
| | |
| | | return new Response().set(1,bl,bl==true?"修改参数成功!":"设置61850参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //在线监测-实时监控-只能61853放电参数设置 |
| | | //在线监测-实时监控-设置61853放电参数设置 |
| | | public Response update61853Param(Fbs9100Setparam fbs9100Setparam) { |
| | | Boolean b=mapper.update61853Param(fbs9100Setparam); |
| | | boolean bl=false; |
| | |
| | | } |
| | | return new Response().set(1,bl,bl==true?"修改参数成功!":"设置61853参数失败,请检查网络!"); |
| | | } |
| | | |
| | | |
| | | |
| | | //在线监测-实时监控-A059发送指令 |
| | | public Response updateA059Cmd(int opCmd, int devId) { |
| | |
| | | boolean bl = sendCmdToFBS9100Dev(opCmd, testType, devId); |
| | | return new Response().set(1, bl, bl == true ? "操控FBO4830成功!" : "操控FBO4830失败,请检查网络!"); |
| | | } |
| | | |
| | | //在线监测-实时监控-设置6184放电参数设置 |
| | | public Response update6184Param(Fbs9100Setparam fbs9100Setparam) { |
| | | Boolean b=mapper.update6184Param(fbs9100Setparam); |
| | | boolean bl=false; |
| | | if(b){ |
| | | bl=sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_SetDischargeParm,0,fbs9100Setparam.getDevId().intValue(),fbs9100Setparam.getBattGroupNum()); |
| | | } |
| | | return new Response().set(1,bl,bl==true?"修改参数成功!":"设置6184参数失败,请检查网络!"); |
| | | } |
| | | //在线监测-实时监控-读取6184放电参数 |
| | | public Response get6184Param(int devId, int battGroupNum) { |
| | | PageHelper.startPage(1, 1); |
| | | QueryWrapper wrapper = new QueryWrapper(); |
| | | wrapper.eq("dev_id", devId); |
| | | boolean bl = sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_GetDischargeParm,0, devId, battGroupNum); |
| | | Fbs9100Setparam a059param = mapper.selectOne(wrapper); |
| | | return new Response().setII(1, bl, a059param, bl == true ? "读取参数成功!" : "读取6184放电参数,请检查网络!"); |
| | | } |
| | | //在线监测-实时监控-6184设备远程重启 |
| | | public Response restart6184(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_ResetSystem,0, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"6184设备远程重启成功!":"6184设备远程重启失败!"); |
| | | } |
| | | //在线监测-实时监控-6184远程启动放电测试 |
| | | public Response startDis6184(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_Start,FBS9100_ComBase.CMD_StartDischarge, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"6184远程启动放电测试成功!":"6184远程启动放电测试失败!"); |
| | | } |
| | | //在线监测-实时监控-6184启动内阻测试 |
| | | public Response startRes6184(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_Start,FBS9100_ComBase.CMD_StartResDischarge, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"启动内阻测试成功!":"启动内阻测试失败!"); |
| | | } |
| | | //在线监测-实时监控-6184停止测试 |
| | | public Response stop6184(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToFBS9100Dev2(FBS9100_ComBase.CMD_Stop,0, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"6184停止测试成功!":"6184停止测试失败!"); |
| | | } |
| | | } |
| | |
| | | ChargeCurrSet=#{ChargeCurrSet} |
| | | where dev_id = #{devId} |
| | | </update> |
| | | <update id="update6184Param"> |
| | | update db_ram_db.tb_Fbs9100_setparam |
| | | set |
| | | DisCurr=#{DisCurr}, |
| | | DisCap=#{DisCap}, |
| | | DisTime=#{DisTime}, |
| | | groupVol_Low=#{groupvolLow}, |
| | | monomerVol_Low=#{monomervolLow}, |
| | | MonomerTmp_High=#{monomertmpHigh}, |
| | | ChargeCurrSet=#{ChargeCurrSet} |
| | | MonVol=#{MonVol}, |
| | | moncap=#{moncap} |
| | | where dev_id = #{devId} |
| | | </update> |
| | | <update id="updateA059Param"> |
| | | UPDATE db_ram_db.tb_fbs9100_setparam |
| | | SET dev_ip=#{devIp}, |
| | |
| | | DisTime=#{DisTime} |
| | | WHERE dev_id = #{devId} |
| | | </update> |
| | | <select id="serchbyDev_id" resultType="com.whyc.pojo.Fbs9100Setparam"> |
| | | |
| | | <select id="serchbyDev_id" resultType="com.whyc.pojo.Fbs9100Setparam"> |
| | | select db_battinf.tb_battinf.StationName |
| | | , db_battinf.tb_battinf.FBSDeviceId |
| | | , db_battinf.tb_battinf.FBSDeviceIp |