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.LoansSetting;
import com.ruoyi.dk.mapper.LoansSettingMapper;
import com.ruoyi.dk.service.LoansSettingService;
import org.springframework.stereotype.Service;

@Service
public class LoansSettingServiceImpl extends ServiceImpl<LoansSettingMapper, LoansSetting> implements LoansSettingService {
    @Override
    public LoansSetting getLoansSetting(){
        return this.getOne(Wrappers.lambdaQuery(LoansSetting.class).last("limit 1"));
    }
}
