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);
|
|
}
|