package com.yeejoin.amos.boot.module.jg.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jg.api.dto.JgMaintenanceContractDto;
import com.yeejoin.amos.boot.module.jg.api.entity.JgMaintenanceContract;
import com.yeejoin.amos.boot.module.jg.api.vo.SortVo;
import org.apache.ibatis.annotations.Param;

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

/**
 * Mapper 接口
 *
 * @author system_generator
 * @date 2023-12-12
 */
public interface JgMaintenanceContractMapper extends BaseMapper<JgMaintenanceContract> {

    Page<JgMaintenanceContractDto> getContractList(@Param("page") Page<JgMaintenanceContract> page,
                                                   @Param("sort") SortVo sortMap,
                                                   @Param("contractDto") JgMaintenanceContractDto contractDto,
                                                   @Param("currentUserId") String currentUserId);

    JgMaintenanceContractDto queryBySequenceNbr(@Param("sequenceNbr") Long sequenceNbr);

    Boolean deleteForBatch(@Param("ids") List<Long> ids);

    void updatePromoter(@Param("id") Long id);

    List<Map<String, Object>> selectEquipList(@Param("id") Long id);
}
