站内信消息优化

This commit is contained in:
pikachu
2021-07-21 19:38:59 +08:00
1062 changed files with 1952 additions and 1419 deletions

View File

@@ -7,7 +7,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* 消费者
*
* @author Chopper
* @date 2020/11/16 10:03 下午
* @since 2020/11/16 10:03 下午
*/
@SpringBootApplication
public class ConsumerApplication {

View File

@@ -7,7 +7,7 @@ import cn.lili.modules.order.order.entity.dos.AfterSale;
* 售后单改变状态
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface AfterSaleStatusChangeEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.member.entity.dos.MemberEvaluation;
* 订单状态改变事件
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface GoodsCommentCompleteEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.member.entity.dto.MemberPointMessage;
* 会员积分改变消息
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface MemberPointChangeEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.member.entity.dos.Member;
* 会员注册消息
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface MemberRegisterEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.member.entity.dto.MemberWithdrawalMessage;
* 会员提现消息
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface MemberWithdrawalEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.order.order.entity.dto.OrderMessage;
* 订单状态改变事件
*
* @author Chopper
* @date 2020/11/17 7:13 下午
* @since 2020/11/17 7:13 下午
*/
public interface OrderStatusChangeEvent {

View File

@@ -6,7 +6,7 @@ import cn.lili.modules.order.cart.entity.dto.TradeDTO;
* 订单创建消息
*
* @author Chopper
* @date 2021/2/2 15:15
* @since 2021/2/2 15:15
*/
public interface TradeEvent {

View File

@@ -22,7 +22,7 @@ import javax.annotation.Resource;
* 分销订单入库
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
*/
@Slf4j
@Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 商品SKU变化
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
*/
@Service
public class GoodsSkuExecute implements GoodsCommentCompleteEvent {

View File

@@ -24,7 +24,7 @@ import org.springframework.stereotype.Service;
* 会员经验值
*
* @author Bulbasaur
* @date: 2021/5/16 11:16 下午
* @since: 2021/5/16 11:16 下午
*/
@Service
public class MemberExperienceExecute implements MemberRegisterEvent, GoodsCommentCompleteEvent, OrderStatusChangeEvent {

View File

@@ -28,7 +28,7 @@ import org.springframework.stereotype.Service;
* 会员积分
*
* @author Bulbasaur
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
*/
@Service
public class MemberPointExecute implements MemberRegisterEvent, GoodsCommentCompleteEvent, OrderStatusChangeEvent, AfterSaleStatusChangeEvent {

View File

@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* 会员钱包创建
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
*/
@Service
public class MemberWalletExecute implements MemberRegisterEvent {

View File

@@ -28,7 +28,7 @@ import java.util.Map;
* 通知类消息实现
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
**/
@Service
public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent, AfterSaleStatusChangeEvent, MemberPointChangeEvent, MemberWithdrawalEvent {

View File

@@ -19,7 +19,7 @@ import java.util.List;
* 订单创建发票相关处理
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
**/
@Service
public class OrderCreateReceiptExecute implements TradeEvent {

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 订单状态处理类
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
**/
@Service
public class OrderStatusHandlerExecute implements TradeEvent {

View File

@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
* 支付
*
* @author Chopper
* @date 2021-03-13 16:58
* @since 2021-03-13 16:58
*/
@Slf4j
@Service

View File

@@ -16,7 +16,7 @@ import java.util.List;
* 注册赠券活动
*
* @author Bulbasaur
* @date: 2021/5/24 10:48 上午
* @since: 2021/5/24 10:48 上午
*/
@Component
public class RegisteredCouponActivityExecute implements MemberRegisterEvent {

View File

@@ -26,7 +26,7 @@ import java.util.List;
* 库存扣减,他表示了订单状态是否出库成功
*
* @author Chopper
* @date 2020-07-03 11:20
* @since 2020-07-03 11:20
*/
@Slf4j
@Service
@@ -161,6 +161,11 @@ public class StockUpdateExecute implements OrderStatusChangeEvent {
/**
* 同步库存和促销库存
*
* 需修改DB商品库存、Sku商品库存、活动商品库存
* 1.获取需要修改的Sku列表、活动商品列表
* 2.写入sku商品库存批量修改
* 3.写入促销商品的卖出数量、剩余数量,批量修改
* 4.调用方法修改商品库存
* @param order 订单
*/
private void synchroDB(OrderDetailVO order) {

View File

@@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
* 虚拟商品
*
* @author Bulbasaur
* @date: 2021/5/29 9:17 上午
* @since: 2021/5/29 9:17 上午
*/
@Component
public class VerificationOrderExecute implements OrderStatusChangeEvent {

View File

@@ -5,7 +5,7 @@ package cn.lili.timetask.handler;
* 每日凌晨1点执行
*
* @author Chopper
* @date 2020/12/24 11:52
* @since 2020/12/24 11:52
*/
public interface EveryDayExecute {

View File

@@ -4,7 +4,7 @@ package cn.lili.timetask.handler;
* 每小时任务
*
* @author Chopper
* @date 2020/12/24 11:52
* @since 2020/12/24 11:52
*/
public interface EveryHourExecute {

View File

@@ -4,7 +4,7 @@ package cn.lili.timetask.handler;
* 每分钟任务
*
* @author Chopper
* @date 2020/12/24 11:52
* @since 2020/12/24 11:52
*/
public interface EveryMinuteExecute {

View File

@@ -16,7 +16,7 @@ import java.util.List;
* 店铺结算执行
*
* @author Bulbasaur
* @date 2021/2/18 3:45 下午
* @since 2021/2/18 3:45 下午
*/
@Component
public class BillExecute implements EveryDayExecute {

View File

@@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
* 小程序直播状态获取
*
* @author Bulbasaur
* @date: 2021/5/20 2:52 下午
* @since: 2021/5/20 2:52 下午
*/
@Component
public class BroadcastExecute implements EveryHourExecute {

View File

@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
* 优惠券状态监测
*
* @author Bulbasaur
* @date: 2021/5/24 10:08 上午
* @since: 2021/5/24 10:08 上午
*/
@Component
public class CouponExecute implements EveryDayExecute {

View File

@@ -18,7 +18,7 @@ import java.util.Map;
* 商品定时器
*
* @author Chopper
* @date 2021/3/18 3:23 下午
* @since 2021/3/18 3:23 下午
*/
@Component
public class GoodsExecute implements EveryDayExecute {

View File

@@ -23,7 +23,7 @@ import java.util.stream.Collectors;
* 订单自动取消(每分钟执行)
*
* @author paulG
* @date 2021/3/11
* @since 2021/3/11
**/
@Slf4j
@Component

View File

@@ -33,7 +33,7 @@ import java.util.List;
* 促销活动每日定时器
*
* @author Chopper
* @date 2021/3/18 3:23 下午
* @since 2021/3/18 3:23 下午
*/
@Slf4j
@Component

View File

@@ -14,7 +14,7 @@ import java.util.Date;
* 会员数据统计
*
* @author Chopper
* @date 2021-03-02 14:56
* @since 2021-03-02 14:56
*/
@Slf4j
@Component

View File

@@ -19,7 +19,7 @@ import java.util.stream.Collectors;
* 实时在线人数统计
*
* @author Chopper
* @date 2021-02-21 09:47
* @since 2021-02-21 09:47
*/
@Component
public class OnlineMemberStatistics implements EveryHourExecute {

View File

@@ -21,7 +21,7 @@ import java.util.List;
* 店铺评分
*
* @author Chopper
* @date 2021/3/15 5:30 下午
* @since 2021/3/15 5:30 下午
*/
@Component
public class StoreRatingExecute implements EveryDayExecute {

View File

@@ -23,7 +23,7 @@ import java.util.List;
* 统计 入库
*
* @author Chopper
* @date 2021-01-15 18:20
* @since 2021-01-15 18:20
*/
@Slf4j
@Component

View File

@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
* 事件触发消费者
*
* @author paulG
* @date 2020/11/17 7:19 下午
* @since 2020/11/17 7:19 下午
*/
@Component
@Slf4j

View File

@@ -13,7 +13,7 @@ import org.springframework.stereotype.Component;
* 直播间事件触发
*
* @author Bulbasaur
* @date: 2021/6/1 5:02 下午
* @since: 2021/6/1 5:02 下午
*/
@Slf4j
@Component(TimeExecuteConstant.BROADCAST_EXECUTOR)

View File

@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
*
* @author Chopper
* @version v4.1
* @date 2020/11/17 7:20 下午
* @since 2020/11/17 7:20 下午
*/
@Slf4j
@Component(TimeExecuteConstant.PROMOTION_EXECUTOR)