package com.usky.fire.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.usky.fire.domain.PatrolInspectionPlanSiteSon;
import com.usky.fire.domain.PatrolInspectionSiteStore;
import com.usky.fire.mapper.PatrolInspectionSiteStoreMapper;
import com.usky.fire.service.PatrolInspectionSiteStoreService;
import com.usky.common.mybatis.core.AbstractCrudService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author han
 * @since 2025-10-21
 */
@Service
public class PatrolInspectionSiteStoreServiceImpl extends AbstractCrudService<PatrolInspectionSiteStoreMapper, PatrolInspectionSiteStore> implements PatrolInspectionSiteStoreService {
    @Override
    public int siteStoreCount(String siteNubmber) {
        LambdaQueryWrapper<PatrolInspectionSiteStore> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(PatrolInspectionSiteStore::getSiteNubmber, siteNubmber);
        int siteCount = this.count(queryWrapper);
        return siteCount;
    }
}
