| | |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 模型 |
| | | * @author WWW |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | @SuppressWarnings("ALL") |
| | | public interface ModelMapper { |
| | | /** |
| | | * 查询记录数 |
| | | * |
| | | * @param layerid 图层ID |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(Integer layerid); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param layerid 图层ID |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<ModelEntity> selectByPage(Integer layerid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<ModelEntity> selectAll(); |
| | | |
| | | /** |
| | | * 根据ID查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public ModelEntity selectById(int id); |
| | | |
| | | /** |
| | | * 根据Guid查询模型 |
| | | * |
| | | * @param layerid |
| | | * @param modelid |
| | | * @return |
| | | */ |
| | | public ModelEntity selectModelByGuid(int layerid, String modelid); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public Integer insert(ModelEntity entity); |
| | | |
| | | /** |
| | | * 插入多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer inserts(List<ModelEntity> list); |
| | | |
| | | /** |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Integer delete(int id); |
| | | |
| | | /** |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public Integer deletes(List<Integer> ids); |
| | | |
| | | /** |
| | | * 更新一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public Integer update(ModelEntity entity); |
| | | |
| | | /** |
| | | * 更新多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer updates(List<ModelEntity> list); |
| | | } |