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

import net.northking.cctp.dw.db.entity.MidCaseDesign;
import net.northking.cctp.dw.db.entity.MidProjectInfo;
import net.northking.cctp.dw.db.entity.MtTestChart;
import net.northking.cctp.dw.db.mapper.MidCaseDesignMapper;
import net.northking.cctp.dw.dto.MidCaseDesignDetailDto;
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 09:48:17  <br>
 *
 * @author: maven-cctp-plugin  <br>
 * @since: 1.0 <br>
 */
@Repository
public interface MidCaseDesignDao extends MidCaseDesignMapper {

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

    List<MidCaseDesignDetailDto> caseDesignPie(@Param("projectId") String projectId);

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

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

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

    List<ProjectDataVo> getTestPointAmountAndCaseDesignAmountByProjectId(@Param("testPointIds") List<String> testPointIds,@Param("projectId") String projectId);

    ProjectDataVo getTestPointDesignRateByProjectId(@Param("projectId") String projectId,@Param("amount") Integer amount );

    ProjectDataVo getCaseDesignRateByProjectId(@Param("projectId") String projectId,@Param("amount") Integer amount);
}
