| | |
| | | } |
| | | return new Response().set(1, bl, bl == true ? "修改参数成功!" : "设置A059参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //在线监测-实时监控-读取kgdy放电参数 |
| | | public Response searchKgdyParam(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参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //在线监测-实时监控-设置kgdy放电参数 |
| | | public Response updateKgdyParam(Fbs9100Setparam a059setParam) { |
| | | Boolean b = mapper.updateKgdyParam(a059setParam); |
| | | boolean bl = false; |
| | | if (b) { |
| | | bl = sendCmdToFBS9100Dev(a059setParam.getOpCmd().intValue(), 0, a059setParam.getDevId().intValue()); |
| | | } |
| | | return new Response().set(1, bl, bl == true ? "修改参数成功!" : "设置A059参数失败,请检查网络!"); |
| | | } |
| | | } |