Mybatis-plus里面的getOne用法

QueryWrapper qw = new QueryWrapper();
        qw.eq("resident_id",residentId);
        SysResidentReplenish sysResidentReplenish = sysResidentReplenishService.getOne(qw);
        if (sysResidentReplenish != null){
            return AjaxResult.error("该居民已建档");
        }

嗷嗷........

你可能感兴趣的:(mybatis,java,前端)