| | |
| | | package com.whyc.service; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.LocklogDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.LockCtlLogMapper; |
| | | import com.whyc.pojo.plus_lock_ram.LockCtlLog; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | log.setCtlUname(uname); |
| | | mapper.insert(log); |
| | | } |
| | | //查询开锁日志 |
| | | public Response getLockLog(LocklogDto logDto) { |
| | | PageHelper.startPage(logDto.getPageNum(),logDto.getPageSize()); |
| | | List<LockCtlLog> list=mapper.getLockLog(logDto); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"查询开锁日志"); |
| | | } |
| | | } |