package com.storlead.sales.service.customer;

import com.baomidou.mybatisplus.extension.service.IService;
import com.storlead.sales.pojo.entity.customer.StorleadCalendarEntity;
import com.storlead.framework.mybatis.service.MyBaseService;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 日历表 服务类
 * </p>
 *
 * @author YPZ
 * @since 2025-03-21
 */
public interface StorleadCalendarService extends IService<StorleadCalendarEntity> {

    /***
      * @Description: 获取提前days个工作日的日期
      * @Param:
      * @return:
      * @Author: YPZ
      * @Date: 2025/3/24 10:27
      */
    Date dateOff(Date begainTransactionTimeOld, Integer days, List<StorleadCalendarEntity> calendarList);

    boolean isWorkDay(LocalDate date);
}
