| | |
| | | |
| | | @GetMapping("getCinfById") |
| | | @ApiOperation(value = "根据id获取动环信息") |
| | | public Response getCinfById(@RequestParam int devId){ |
| | | return service.getCinfById(devId); |
| | | public Response getCinfById(@RequestParam int deviceId){ |
| | | return service.getCinfById(deviceId); |
| | | } |
| | | |
| | | @PostMapping("getSub") |
| | |
| | | return battInfMapper.judgeBattStationName3(battinf); |
| | | } |
| | | //根据id获取动环信息 |
| | | public Response getCinfById(int devId) { |
| | | public Response getCinfById(int deviceId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("device_id",devId); |
| | | wrapper.eq("device_id",deviceId); |
| | | wrapper.last("limit 1"); |
| | | CircleInf cinf=mapper.selectOne(wrapper); |
| | | return new Response().setII(1,cinf!=null,cinf,"根据id获取动环信息"); |