package org.jeecg.modules.deviceAsset.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.deviceAsset.dto.SleeperManagementDTO;
import org.jeecg.modules.deviceAsset.entity.SleeperManagement;
import org.jeecg.modules.deviceAsset.mapper.SleeperManagementMapper;
import org.jeecg.modules.deviceAsset.service.ISleeperManagementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.deviceAsset.vo.SleeperManagementVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 资产管理-轨枕管理 服务实现类
 * </p>
 *
 * @author hkl
 * @since 2023-07-06
 */
@Service
public class SleeperManagementServiceImpl extends ServiceImpl<SleeperManagementMapper, SleeperManagement> implements ISleeperManagementService {

    @Override
    public Page<SleeperManagementVO> queryPageList(Page<SleeperManagementVO> pageData, SleeperManagementDTO dto) {
        return this.baseMapper.queryPageList(pageData, dto);
    }

    @Override
    public Long checkSleeperCodeRepeat(String id, String lightRailId, String sleeperCode) {
        return this.baseMapper.checkSleeperCodeRepeat(id,lightRailId,sleeperCode);
    }
}
