package com.qy.worksheetsystem.model.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * description: ProjectMapper <br>
 * date: 2022/3/12 10:24 <br>
 * author: lhbj <br>
 * version: 1.0 <br>
 */
@Repository
public interface ProjectMapper {

     Map<String,String> getProjectListSingle(@Param("number")String number, @Param("id")String id);
     List<Map<String,String>> getProjectList(@Param("number")String number,
                                             @Param("id")String id,@Param("OrgNumber")String OrgNumber);
     List<Map<String,String>> getProjectListV2(@Param("number")String number,
                                             @Param("id")String id,@Param("OrgNumber")String OrgNumber);
     List<Map<String,Object>> getProjectByPNumber(@Param("number")String number);
     List<Map<String,Object>> getProjectByPNumberV2(@Param("number")String number,@Param("OrgNumber")String OrgNumber);
     List<Map<String,Object>> getProjectByPNumberV3(@Param("number")String number,@Param("OrgNumber")String OrgNumber);

     List<Map<String,Object>> getProjectListToChild(@Param("number")String number,
                                                    @Param("id")String id,@Param("OrgNumber")String OrgNumber);
     List<Map<String,Object>> getProjectListToChildV2(@Param("number")String number,
                                                    @Param("id")String id,@Param("OrgNumber")String OrgNumber);
     String getProjectListToChildV3(@Param("number")String number,
                                                      @Param("id")String id,@Param("OrgNumber")String OrgNumber);

     /**
      * 获取领导下属员工
      * @param number
      * @param id
      * @param OrgNumber
      * @return
      */
     List<String> getProjectListToChildV2ByPid(@Param("number")String number,
                                                      @Param("id")String id,@Param("OrgNumber")String OrgNumber);

}
