package com.kym.service.admin.impl;


import com.github.yulichang.base.MPJBaseServiceImpl;
import com.kym.entity.admin.EquipmentRelation;
import com.kym.mapper.admin.EquipmentRelationMapper;
import com.kym.service.admin.EquipmentRelationService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author skyline
 * @since 2023-08-07
 */
@Service
public class EquipmentRelationServiceImpl extends MPJBaseServiceImpl<EquipmentRelationMapper, EquipmentRelation> implements EquipmentRelationService {

    @Override
    public EquipmentRelation getByShortId(String shortId) {
        return lambdaQuery().eq(EquipmentRelation::getShortId, shortId).one();
    }

    @Override
    public EquipmentRelation getByEquipmentId(String equipmentId) {
        return lambdaQuery().eq(EquipmentRelation::getEquipmentId, equipmentId).one();
    }
}
