# CbCaseNotChangeDayServiceImpl.java

    package cloud.wconnect.finance.service.chargeback.impl;

    import cloud.wconnect.finance.entity.chargeback.CbCaseNotChangeDay;
    import cloud.wconnect.finance.mapper.chargeback.CbCaseNotChangeDayMapper;
    import cloud.wconnect.finance.service.chargeback.ICbCaseNotChangeDayService;
    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>
     * 状态未变更天数设置，用于列表检索超过几天后未变更的 case 数据 服务实现类
     * </p>
     *
     * @author yyt
     * @since 2023-11-22
     */
    @Service
    @DS("finance")
    public class CbCaseNotChangeDayServiceImpl extends ServiceImpl<CbCaseNotChangeDayMapper, CbCaseNotChangeDay> implements ICbCaseNotChangeDayService {

        /**
         * 获取状态未变更天数
         *
         * @param propertyId 资产 id
         * @return 状态未变更天数
         * @author yyt
         * @date 2023/11/22
         */
        @Override
        public CbCaseNotChangeDay getNotChangeDay(Integer propertyId) {
            return getOne(new QueryWrapper<CbCaseNotChangeDay>().lambda().eq(CbCaseNotChangeDay::getPropertyId, propertyId));
        }

        /**
         * 保存状态未变更天数
         *
         * @param notChangeDay 状态未变更天数
         * @author yyt
         * @date 2023/11/22
         */
        @Override
        public void saveOrUpdateRewrite(CbCaseNotChangeDay notChangeDay) {
            baseMapper.saveOrUpdateRewrite(notChangeDay);
        }

    }