教育训练处考试制证系统后端
“djh”
2025-02-14 9a041565e4e730a4d0e4c3a5797228d83fad7c63
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));
    }
}