| | |
| | | } |
| | | |
| | | /** |
| | | * 获取最后一个记录 |
| | | */ |
| | | @GetMapping("/getLimit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入alarm") |
| | | public R<List<AlarmVO>> getLimit(AlarmVO alarm, Query query) { |
| | | List<AlarmVO> pages = alarmService.getLimit(); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | |
| | | */ |
| | | List<AlarmVO> selectAlarmPage(IPage page, AlarmVO alarm); |
| | | List<AlarmVO> selectList(String jtype, String district, String waringType, String beginTime, String endTime); |
| | | List<AlarmVO> getLimit(); |
| | | List<AlarmVO> selectListSe(String beginTime, String endTime); |
| | | List<AlarmVO> selectInfo(String id); |
| | | List<AlarmVO> selecttx(String id); |
| | |
| | | ORDER BY id ASC |
| | | </select> |
| | | |
| | | <select id="getLimit" resultMap="alarmResultMap"> |
| | | select a.id,a.alarmType,a.alarmPeople,a.alarmTime,a.galarmPeople,a.sex,a.phoneNumber,a.place,a.content,a.waringType, |
| | | a.deviceNumber,a.region,a.district, a.alarmId,a.LEVEL,a.jd,a.wd,a.jtype,a.rname,a.jjTime,a.province,a.city from sys_alarm a ORDER BY id DESC LIMIT 1 |
| | | </select> |
| | | |
| | | <select id="selectInfo" resultMap="alarmResultMap"> |
| | | SELECT |
| | | a.id, |
| | |
| | | */ |
| | | IPage<AlarmVO> selectAlarmPage(IPage<AlarmVO> page, AlarmVO alarm); |
| | | List<AlarmVO> selectList(String jtype, String district, String waringType, String beginTime, String endTime); |
| | | List<AlarmVO> getLimit(); |
| | | List<AlarmVO> selectInfo(String id); |
| | | List<AlarmVO> selecttx(String id); |
| | | void deletejj(String id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<AlarmVO> getLimit() { |
| | | return baseMapper.getLimit(); |
| | | } |
| | | |
| | | @Override |
| | | public List<AlarmVO> selectInfo(String id) { |
| | | return baseMapper.selectInfo(id); |
| | | } |