mitao
2024-05-25 dc194f523a082b7830445a3dcdff1bec9a09eea9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.ruoyi.system.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Agreement;
import com.ruoyi.system.mapper.AgreementMapper;
import com.ruoyi.system.service.IAgreementService;
import org.springframework.stereotype.Service;
 
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mitao
 * @since 2024-05-21
 */
@Service
public class AgreementServiceImpl extends ServiceImpl<AgreementMapper, Agreement> implements IAgreementService {
 
    @Override
    public Agreement getAgreement(Integer agreementType) {
        LambdaQueryWrapper<Agreement> wrapper= Wrappers.lambdaQuery();
        wrapper.eq(Agreement::getAgreementType,agreementType);
        wrapper.eq(Agreement::getDelFlag,0);
        return this.getOne(wrapper);
    }
}