package com.zcloud.domain.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.framework.datascope.annotation.DataScope;
import com.jjb.saas.framework.datascope.annotation.DataScopes;
import com.zcloud.domain.persistence.dataobject.ProjectTaskDO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2026-01-29 11:28:41
 */
@Mapper
@DataScopes({
        @DataScope(method = "listPage", menuPerms = ""),
})
public interface ProjectTaskMapper extends BaseMapper<ProjectTaskDO> {

    IPage<ProjectTaskDO> listPage(IPage<ProjectTaskDO> iPage, Map<String, Object> params, String menuPerms);

    ProjectTaskDO getInfoById(Long id);

    void updateScoreStatus(String projectTaskId, Integer code, BigDecimal averageScore);

    void updateExecuteStatusBatchById(Integer code, List<Long> idList);
}

