package com.ylx.fareSetting.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylx.fareSetting.domian.MaProjectFareSetting;
import com.ylx.fareSetting.domian.dto.FareCalculateDTO;
import com.ylx.fareSetting.domian.vo.FareCalculateResultVO;
import com.ylx.massage.domain.dto.DriverFeeDTO;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public interface IMaProjectFareSettingService extends IService<MaProjectFareSetting> {
    FareCalculateResultVO calculateFare(FareCalculateDTO dto);

    /**
     * 保存免车费设置信息
     *
     * @param
     * @param dto
     * @return
     */
    void saveOrUpdateFee(DriverFeeDTO dto);

    boolean isDayTimePeriod(LocalDateTime localDateTime);

    BigDecimal getMerchantFreeKm(Long merchantId, Long projectId, boolean isDay);

}
