TStaningBookMapper.java 2.14 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2
package com.zehong.system.mapper;

耿迪迪's avatar
耿迪迪 committed
3
import java.util.Date;
耿迪迪's avatar
耿迪迪 committed
4
import java.util.List;
lizhichao's avatar
lizhichao committed
5 6
import java.util.Map;

耿迪迪's avatar
耿迪迪 committed
7
import com.zehong.system.domain.TStaningBook;
耿迪迪's avatar
耿迪迪 committed
8 9
import com.zehong.system.domain.vo.HiddenStatVO;
import org.apache.ibatis.annotations.Param;
耿迪迪's avatar
耿迪迪 committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65

/**
 * 隐患台账Mapper接口
 * 
 * @author zehong
 * @date 2022-07-09
 */
public interface TStaningBookMapper 
{
    /**
     * 查询隐患台账
     * 
     * @param bookId 隐患台账ID
     * @return 隐患台账
     */
    public TStaningBook selectTStaningBookById(Long bookId);

    /**
     * 查询隐患台账列表
     * 
     * @param tStaningBook 隐患台账
     * @return 隐患台账集合
     */
    public List<TStaningBook> selectTStaningBookList(TStaningBook tStaningBook);

    /**
     * 新增隐患台账
     * 
     * @param tStaningBook 隐患台账
     * @return 结果
     */
    public int insertTStaningBook(TStaningBook tStaningBook);

    /**
     * 修改隐患台账
     * 
     * @param tStaningBook 隐患台账
     * @return 结果
     */
    public int updateTStaningBook(TStaningBook tStaningBook);

    /**
     * 删除隐患台账
     * 
     * @param bookId 隐患台账ID
     * @return 结果
     */
    public int deleteTStaningBookById(Long bookId);

    /**
     * 批量删除隐患台账
     * 
     * @param bookIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTStaningBookByIds(Long[] bookIds);
lizhichao's avatar
lizhichao committed
66 67

    public Map statics(String type);
耿迪迪's avatar
耿迪迪 committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

    /**
     * 隐患统计柱状图
     * @param troubleLevel 隐患等级
     * @param beginTime 开始时间
     * @param endTime 结束时间
     * @return List<HiddenStatVO>
     */
    List<HiddenStatVO> hiddenBarStat(@Param(value = "troubleLevel")Integer troubleLevel, @Param(value = "beginTime")Date beginTime, @Param(value = "endTime")Date endTime);

    /**
     * 隐患统计环状图
     * @param troubleLevel 隐患等级
     * @param beginTime 开始时间
     * @param endTime 结束时间
     * @return
     */
    Map<String,Integer> hiddenPieStat(@Param(value = "troubleLevel")Integer troubleLevel, @Param(value = "beginTime")Date beginTime, @Param(value = "endTime")Date endTime);
耿迪迪's avatar
耿迪迪 committed
86
}