/*
 * Copyright (c) 京北方信息技术股份有限公司 Corporation 2021 . All rights reserved.
 *
 */
package net.northking.cctp.dw.db.dao;

import net.northking.cctp.dw.db.entity.DwManualExecJob;
import net.northking.cctp.dw.db.entity.MidManualExecJob;
import net.northking.cctp.dw.db.entity.MidProjectInfo;
import net.northking.cctp.dw.db.entity.MtTestChart;
import net.northking.cctp.dw.db.mapper.MidManualExecJobMapper;
import net.northking.cctp.dw.dto.MidManualExecJobDetailDto;
import net.northking.cctp.dw.dto.ProjectDataVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Mybatis数据库持久层（业务层）：执行数据中间表
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2021-12-15 10:09:06  <br>
 *
 * @author: maven-cctp-plugin  <br>
 * @since: 1.0 <br>
 */
@Repository
public interface MidManualExecJobDao extends MidManualExecJobMapper {

    List<MidManualExecJobDetailDto> execJobPie(@Param("projectId") String projectId);

    List<MtTestChart> createExecJobProgress(@Param("tenantId") String tenantId);

    Integer countExecJobData(@Param("midProjectInfos") List<MidProjectInfo> midProjectInfos,@Param("tenantId") String tenantId);

    List<MidManualExecJob> findByTenantId(@Param("midProjectInfos") List<MidProjectInfo> midProjectInfos);

    List<DwManualExecJob> findProIdList();

    void deleteByData(@Param("midProjectInfos") List<MidProjectInfo> midProjectInfos);

    ProjectDataVo getCaseBugFindRateByTenantId(@Param("tenantId") String tenantId,@Param("projectIds") List<String> projectIds);

    ProjectDataVo getCaseBugFindRateByProjectId(@Param("projectId") String projectId);
}
