package com.qmth.sop.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qmth.sop.business.entity.TBSopInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * </p>
 *
 * @author dhshu
 *
 */
public interface SopScheduleMapper extends BaseMapper<TBSopInfo> {


    List<Map<String, Object>> progress(@Param("serviceId") Long serviceId);

    <T> IPage<Map<String,Object>> detail(Page<T> tPage, @Param("serviceId")Long serviceId, @Param("regionId") Long regionId, @Param("supplierId") Long supplierId);


    List<Map<String, Object>> actualProgress(@Param("serviceId") Long serviceId);
}
