package com.ruoyi.docking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.docking.entity.ProjectProgress;
import com.ruoyi.gysl.entity.request.ZwIdPageReq;
import com.ruoyi.gysl.entity.response.YdxxtjResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目月度进度（对接数据）(ProjectProgress)表数据库访问层
 *
 * @author makejava
 * @since 2025-03-25 14:49:04
 */
public interface ProjectProgressMapper extends BaseMapper<ProjectProgress> {


    /**
     * 分页查询所有数据
     *
     * @param name 查询
     * @return 所有数据
     */
    @DataSource(value = DataSourceType.SLAVE)
    List<ProjectProgress> page( @Param("name") String name);

    /**
     * 根据项目id查询对应的新增数据
     */
    List<ProjectProgress> getXmId(@Param("id")Long id);


}

