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