package com.mindskip.xzs.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.mindskip.xzs.domain.ExamTemplatesConfig; import com.mindskip.xzs.repository.ExamTemplatesConfigMapper; import com.mindskip.xzs.service.ExamTemplatesConfigService; import org.springframework.stereotype.Service; /** * @author gonghl */ @Service public class ExamTemplatesConfigServiceImpl extends ServiceImpl implements ExamTemplatesConfigService { @Override public ExamTemplatesConfig getConfig() { return baseMapper.selectOne(new QueryWrapper().last("limit 1")); } }