package com.jeeplus.finance.projectReportArchive.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.finance.projectReport.domain.CwProjectReportData;
import com.jeeplus.finance.projectReportArchive.domain.CwProjectReportArchiveApply;
import com.jeeplus.finance.projectReportArchive.service.dto.CwProjectReportArchiveApplyDTO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
//@InterceptorIgnore(tenantLine = "true")
public interface CwProjectReportArchiveApplyMapper extends BaseMapper<CwProjectReportArchiveApply> {

    @InterceptorIgnore(tenantLine = "true")
    CwProjectReportArchiveApplyDTO get(String id);

    @InterceptorIgnore(tenantLine = "true")
    CwProjectReportArchiveApplyDTO queryReportById(String id);

    @InterceptorIgnore(tenantLine = "true")
    CwProjectReportArchiveApplyDTO queryReportByReportId(String id);
    /**
     * 修改归档信息
     * @param cwProjectReportArchive
     */
    @InterceptorIgnore(tenantLine = "true")
    void updateApplyInfoById(CwProjectReportArchiveApply cwProjectReportArchive);


    /**
     * 根据项目id查询项目的非所长级别的项目经理Id（只取其一）
     * @param projectId
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    String getProjectManagerByProjectId(String projectId);

}




