package com.njyunzhi.pet_identity.mapper;

import com.njyunzhi.pet_identity.entity.TaPetIdentity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 宠物证件 Mapper 接口
 * </p>
 *
 * @author yansen
 * @since 2022-05-25
 */
@Mapper
public interface TaPetIdentityMapper extends BaseMapper<TaPetIdentity> {

    @Select("SELECT COUNT(*) FROM ta_pet_identity WHERE status > -1")
    int countNotDelete();
}
