/**
 * @filename:SuperviseCertificateCodeServiceImpl 2024-09-21
 * @project KJT v1.0.0 Copyright(c) 2024 wanglang Co. Ltd. All right reserved.
 */
package com.trade.service.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.trade.service.system.domain.SuperviseCertificateCode;
import com.trade.service.system.mapper.SuperviseCertificateCodeMapper;
import com.trade.service.system.service.SuperviseCertificateCodeService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description:小图监管证件码值服务实现
 * @version: v1.0.0
 * @author: wanglang
 */
@Service
public class SuperviseCertificateCodeServiceImpl extends ServiceImpl<SuperviseCertificateCodeMapper, SuperviseCertificateCode> implements SuperviseCertificateCodeService {

    @Override
    public Long countByCode(String code) {
        return this.baseMapper.selectCount(new QueryWrapper<SuperviseCertificateCode>().eq("code", code));
    }
}
