| | |
| | | */ |
| | | package cn.gistack.by.waterdata.controller; |
| | | |
| | | import cn.gistack.by.waterdata.pojo.entity.CsbldFlag; |
| | | import cn.gistack.by.waterdata.pojo.entity.DistanceRecord; |
| | | import cn.gistack.by.waterdata.pojo.entity.SelectPageParam; |
| | | import cn.gistack.by.waterdata.pojo.vo.DistanceRecordVO; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * E0功能码数据controller. |
| | |
| | | */ |
| | | @GetMapping("/selectpage") |
| | | @ApiOperation(value = "自定义分页", notes = "传入SelectPageParam对象") |
| | | public R<List<DistanceRecordVO>> selectPage(SelectPageParam param) { |
| | | List<DistanceRecordVO> recordVOList = distanceRecordService.selectPage(param); |
| | | return R.data(recordVOList); |
| | | public R<IPage<DistanceRecordVO>> selectPage(SelectPageParam param) { |
| | | IPage<DistanceRecordVO> page = distanceRecordService.selectPage(param); |
| | | return R.data(page); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(distanceRecordService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 判断水库是否有超声波雷达扩展信息 |
| | | */ |
| | | @GetMapping("/csbldFlag") |
| | | public R<CsbldFlag> csbldFlag(@RequestParam String skGuid) { |
| | | //IPage<DistanceRecordVO> pages = distanceRecordService.selectDistanceRecordPage(Condition.getPage(query), news); |
| | | |
| | | return R.data(distanceRecordService.csbldFlag(skGuid)); |
| | | } |
| | | } |