package org.jeecg.modules.projectManagement.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.projectManagement.entity.FdClinicalProjectMilestones;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.projectManagement.entity.FdContract;
import org.jeecg.modules.projectManagement.entity.FdProjectFile;
import org.jeecg.modules.projectManagement.entity.FdProjectQuotation;

/**
 * @Description: 临床项目里程碑
 * @author： jeecg-boot
 * @date：   2019-06-03
 * @version： V1.0
 */
public interface FdClinicalProjectMilestonesMapper extends BaseMapper<FdClinicalProjectMilestones> {

    IPage<FdClinicalProjectMilestones> findByPage(Page<FdClinicalProjectMilestones> page, @Param("ew") QueryWrapper<FdClinicalProjectMilestones>queryWrapper);


    List<FdClinicalProjectMilestones> getByMilestonesId(String id);

    FdClinicalProjectMilestones getClinicalByConId(String projectFileId);

    int auditBatch(@Param("list") List<String> list);

    int reviewBatch(@Param("list") List<String> list);

    List<FdContract> getFileContractList();

    FdProjectFile getProjectQuotationByContractId(String contractId);

    /**
    * @Author chenchuang
    * @Description //TODO 导出主表数据
    * @Date 2020/8/4 17:29
    * @Param [fdClinicalProjectMilestones]
    * @return java.util.List<org.jeecg.modules.projectManagement.entity.FdClinicalProjectMilestones>
    */
    List<FdClinicalProjectMilestones> getMainExport(@Param("fdClinicalProjectMilestones")FdClinicalProjectMilestones fdClinicalProjectMilestones);
}
