危化品全生命周期管理后端
“djh”
2025-05-07 da2c594ade5d69621dd11a13bb758477e2dc079e
1
2
3
4
5
6
7
8
9
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
package com.gkhy.hazmat.system.mapper;
 
import com.gkhy.hazmat.system.domain.HzWarning;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gkhy.hazmat.system.domain.vo.HzEntryRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 预警表 Mapper 接口
 * </p>
 *
 * @author kzy
 * @since 2024-08-05 14:41:40
 */
@Mapper
public interface HzWarningMapper extends BaseMapper<HzWarning> {
    /**
     * 分页获取超期预警列表
     * @param warning
     * @return
     */
    List<HzWarning> selectWarningList(HzWarning warning);
 
    List<Long> selectExistHazmatId(List<Long> hazmatIds);
 
    /**
     * 批量更新状态
     * @param existHazmatIds
     */
    void batchUpdateState(List<Long> existHazmatIds);
 
    /**
     * 获取预警数量
     * @param companyId
     * @return
     */
    Integer selectWarningCount(Long companyId);
 
 
    List<HzEntryRecordVO> dailyWarningStatic(@Param("startDate") String startDate, @Param("endDate") String endDate);
 
}