| | |
| | | package com.moon.server.mapper.data; |
| | | |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.MetaPubEntity; |
| | | import com.moon.server.entity.data.PublishEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 数据发布 |
| | | * @author WWW |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | @SuppressWarnings("ALL") |
| | | public interface PublishMapper { |
| | | /** |
| | | * 查询记录数 |
| | | * |
| | | * @param name 名称 |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(String name); |
| | | public Integer selectCount(String name, String dircode, String type); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param name 名称 |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<PublishEntity> selectByPage(String name, Integer limit, Integer offset); |
| | | public List<PublishEntity> selectByPage(String name, String dircode, String type, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<PublishEntity> selectAll(); |
| | | |
| | | /** |
| | | * 根据ID查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public PublishEntity selectById(int id); |
| | | |
| | | /** |
| | | * 根据ID字符串查询 |
| | | * |
| | | * @param ids ID字符串 |
| | | * @return 记录集合 |
| | | */ |
| | | public List<PublishEntity> selectByIds(String ids); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public List<MetaEntity> selectMetasByPubid(Integer pubid); |
| | | |
| | | public List<PublishEntity> selectRaster(); |
| | | |
| | | public PublishEntity selectByLayerId(Integer layerId); |
| | | |
| | | public List<String> selectCodesForDir(String dircode, Integer isDom); |
| | | |
| | | public Integer insert(PublishEntity entity); |
| | | |
| | | /** |
| | | * 插入多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer inserts(List<PublishEntity> list); |
| | | |
| | | /** |
| | | * 插入数据发布-下载表 |
| | | * |
| | | * @param pubid |
| | | * @param downid |
| | | * @param createUser |
| | | * @return |
| | | */ |
| | | public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser); |
| | | |
| | | /** |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Integer insertMetaPub(MetaPubEntity mp); |
| | | |
| | | public Integer delete(int id); |
| | | |
| | | /** |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public Integer deletes(String ids); |
| | | |
| | | /** |
| | | * 更新一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public Integer update(PublishEntity entity); |
| | | |
| | | /** |
| | | * 更新多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer updates(List<PublishEntity> list); |
| | | |
| | | /** |
| | | * 查询元数据记录数 |
| | | * |
| | | * @param depcode 单位编码 |
| | | * @param dircode 目录编码 |
| | | * @param verid 版本ID |
| | | * @param types 类别 |
| | | * @param name 名称 |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectMetasByCount(String depcode, String dircode, Integer verid, String types, String name); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param depcode 单位编码 |
| | | * @param dircode 目录编码 |
| | | * @param verid 版本ID |
| | | * @param types 类别 |
| | | * @param name 名称 |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<MetaEntity> selectMetasByPage(String depcode, String dircode, Integer verid, String types, String name, Integer limit, Integer offset); |
| | | } |