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

import net.northking.cctp.dw.db.entity.MtCaseDesignChart;
import net.northking.cctp.dw.db.mapper.MtCaseDesignChartMapper;
import net.northking.cctp.dw.dto.ChartDataGeneQueryDto;
import net.northking.cctp.dw.dto.DwCaseDesignInfoUpdateDto;
import net.northking.cctp.dw.dto.MtCaseDesignChartAddDto;
import net.northking.cctp.dw.dto.MtCaseDesignChartDetailDto;
import net.northking.cctp.platform.db.entity.CltDictItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

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 MtCaseDesignChartDao extends MtCaseDesignChartMapper {

    List<MtCaseDesignChartDetailDto> listQuery(ChartDataGeneQueryDto chartDataGeneQueryDto);

    List<String> getTenantIdList();

    List<MtCaseDesignChartAddDto> syncDesignNotice(@Param("dictItems") List<CltDictItem> dictItems, @Param("tenantId") String tenantId);

    List<MtCaseDesignChartAddDto> syncDesignNoticeByProjectId(@Param("dictItems") List<CltDictItem> dictItems, @Param("projectId") String projectId);

    Integer deleteByExampleByProjectIds(MtCaseDesignChart mtCaseDesignChart);

    Integer syncDesignNoticeByProjectIds(DwCaseDesignInfoUpdateDto dwCaseDesignInfoUpdateDto);
}
