package com.chinaweal.aiccs.aiccs.system.service.impl;

import com.chinaweal.aiccs.aiccs.system.entity.HolidayInfo;
import com.chinaweal.aiccs.aiccs.system.mapper.HolidayInfoMapper;
import com.chinaweal.aiccs.aiccs.system.service.IHolidayInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.chinaweal.youfool.framework.springboot.base.query.BaseQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

/**
 * <p>
 * 节假日信息 服务实现类
 * </p>
 *
 * @author chinaweal
 * @since 2024-07-23
 */
@Service
public class HolidayInfoServiceImpl extends BaseServiceImpl<HolidayInfoMapper, HolidayInfo> implements IHolidayInfoService {

    @Override
    public HolidayInfo saveHolidayInfo(HolidayInfo holidayInfo) {
        save(holidayInfo);
        return holidayInfo;
    }

    @Override
    public void updateHolidayInfo(HolidayInfo holidayInfo) {
        updateById(holidayInfo);
    }
}
