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 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("contractDto") JgMaintenanceContractDto contractDto,
                                                   @Param("currentUserId")String currentUserId);

    Boolean updateBySequenceNbr(@Param("dto") JgMaintenanceContractDto dto);

    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);
}
