KKSU
2025-02-08 95383ea001382ec9bb5791581b127befaf090a5d
src/main/java/cc/mrbird/febs/mall/quartz/WxxcxJob.java
@@ -1,8 +1,6 @@
package cc.mrbird.febs.mall.quartz;
import cc.mrbird.febs.common.properties.XcxProperties;
import cc.mrbird.febs.common.utils.RedisUtils;
import cc.mrbird.febs.common.utils.SpringContextHolder;
import cc.mrbird.febs.mall.entity.MallMemberCoupon;
import cc.mrbird.febs.mall.mapper.MallMemberCouponMapper;
import cc.mrbird.febs.mall.service.MallInvoiceService;
@@ -13,9 +11,7 @@
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource;
import java.util.List;
@Slf4j
@@ -23,7 +19,7 @@
@ConditionalOnProperty(prefix = "system", name = "job", havingValue = "true")
public class WxxcxJob {
    private final XcxProperties xcxProperties = SpringContextHolder.getBean(XcxProperties.class);
//    private final XcxProperties xcxProperties = SpringContextHolder.getBean(XcxProperties.class);
    @Autowired
    private RedisUtils redisUtils;
@@ -31,8 +27,8 @@
    private MallMemberCouponMapper mallMemberCouponMapper;
    @Autowired
    private MallInvoiceService mallInvoiceService;
    @Resource
    RestTemplate restTemplate;
//    @Resource
//    RestTemplate restTemplate;
//    @Autowired
//    private SpringContextHolder springContextHolder;
    /**