package com.mortals.xhx.module.ph.service;

import cn.hutool.core.date.DateTime;
import com.mortals.framework.common.Rest;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.common.pdu.site.SitePdu;
import com.mortals.xhx.module.ph.model.PhQueueStatEntity;
import com.mortals.xhx.module.ph.dao.PhQueueStatDao;
import com.mortals.xhx.module.ph.model.PhQueueStatQuery;
import com.mortals.xhx.module.pj.model.PjEvaluateStatEntity;
import org.springframework.util.StopWatch;

import java.util.List;

/**
 * PhQueueStatService
 * <p>
 * 排队叫号汇总统计 service接口
 *
 * @author zxfei
 * @date 2024-06-24
 */
public interface PhQueueStatService extends ICRUDService<PhQueueStatEntity, Long> {

    PhQueueStatDao getDao();

    Rest<List<PhQueueStatEntity>> updateSitePhStat(PhQueueStatEntity entity, Context context);


    List<PhQueueStatEntity> getBillInfos(PhQueueStatQuery query, PageInfo pageInfo, Context context);

    void saveUpdatePhStatList(SitePdu site,List<PhQueueStatEntity> saveAndUpdatelist);


    void updateSitePhStatLog(DateTime attendStart, Long compare, StopWatch stopWatch, SitePdu site, Context context);

}