package org.jeecg.modules.financeManage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.financeManage.entity.FdClinicalIncome;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.projectManagement.entity.FdContract;

/**
 * @Description: 临床收入确认
 * @author： jeecg-boot
 * @date：   2020-06-23
 * @version： V1.0
 */
public interface FdClinicalIncomeMapper extends BaseMapper<FdClinicalIncome> {

    /**
    * @Author chenchuang
    * @Description //TODO 根据临床预算新建的数据查询合同号
    * @Date 2020/6/28 17:38
    * @Param []
    * @return java.util.List<org.jeecg.modules.projectManagement.entity.FdContract>
    */
    List<FdContract> getContractList();

    /**
    * @Author chenchuang
    * @Description //TODO 根据项目档案id查询数据
    * @Date 2020/7/9 12:08
    * @Param [projectFildId]
    * @return org.jeecg.modules.financeManage.entity.FdClinicalIncome
    */
    FdClinicalIncome getByProjectId(@Param("projectFildId")String projectFildId);

    /**
    * @Author chenchuang
    * @Description //TODO 根据项目档案id批量查询数据
    * @Date 2020/7/9 12:07
    * @Param [projectFildIdList]
    * @return java.util.List<org.jeecg.modules.financeManage.entity.FdClinicalIncome>
    */
    List<FdClinicalIncome> getByProjectIdBatch(@Param("list")List<String> projectFildIdList);

    /**
    * @Author chenchuang
    * @Description //TODO 根据合同号 批量修改收入确认相关费用
    * @Date 2020/7/6 13:30
    * @Param [fdClinicalIncomeList]
    * @return void
    */
    void updateFdClincalIncomeBatchByCode(@Param("list")List<FdClinicalIncome> fdClinicalIncomeList);

    /**
    * @Author chenchuang
    * @Description //TODO 导出未结算的主表数据
    * @Date 2020/8/7 14:56
    * @Param []
    * @return java.util.List<org.jeecg.modules.financeManage.entity.FdClinicalIncome>
    */
    List<FdClinicalIncome> exportMain();
}
