# DrawerCountAmountConfigServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.drawercount.DrawerCountAmountConfig;
    import cloud.wconnect.frontoffice.mapper.drawercount.DrawerCountAmountConfigMapper;
    import cloud.wconnect.frontoffice.service.drawercount.IDrawerCountAmountConfigService;
    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功能的init amount配置表 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2023-04-06
     */
    @Service
    @DS("ratelog_manage")
    public class DrawerCountAmountConfigServiceImpl extends ServiceImpl<DrawerCountAmountConfigMapper, DrawerCountAmountConfig> implements IDrawerCountAmountConfigService {

        /**
         * 查询抽屉初始金额
         *
         * @param propertyId 资产 id
         * @return DrawerCountAmountConfig
         * @author zc
         * @date 2023/8/25
         */
        @Override
        public DrawerCountAmountConfig get(int propertyId) {
            return getOne(new QueryWrapper<DrawerCountAmountConfig>().lambda()
                    .eq(DrawerCountAmountConfig::getPropertyId, propertyId));
        }
    }