zhangf
2024-09-11 1a316551c8e46b793904090cfa84781bf77fef2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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<ThAccessAddressMapper, ThAccessAddress> implements ThAccessAddressService {
 
    public ThAccessAddress getByInstitutionIdAndType(Long institutionId, Byte type) {
        return baseMapper.selectOne(new LambdaQueryWrapper<ThAccessAddress>().eq(ThAccessAddress::getInstitutionId, institutionId)
                .eq(ThAccessAddress::getType, type));
    }
}