# DrawerCountNumberConfigServiceImpl.java

    package cloud.wconnect.frontoffice.service.drawercount.impl;

    import cloud.wconnect.frontoffice.entity.drawercount.DrawerCountNumberConfig;
    import cloud.wconnect.frontoffice.mapper.drawercount.DrawerCountNumberConfigMapper;
    import cloud.wconnect.frontoffice.service.drawercount.IDrawerCountNumberConfigService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    /**
     * <p>
     * Drawer Count功能的抽屉数量配置表 服务实现类
     * </p>
     *
     * @author zc
     * @since 2023-08-24
     */
    @Service
    @DS("ratelog_manage")
    public class DrawerCountNumberConfigServiceImpl extends ServiceImpl<DrawerCountNumberConfigMapper, DrawerCountNumberConfig> implements IDrawerCountNumberConfigService {

        /**
         * 查询抽屉数量配置
         *
         * @param propertyId 资产 id
         * @return DrawerCountNumberConfig
         * @author zc
         * @date 2023/8/24
         */
        @Override
        public DrawerCountNumberConfig get(int propertyId) {
            return getOne(new QueryWrapper<DrawerCountNumberConfig>().lambda()
                    .eq(DrawerCountNumberConfig::getPropertyId, propertyId));
        }
    }