package com.willalp.yiqing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.willalp.yiqing.domain.HsPositiveContiguityUser;
import com.willalp.yiqing.domain.vo.HomeDataVo;
import com.willalp.yiqing.domain.vo.OrdersVo;
import com.willalp.yiqing.domain.vo.PcuVo;
import com.willalp.yiqing.domain.vo.RegisterVo;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

/**
 * 阳性及密接人员Service接口
 *
 * @author willalp
 * @date 2022-05-15
 */
public interface IHsPositiveContiguityUserService extends IService<HsPositiveContiguityUser> {

    /**
     * 查询阳性及密接人员列表
     *
     * @param pcuVo@return 阳性及密接人员集合
     */
    public List<HsPositiveContiguityUser> selectHsPositiveContiguityUserList(PcuVo pcuVo);

    /**
     * @param list
     * @return
     */
    String importData(List<HsPositiveContiguityUser> list);

    /**
     * 核酸人员导出
     *
     * @param ordersVo
     * @return
     */
    List<RegisterVo> ordersImport(OrdersVo ordersVo);

    @Async("threadPoolTaskExecutor")
    void asyncUpdate(List<HsPositiveContiguityUser> updatePcuList);

    HomeDataVo homeData(PcuVo pcuVo);
}
