摘要: 1.基于任务规则处理不同任务 ①定义接口 public interface RuleHandler { /** * 任务名称 * * @return */ String getName(); /** * 查询是否有该任务 * * @param hasFeatureList 用户已有特征 * @par 阅读全文
posted @ 2022-04-07 16:42 Antony_hubei 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1.基于cmq消息事件处理模式,进行消息处理 ①抽象消息接口 public interface BenefitMsgHandler { /** * 消息处理器名称 * * @return */ String getName(); /** * 消息处理器执行顺序 * * @return */ Inte 阅读全文
posted @ 2022-04-07 16:38 Antony_hubei 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 基于订单生成规则,期望是以年与日+随机串进行生成规则,因为分布式,所以对自增id场景需要,所以存在分布式自增id场景 直接上代码 @Slf4j @Service public class CommonLocalCacheService { @Autowired private RedisTempla 阅读全文
posted @ 2022-04-07 16:24 Antony_hubei 阅读(1063) 评论(0) 推荐(0) 编辑