# ParseHFExcelByShiJiServiceImpl.java

    package cloud.wconnect.rateshop.service.revenue.report.historyandforecast;

    import cloud.wconnect.commonlib.cons.SystemPlatformEnum;
    import cloud.wconnect.commonlib.pojo.dto.PropertyDTO;
    import cloud.wconnect.rateshop.pojo.bo.revenue.OtbAndTransientGroupBO;
    import cloud.wconnect.rateshop.service.revenue.report.IParseRevenueExcelService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;
    import org.springframework.web.multipart.MultipartFile;

    import java.io.IOException;
    import java.io.InputStream;

    /**
     * @author: yyt
     * 2025-07-05
     */
    @Service
    @DS("rate_shop")
    public class ParseHFExcelByShiJiServiceImpl implements IParseHFExcelService{

        @Autowired
        private IParseRevenueExcelService parseRevenueExcelService;

        @Override
        public boolean supports(String source) {
            return source.equals(SystemPlatformEnum.SHI_JI.getDesc());
        }

        @Override
        public void checkFile(PropertyDTO propertyDTO, MultipartFile file) {
            parseRevenueExcelService.checkHistoryAndForecastForShiJi(propertyDTO, file);
        }

        @Override
        public OtbAndTransientGroupBO handleFile(PropertyDTO propertyDTO, InputStream inputStream, Long startDate, Long endDate) throws IOException {
            return parseRevenueExcelService.parseHistoryAndForecastForShiJi(propertyDTO, inputStream, startDate, endDate);
        }
    }