BTS停止基础上加上tb_li9130_setparam_plan表得is_statup设置为0
| | |
| | | return service.serchbyDev_id(num,testCmd,devId,battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "BTS停止基础上加上tb_li9130_setparam_plan表得is_statup设置为0") |
| | | @GetMapping("serchbyDev_id_li9130") |
| | | public Response serchbyDev_id_li9130(@RequestParam int num, Integer testCmd, @RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.serchbyDev_id_li9130(num, testCmd, devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-重启设备") |
| | | @PostMapping("updateMaintain") |
| | | public Response updateMaintain(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | return service.updateMaintain(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-BTS放电参数设置",notes = "Fbs9100_setparamAction_action_update") |
| | | @PostMapping("update") |
| | | public Response update(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | |
| | | import com.whyc.dto.FBS9100_ComBase; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.Fbs9100SetparamMapper; |
| | | import com.whyc.mapper.Li9130SetparamPlanMapper; |
| | | import com.whyc.pojo.Fbs9100Setparam; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | public class Fbs9100SetparamService { |
| | | @Resource |
| | | private Fbs9100SetparamMapper mapper; |
| | | @Resource |
| | | private Li9130SetparamPlanMapper li9130Mapper; |
| | | |
| | | //查询设备的参数 |
| | | public Response serchdevParam(int devId) { |
| | | sendCmdToFBS9100Dev(FBS9100_ComBase.CMD_GetDischargeParm,0,devId); |
| | |
| | | return new Response().setII(1,setparam,bl,bl==true?"查询成功!":"设置9100参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //右键查看参数和弹出框的刷新按钮-----BTS停止基础上加上tb_li9130_setparam_plan表得is_statup设置为0 |
| | | public Response serchbyDev_id_li9130(int num, Integer testCmd, int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToFBS9100Dev2(num, testCmd != null ? testCmd : 0, devId, battGroupNum); |
| | | //tb_li9130_setparam_plan表得is_statup设置为0 |
| | | UpdateWrapper wrapper = new UpdateWrapper(); |
| | | wrapper.set("is_startup", 0); |
| | | wrapper.eq("dev_id", devId); |
| | | int flag = li9130Mapper.update(null, wrapper); |
| | | Fbs9100Setparam setparam = mapper.serchbyDev_id(devId); |
| | | return new Response().setIII(1, setparam, bl, flag > 0, bl == true ? "查询成功!" : "设置9100参数失败,请检查网络!"); |
| | | } |
| | | |
| | | //离线养护功能-----重启设备 |
| | | public Response updateMaintain(Fbs9100Setparam fbs9100Setparam) { |
| | | boolean bl=false; |