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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.deviceAsset.dto.FastenerManagementDTO;
import org.jeecg.modules.deviceAsset.entity.FastenerManagement;
import org.jeecg.modules.deviceAsset.mapper.FastenerManagementMapper;
import org.jeecg.modules.deviceAsset.service.IFastenerManagementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.deviceAsset.vo.FastenerManagementVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 资产管理-扣件管理 服务实现类
 * </p>
 *
 * @author hkl
 * @since 2023-07-06
 */
@Service
public class FastenerManagementServiceImpl extends ServiceImpl<FastenerManagementMapper, FastenerManagement> implements IFastenerManagementService {

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

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