package com.yuchen.saas.park.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yuchen.saas.park.api.entity.park.PmgBatDevicePkName;
import com.yuchen.saas.park.service.mapper.PmgBatDevicePkNameMapper;
import com.yuchen.saas.park.service.service.PmgBatDevicePkNameService;
import org.nest.springwrap.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * pk二级分类名称表(PmgBatDevicePkName)表服务实现类
 *
 * @author makejava
 * @since 2021-09-25 16:34:26
 */
//@Service("pmgBatDevicePkNameService")
@Service
public class PmgBatDevicePkNameServiceImpl extends BaseServiceImpl<PmgBatDevicePkNameMapper, PmgBatDevicePkName> implements PmgBatDevicePkNameService {


    @Override
    public PmgBatDevicePkName getByPk(String pk) {
        QueryWrapper<PmgBatDevicePkName> queryWrapper=new QueryWrapper();
        queryWrapper.eq("product_key",pk);
        return baseMapper.selectOne(queryWrapper);
    }


}