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

import net.northking.cctp.dw.db.entity.BugStatusStatistics;
import net.northking.cctp.dw.db.entity.SynBugInfo;
import net.northking.cctp.dw.db.mapper.BugStatusStatisticsMapper;
import net.northking.cctp.dw.dto.BugStatusStatisticsDetailDto;
import net.northking.cctp.dw.dto.ChartDataGeneQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import net.northking.cctp.platform.db.entity.CltDictItem;

import java.util.List;

/**
 * Mybatis数据库持久层（业务层）：缺陷状态统计
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2021-12-15 14:58:27  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Repository
public interface BugStatusStatisticsDao extends BugStatusStatisticsMapper
{
    List<BugStatusStatisticsDetailDto> listQuery(ChartDataGeneQueryDto chartDataGeneQueryDto);

    void insertBatch(@Param("dictItems") List<CltDictItem> cltDictItems, @Param("dataList") List<SynBugInfo> dataList,@Param("tenantId") String tenantId);

    void insertBatchWeekData(@Param("dictItems") List<CltDictItem> cltDictItems,@Param("dataList") List<SynBugInfo> dataList,@Param("tenantId") String tenantId);

    void deleteData(@Param("dataList") List<SynBugInfo> dataList, @Param("tenantId") String tenantId );

    List<BugStatusStatistics> queryUnresolvedBugModuleData(@Param("projectId") String projectId,@Param("endStatuss") List<String> endStatuss);

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

    // ----      The End by Generator     ----//

}
