package com.ruoyi.dk.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.dk.domain.AgreementSetting;
import com.ruoyi.dk.mapper.AgreementSettingMapper;
import com.ruoyi.dk.service.AgreementSettingService;
import org.springframework.stereotype.Service;

@Service
public class AgreementSettingServiceImpl extends ServiceImpl<AgreementSettingMapper, AgreementSetting> implements AgreementSettingService {

    @Override
    public AgreementSetting getAgreementSetting(){
        return this.getOne(Wrappers.lambdaQuery(AgreementSetting.class).last("limit 1"));
    }

}
