package org.springblade.modules.quartz.task;

import org.springblade.common.enums.CouponStateEnum;
import org.springblade.modules.mall.entity.CouponUser;
import org.springblade.modules.mall.service.ICouponUserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author pangqijun
 * Date 2023/7/10
 * Description
 */

@Component("couponTask")
public class CouponTask {

    @Resource
    private ICouponUserService couponUserService;

    public void task() {
        List<CouponUser> list = couponUserService.lambdaQuery().eq(CouponUser::getState, CouponStateEnum.UNUSED.getValue()).list();

    }

}
