| | |
| | | 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; |
| | |
| | | /** |
| | | * 查询记录数 |
| | | * |
| | | * @param name 名称 |
| | | * @param name 名称 |
| | | * @param dircode 目录编码 |
| | | * @param type 类别 |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(String name); |
| | | public Integer selectCount(String name, String dircode, String type); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param name 名称 |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @param name 名称 |
| | | * @param dircode 目录编码 |
| | | * @param type 类别 |
| | | * @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> selectByIds(String ids); |
| | | |
| | | /** |
| | | * 根据发布ID查询元数据 |
| | | * |
| | | * @param pubid 发布ID |
| | | * @return 元数据集合 |
| | | */ |
| | | public List<MetaEntity> selectMetasByPubid(Integer pubid); |
| | | |
| | | /** |
| | | * 根据目录查询DOM和DEM的编码 |
| | | * |
| | | * @param dircode 目录 |
| | | * @param isDom 1-DOM,0-DEM |
| | | * @return |
| | | */ |
| | | public List<String> selectCodesForDir(String dircode, Integer isDom); |
| | | |
| | | /** |
| | | * 插入一条 |
| | |
| | | public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser); |
| | | |
| | | /** |
| | | * 插入元数据发布类 |
| | | * |
| | | * @param mp 元数据发布类 |
| | | * @return 影响行数 |
| | | */ |
| | | public Integer insertMetaPub(MetaPubEntity mp); |
| | | |
| | | /** |
| | | * 删除一条 |
| | | * |
| | | * @param id |