| | |
| | | public MsgEntity selectById(int id); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * 插入一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | |
| | | public Integer insert(MsgEntity entity); |
| | | |
| | | /** |
| | | * 批量添加 |
| | | * 插入多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | |
| | | public Integer inserts(List<MsgEntity> list); |
| | | |
| | | /** |
| | | * 刪除数据 |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | |
| | | public Integer delete(int id); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | |
| | | public Integer deletes(List<Integer> ids); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * 更新一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | |
| | | public Integer update(MsgEntity entity); |
| | | |
| | | /** |
| | | * 批量修改 |
| | | * 更新多条 |
| | | * |
| | | * @param list |
| | | * @return |