根据fileId获取参数信息fileParam/getParamByFileId
| | |
| | | public Response deleteDataById(@RequestParam int stationId,@RequestParam int fileId){ |
| | | return service.deleteDataById(stationId,fileId); |
| | | } |
| | | |
| | | @ApiOperation("根据fileId获取参数信息") |
| | | @GetMapping("getParamByFileId") |
| | | public Response getParamByFileId(@RequestParam int fileId){ |
| | | return service.getParamByFileId(fileId); |
| | | } |
| | | |
| | | } |
| | |
| | | infoWrapper.eq("file_id",fileId); |
| | | groupInfoMapper.delete(infoWrapper); |
| | | } |
| | | //根据fileId获取参数信息 |
| | | public Response getParamByFileId(int fileId) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("file_id",fileId); |
| | | wrapper.last("limit 1"); |
| | | FileParam fileParam=mapper.selectOne(wrapper); |
| | | return new Response().setII(1,fileParam!=null,fileParam,"返回数据"); |
| | | } |
| | | } |