未发送的 任务 要 删除

发送的任务 券 发送时间执行 发放
This commit is contained in:
2025-10-17 16:09:19 +08:00
parent fc6aaf8b35
commit 8d41b4c2a9
7 changed files with 118 additions and 30 deletions

View File

@@ -23,6 +23,8 @@ public interface RedisCst {
public static final String EXPIRED_TABLE = "expired:table:";
//优惠券过期
public static final String EXPIRED_COUPON = "expired:coupon:";
//短信定时发放 倒计时KEY
public static final String EXPIRED_SMS = "expired:sms:";
}

View File

@@ -31,7 +31,7 @@ public class SmsPushEventDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@NotNull(message = "id不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Long id;
private Long shopId;
@@ -44,18 +44,18 @@ public class SmsPushEventDTO implements Serializable {
/**
* 模板ID
*/
@NotNull(message = "模板ID不能为空", groups = InsertGroup.class)
@NotNull(message = "模板ID不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Long pushEventId;
/**
* 1 全部用户 2范围用户 3 指定用户 指定暂定一个用户
*/
@NotNull(message = "发送范围不能为空", groups = InsertGroup.class)
@NotNull(message = "发送范围不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Long userType;
/**
* 预计人数
*/
@NotNull(message = "预计人数不能为空", groups = InsertGroup.class)
@NotNull(message = "预计人数不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Long estimateNum;
/**
* 实际人数
@@ -79,13 +79,13 @@ public class SmsPushEventDTO implements Serializable {
/**
* 发送内容
*/
@NotBlank(message = "发送内容不能为空", groups = InsertGroup.class)
@NotBlank(message = "发送内容不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private String content;
/**
* 发送参数json
* {"店铺名称":"火锅店","时间":"2025-02-17"}
*/
@NotBlank(message = "发送参数json不能为空", groups = InsertGroup.class)
@NotBlank(message = "发送参数json不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private String json;
/**
@@ -96,7 +96,7 @@ public class SmsPushEventDTO implements Serializable {
/**
* 发送类型 1 立即发送 2定时发送
*/
@NotNull(message = "发送类型不能为空", groups = InsertGroup.class)
@NotNull(message = "发送类型不能为空", groups = {InsertGroup.class, UpdateGroup.class})
private Integer sendType;
/**

View File

@@ -1,6 +1,5 @@
package com.czg.market.service;
import com.czg.BaseQueryParam;
import com.czg.market.dto.SmsPushEventDTO;
import com.czg.market.entity.SmsPushEvent;
import com.mybatisflex.core.paginate.Page;
@@ -24,5 +23,15 @@ public interface SmsPushEventService extends IService<SmsPushEvent> {
*/
void addPushEvent(SmsPushEventDTO param);
/**
* 发送营销推送发送任务中的优惠券
*/
void sendPushEventCoupon(String eventId);
/**
* 更新营销推送发送任务
*/
void upPushEvent(SmsPushEventDTO param);
void deletePushEvent(Long id);
}