package com.pqs9300.mapper.technical;

import com.pqs9300.pojo.technical.TechnicalInfo;
import com.pqs9300.pojo.transaction.Supervise;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface TechnicalInfoMapper extends Mapper<TechnicalInfo> {
    //List<TechnicalInfo> getTechnicalInfo(@Param(value = "startTime") Date startTime, @Param(value = "endTime")Date endTime,@Param(value = "progress")List<Integer> progress,@Param(value = "supType")List<Integer> supType);
    int getStartSwitch(@Param(value = "list") List<String> list);

    List<TechnicalInfo> getTransactionDataByDepts(@Param("deptsIndexs")List<String> deptsIndexs, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("type")Integer type, @Param("progress")Integer progress);

    List<TechnicalInfo> getTransactionDataByUserIndex(@Param("userIndex")String userIndex, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("type")Integer type, @Param("progress")Integer progress);
}
