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

import net.northking.cctp.dw.db.entity.BugOverallTendencyChart;
import net.northking.cctp.dw.db.entity.BugStatusStatistics;
import net.northking.cctp.dw.db.mapper.BugOverallTendencyChartMapper;
import net.northking.cctp.dw.dto.BugOverallTendencyChartDetailDto;
import net.northking.cctp.dw.dto.BugOverallTendencyChartDto;
import net.northking.cctp.dw.dto.BugOverallTendencyChartQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Mybatis数据库持久层（业务层）：跨系统缺陷趋势图
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2021-12-24 11:21:08  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Repository
public interface BugOverallTendencyChartDao extends BugOverallTendencyChartMapper
{
    List<BugOverallTendencyChartDetailDto> listQuery(BugOverallTendencyChartQueryDto bugOverallTendencyChartQueryDto);

    void insertBatch();

    List<BugOverallTendencyChartDto> getProjectList();

    Integer insertBatchByProjectId(BugOverallTendencyChartDto bugOverallTendencyChartDto);

    Integer deleteByExampleByProjectIds(BugOverallTendencyChart bugOverallTendencyChart);

    List<BugOverallTendencyChartDetailDto> queryUnsolvedBugDataByProjectId(@Param("projectId") String projectId);

    List<BugStatusStatistics> queryAllUnsolvedBugDataSortedByTenantId(@Param("tenantId") String tenantId,@Param("projectIds") List<String> projectIds);
}
