package com.ruoyi.system.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.system.domain.ThAccessAddress; import com.ruoyi.system.mapper.ThAccessAddressMapper; import com.ruoyi.system.service.ThAccessAddressService; import org.springframework.stereotype.Service; @Service("thAccessAddressService") public class ThAccessAddressServiceImpl extends ServiceImpl implements ThAccessAddressService { public ThAccessAddress getByInstitutionIdAndType(Long institutionId, Byte type) { return baseMapper.selectOne(new LambdaQueryWrapper().eq(ThAccessAddress::getInstitutionId, institutionId) .eq(ThAccessAddress::getType, type)); } }