package com.jeeplus.finance.projectRecords.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.finance.projectRecords.domain.CwManHourManagement;
import com.jeeplus.finance.projectRecords.service.dto.CwManHourManagementDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 财务项目登记mapper
 * @author: 徐滕
 * @version: 2022-11-10 14:56
 */
@Mapper
//@InterceptorIgnore(tenantLine = "true")
public interface CwManHourManagementMapper extends BaseMapper<CwManHourManagement> {
    /**
     * 查询项目数据集合
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<CwManHourManagementDTO> findList(Page<CwManHourManagementDTO> page, @Param(Constants.WRAPPER) QueryWrapper<CwManHourManagement> queryWrapper);

    /**
     * 根据id查询项目详情
     * @param id
     * @return
     */
    CwManHourManagementDTO queryById(@Param("id") String id);

    /**
     * 逻辑删除数据信息
     * @param id
     */
    void delete(@Param("id") String id);

    /**
     * 更改状态
     * @param id
     */
    void updateStatus(@Param("id") String id);
}
