| | |
| | | @ResponseBody |
| | | public interface LoginMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * 查询记录数 |
| | | * |
| | | * @param uname |
| | | * @param type |
| | |
| | | public Integer selectCount(String uname, Integer type, Timestamp start, Timestamp end); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * 分页查询 |
| | | * |
| | | * @param uname |
| | | * @param type |
| | |
| | | public List<LoginEntity> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * 插入一条 |
| | | * |
| | | * @param loginEntity |
| | | * @return |
| | |
| | | public Integer insertLogin(LoginEntity loginEntity); |
| | | |
| | | /** |
| | | * 批量添加 |
| | | * 插入多条 |
| | | * |
| | | * @param loginEntity |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer insertLogins(List<LoginEntity> loginEntity); |
| | | public Integer insertLogins(List<LoginEntity> list); |
| | | |
| | | /** |
| | | * 刪除数据 |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | |
| | | public Integer deleteLogin(int id); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | |
| | | public Integer deleteLogins(List<Integer> ids); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * 更新一条 |
| | | * |
| | | * @param loginEntity |
| | | * @return |
| | |
| | | public LoginEntity selectLogin(int id); |
| | | |
| | | /** |
| | | * 查询全部数据 |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |