package org.jeecg.modules.appInterface.mapper;

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

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.appInterface.entity.FbsWorkingStatistics;
import org.jeecg.modules.fbsWorkshopDispatchList.entity.FbsWorkshopDispatchList;

/**
 * @Description: 工时统计接口
 * @author： jeecg-boot
 * @date：   2020-10-15
 * @version： V1.0
 */
public interface FbsWorkingStatisticsMapper extends BaseMapper<FbsWorkingStatistics> {
    /**
    * @Author chenchuang
    * @Description //TODO 制造看板： 月工时分布情况
    * @Date 2020/10/28 13:08
    * @Param []
    * @return java.util.List<org.jeecg.modules.appInterface.entity.FbsWorkingStatistics>
    */
//   List<FbsWorkingStatistics> getByMaterial(@Param("dateString")String dateString);
    Map<String,Object> getByMaterial(@Param("dateString")String dateString);

    /**
    * @Author chenchuang
    * @Description //TODO 根据订单号和产品编码分组查询工时
    * @Date 2020/11/7 12:51
    * @Param []
    * @return java.util.List<org.jeecg.modules.appInterface.entity.FbsWorkingStatistics>
    */
    List<FbsWorkingStatistics> getWorkingHours();

    /**
    * @Author chenchuang
    * @Description //TODO 根据项目名称分组查询派工单
    * @Date 2020/11/11 11:35
    * @Param []
    * @return java.util.List<org.jeecg.modules.fbsWorkshopDispatchList.entity.FbsWorkshopDispatchList>
    */
    List<FbsWorkshopDispatchList> getWorkingHoursGroupProjectName();

    /**
    * @Author chenchuang
    * @Description //TODO 根据多个id修改Sap报工状态与报工id
    * @Date 2022/2/11 16:32
    * @Param [list, reportId]
    * @return void
    */
    void updateIsCancelAndReportIdByIds(@Param("list")List<String> list,@Param("reportId")String reportId);

    /**
    * @Author chenchuang
    * @Description //TODO 自定义分页查询
    * @Date 2022/4/12 16:20
    * @Param [page, queryWrapper]
    * @return com.baomidou.mybatisplus.core.metadata.IPage<org.jeecg.modules.appInterface.entity.FbsWorkingStatistics>
    */
    IPage<FbsWorkingStatistics> findByPage(IPage<FbsWorkingStatistics> page, @Param("ew") QueryWrapper<FbsWorkingStatistics> queryWrapper);

    /**
    * @Author chenchuang
    * @Description //TODO 效率报表
    * @Date 2022/4/15 13:32
    * @Param [page, queryWrapper]
    * @return com.baomidou.mybatisplus.core.metadata.IPage<org.jeecg.modules.appInterface.entity.FbsWorkingStatistics>
    */
    IPage<FbsWorkingStatistics> getEfficiencyReport(IPage<FbsWorkingStatistics> page, @Param("ew") QueryWrapper<FbsWorkingStatistics> queryWrapper);
}
