fix 标协会员到期提醒定时任务

This commit is contained in:
lijiarao
2024-03-28 15:29:05 +08:00
parent 9961405648
commit c8845ffa1c
@@ -50,7 +50,7 @@ public class MemberProjectJob implements Job{
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
DateTime offset = DateUtil.date().offset(DateField.MONTH, 3); DateTime offset = DateUtil.date().offset(DateField.MONTH, 3);
int year = offset.year(); int year = offset.year();
int month = offset.month(); int month = offset.month()+1;
QueryWrapper<TbMemberProjectSubitem> wrapper = new QueryWrapper<>(); QueryWrapper<TbMemberProjectSubitem> wrapper = new QueryWrapper<>();
wrapper.eq("MONTH(invalidation_date)",month) wrapper.eq("MONTH(invalidation_date)",month)
.eq("YEAR(invalidation_date)",year); .eq("YEAR(invalidation_date)",year);