管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-21 60a470582d8ddf5d45441d6f73bdac235ecfc40f
src/main/java/com/lf/server/mapper/sys/ReportMapper.java
@@ -1,5 +1,6 @@
package com.lf.server.mapper.sys;
import com.lf.server.entity.ctrl.CountEntity;
import com.lf.server.entity.sys.ReportEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -17,19 +18,21 @@
     * 查询记录数
     *
     * @param name 名称
     * @param code 编码
     * @return 记录数
     */
    public Integer selectCount(String name);
    public Integer selectCount(String name, String code);
    /**
     * 分页查询
     *
     * @param name   名称
     * @param code   编码
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<ReportEntity> selectByPage(String name, Integer limit, Integer offset);
    public List<ReportEntity> selectByPage(String name, String code, Integer limit, Integer offset);
    /**
     * 查询所有
@@ -93,4 +96,25 @@
     * @return
     */
    public Integer updates(List<ReportEntity> list);
    /**
     * 数据量统计
     *
     * @return
     */
    public List<CountEntity> countSizes();
    /**
     * 服务调用量统计
     *
     * @return
     */
    public List<CountEntity> countServices();
    /**
     * 用户流量统计
     *
     * @return
     */
    public List<CountEntity> countOperates();
}