package com.seer.teach.mp.service.impl;

import cn.hutool.db.PageResult;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seer.teach.mp.entity.MpAccountEntity;
import com.seer.teach.mp.mapper.MpAccountMapper;
import com.seer.teach.mp.service.IMpAccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 公众号账号表 服务实现类
 * </p>
 *
 * @author Wang
 * @since 2025-08-02 15:45:13
 */
@Service
public class MpAccountServiceImpl extends ServiceImpl<MpAccountMapper, MpAccountEntity> implements IMpAccountService {

    @Override
    public MpAccountEntity getOneByAppId(String appId) {
        return super.getOne(new LambdaQueryWrapper<MpAccountEntity>().eq(MpAccountEntity::getAppId, appId));
    }
}