package com.yuchen.saas.park.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.dto.park.TemperaturePreventionDTO;
import com.yuchen.saas.park.api.dto.prevention.TemperaturePageQueryDTO;
import com.yuchen.saas.park.api.entity.park.TemperaturePrevention;
import com.yuchen.saas.park.api.vo.park.prevention.TemperaturePreventionVO;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.mp.support.Query;

import java.util.List;

/**
 * @author 颜艺波
 * @date 2022/6/16 16:18
 * @Description
 */
public interface TemperaturePreventionService extends BaseService<TemperaturePrevention> {

    /**
     * 测温信息上报
     * @param temperaturePreventionDTO
     * @return
     */
    boolean add(TemperaturePreventionDTO temperaturePreventionDTO);

    /**
     * 测温防疫数据查询
     * @param parkId
     * @return
     */
    List<TemperaturePreventionVO> latestDataQuery(Long parkId);

    /**
     * 最新测温防疫数据分页查询
     * @param tempPageQueryDTO
     * @param query
     * @return
     */
    IPage<TemperaturePreventionVO> pageQuery(TemperaturePageQueryDTO tempPageQueryDTO, Query query);
}
