管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 b6b0cb226fcf184525ee7b36af3a09471e9c0057
src/main/java/com/lf/server/mapper/data/PublishMapper.java
@@ -17,20 +17,24 @@
    /**
     * 查询记录数
     *
     * @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);
    /**
     * 查询所有
@@ -48,6 +52,23 @@
    public PublishEntity selectById(int id);
    /**
     * 根据ID字符串查询
     *
     * @param ids ID字符串
     * @return 记录集合
     */
    public List<PublishEntity> selectByIds(String ids);
    /**
     * 根据目录查询DOM和DEM的编码
     *
     * @param dircode 目录
     * @param isDom   1-DOM,0-DEM
     * @return
     */
    public List<String> selectCodesForDir(String dircode, Integer isDom);
    /**
     * 插入一条
     *
     * @param entity
@@ -64,6 +85,16 @@
    public Integer inserts(List<PublishEntity> list);
    /**
     * 插入数据发布-下载表
     *
     * @param pubid
     * @param downid
     * @param createUser
     * @return
     */
    public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser);
    /**
     * 删除一条
     *
     * @param id