package org.jeecg.modules.dry.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import org.jeecg.modules.dry.entity.DryEqpType;
|
import org.jeecg.modules.dry.mapper.DryEqpTypeMapper;
|
import org.jeecg.modules.dry.service.IDryEqpTypeService;
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
/**
|
* @Description: 设备类型
|
* @Author: jeecg-boot
|
* @Date: 2023-03-08
|
* @Version: V1.0
|
*/
|
@Service
|
public class DryEqpTypeServiceImpl extends ServiceImpl<DryEqpTypeMapper, DryEqpType> implements IDryEqpTypeService {
|
|
@Override
|
public DryEqpType selectByTenantIdTypeId(String tenantId, String id) {
|
LambdaQueryWrapper<DryEqpType> query = new LambdaQueryWrapper<>();
|
query.eq(DryEqpType::getTenantId, tenantId);
|
query.eq(DryEqpType::getId, id);
|
return this.getOne(query);
|
}
|
}
|