package com.ruoyi.quartz.service.impl;

import cn.hutool.core.date.DateUtil;
import com.ruoyi.quartz.service.PublicClewService;
import com.ruoyi.system.service.IClewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class PublicClewServiceImpl implements PublicClewService {

    @Autowired
    private IClewService clewService;

    @Override
    public void updateOvertimeClew() {
        clewService.updateSuitAbleNotAddWx(DateUtil.offsetDay(new Date(), -3));
        clewService.updateSuitAbleNotDeal(DateUtil.offsetDay(new Date(), -12));
    }
}
