KDCertificationService.java 1.01 KB
package com.huaheng.pc.config.KDCertification.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.common.utils.Wrappers;
import com.huaheng.pc.config.KDCertification.domain.KDCertification;
import com.huaheng.pc.config.KDCertification.mapper.KDCertificationMapper;
import org.springframework.stereotype.Service;

@Service("kdCertificationService")
public class KDCertificationService extends ServiceImpl<KDCertificationMapper, KDCertification>  {

    public KDCertification getOne(KDCertification kdCertification){
        LambdaQueryWrapper<KDCertification> queryWrapper = Wrappers.lambdaQueryNoWarehouse();
        queryWrapper.last("limit 1");
        return this.getOne(queryWrapper);
    }

}