From 28cf328a098334b51a3e9d2d56f983fb8c862211 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 23 五月 2020 09:54:38 +0800 Subject: [PATCH] 足迹、收藏订单兼容新需求 --- fanli/src/main/java/com/yeshi/fanli/dto/mq/order/body/OrderMQMsg.java | 70 +++++++++++++++++++++++++++++++--- 1 files changed, 63 insertions(+), 7 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dto/mq/order/body/OrderMQMsg.java b/fanli/src/main/java/com/yeshi/fanli/dto/mq/order/body/OrderMQMsg.java index e2cad37..c3ea873 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dto/mq/order/body/OrderMQMsg.java +++ b/fanli/src/main/java/com/yeshi/fanli/dto/mq/order/body/OrderMQMsg.java @@ -1,5 +1,7 @@ package com.yeshi.fanli.dto.mq.order.body; +import java.util.Date; + import com.yeshi.fanli.dto.mq.BaseMQMsgBody; /** @@ -8,22 +10,52 @@ * @author Administrator * */ -public class OrderMQMsg extends BaseMQMsgBody{ - private String orderId; - private Integer type; - private Long uid; +public class OrderMQMsg extends BaseMQMsgBody { - public OrderMQMsg(String orderId, Integer type, Long uid) { + public static int HANDLE_TYPE_ADD = 1;// 鏂板 + public static int HANDLE_TYPE_UPDATE = 2;// 淇敼 + public static int HANDLE_TYPE_ADD_AND_UPDATE = 12;// 閮ㄥ垎鏂板,閮ㄥ垎淇敼 + private String orderId; + private Integer type;// 璁㈠崟绫诲瀷 + private Long uid; + private int handleType; // 鎿嶄綔绫诲瀷 + private boolean valid; + private int delayHour;// 寤舵椂鐨勬椂闂达紙灏忔椂璁帮級 + private Date staticticDate;// 缁熻鍒扮殑鏃堕棿 + private boolean miandan; + + public OrderMQMsg(String orderId, Integer type, Long uid, int handleType, boolean valid, int delayHour, + Date staticticDate, boolean miandan) { super(); this.orderId = orderId; this.type = type; this.uid = uid; + this.handleType = handleType; + this.valid = valid; + this.delayHour = delayHour; + this.staticticDate = staticticDate; + this.miandan = miandan; } - + + public Date getStaticticDate() { + return staticticDate; + } + + public void setStaticticDate(Date staticticDate) { + this.staticticDate = staticticDate; + } + + public int getDelayHour() { + return delayHour; + } + + public void setDelayHour(int delayHour) { + this.delayHour = delayHour; + } + public OrderMQMsg() { super(); } - public String getOrderId() { return orderId; @@ -48,4 +80,28 @@ public void setUid(Long uid) { this.uid = uid; } + + public int getHandleType() { + return handleType; + } + + public void setHandleType(int handleType) { + this.handleType = handleType; + } + + public boolean isValid() { + return valid; + } + + public void setValid(boolean valid) { + this.valid = valid; + } + + public boolean isMiandan() { + return miandan; + } + + public void setMiandan(boolean miandan) { + this.miandan = miandan; + } } -- Gitblit v1.8.0