| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @ResponseBody |
| | | public interface OperateMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * |
| | | * @param userid 登录人ID |
| | | * @return 记录数 |
| | | * 查询记录数 |
| | | * @param uname |
| | | * @param type |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | public Integer selectCount(String userid); |
| | | public Integer selectCount(String uname, Integer type, Timestamp start, Timestamp end); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * |
| | | * @param userid 表名 |
| | | * @param limit 记录表 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | * 分页查询 |
| | | * @param uname |
| | | * @param type |
| | | * @param start |
| | | * @param end |
| | | * @param limit |
| | | * @param offset |
| | | * @return |
| | | */ |
| | | public List<OperateEntity> selectByPage(String userid, Integer limit, Integer offset); |
| | | public List<OperateEntity> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 添加数据 |