|
|
package com.yohoufo.order.common;
|
|
|
|
|
|
import com.yohoufo.order.constants.OrderDetailDesc;
|
|
|
import com.yohoufo.order.model.bo.ButtonShowBo;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
...
|
...
|
@@ -17,8 +18,8 @@ public enum SkupStatus { |
|
|
*/
|
|
|
CAN_SELL(1, "可售",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD, ButtonShow.SHOW_DETAIL),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD.getBo(), ButtonShow.SHOW_DETAIL.getBo()),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD.getBo()),
|
|
|
OrderDetailDesc.Seller.PAY_FINISH
|
|
|
)
|
|
|
),
|
...
|
...
|
@@ -27,37 +28,37 @@ public enum SkupStatus { |
|
|
*/
|
|
|
CAN_NOT_SELL(0,"待付保证金",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD, ButtonShow.PAY_EARNESTMONEY),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD, ButtonShow.PAY_EARNESTMONEY),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD.getBo(), ButtonShow.PAY_EARNESTMONEY.getBo()),
|
|
|
Arrays.asList(ButtonShow.NOT_SOLD.getBo(), ButtonShow.PAY_EARNESTMONEY.getBo()),
|
|
|
OrderDetailDesc.Seller.WAIT_PAY
|
|
|
)
|
|
|
),
|
|
|
|
|
|
SELF_CANCEL_PAY(20, "上架关闭(卖家取消支付)",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN, ButtonShow.DEL_ORDER, ButtonShow.SHOW_DETAIL),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER, ButtonShow.SOLD_AGAIN),
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN.getBo(), ButtonShow.DEL_ORDER.getBo(), ButtonShow.SHOW_DETAIL.getBo()),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER.getBo(), ButtonShow.SOLD_AGAIN.getBo()),
|
|
|
OrderDetailDesc.Seller.SELF_CANCEL_BEFORE_PAY
|
|
|
)
|
|
|
),
|
|
|
TIMEOUT_CANCEL(21, "上架关闭(卖家支付超时)",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN, ButtonShow.DEL_ORDER, ButtonShow.SHOW_DETAIL),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER, ButtonShow.SOLD_AGAIN),
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN.getBo(), ButtonShow.DEL_ORDER.getBo(), ButtonShow.SHOW_DETAIL.getBo()),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER.getBo(), ButtonShow.SOLD_AGAIN.getBo()),
|
|
|
OrderDetailDesc.Seller.TIME_OUT_CANCEL
|
|
|
)
|
|
|
),
|
|
|
SELLER_CANCEL_SELL(22, "上架关闭(卖家取消出售)",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN, ButtonShow.DEL_ORDER, ButtonShow.SHOW_DETAIL),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER, ButtonShow.SOLD_AGAIN),
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN.getBo(), ButtonShow.DEL_ORDER.getBo(), ButtonShow.SHOW_DETAIL.getBo()),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER.getBo(), ButtonShow.SOLD_AGAIN.getBo()),
|
|
|
OrderDetailDesc.Seller.SELF_CANCEL_BEFORE_EXIST_BUY
|
|
|
)
|
|
|
),
|
|
|
YOHO_CANCEL_SELL(23, "上架关闭(平台取消出售)",
|
|
|
new Node(
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN, ButtonShow.DEL_ORDER, ButtonShow.SHOW_DETAIL),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER, ButtonShow.SOLD_AGAIN),
|
|
|
Arrays.asList(ButtonShow.SOLD_AGAIN.getBo(), ButtonShow.DEL_ORDER.getBo(), ButtonShow.SHOW_DETAIL.getBo()),
|
|
|
Arrays.asList(ButtonShow.DEL_ORDER.getBo(), ButtonShow.SOLD_AGAIN.getBo()),
|
|
|
OrderDetailDesc.Seller.YOHO_CANCEL_BEFORE_EXIST_BUY
|
|
|
)
|
|
|
)
|
...
|
...
|
@@ -77,13 +78,13 @@ public enum SkupStatus { |
|
|
|
|
|
static class Node{
|
|
|
|
|
|
List<ButtonShow> listButtons;
|
|
|
List<ButtonShowBo> listButtons;
|
|
|
|
|
|
List<ButtonShow> detailButtons;
|
|
|
List<ButtonShowBo> detailButtons;
|
|
|
|
|
|
String detailShowDesc;
|
|
|
|
|
|
public Node(List<ButtonShow> listButtons, List<ButtonShow> detailButtons, String desc) {
|
|
|
public Node(List<ButtonShowBo> listButtons, List<ButtonShowBo> detailButtons, String desc) {
|
|
|
this.listButtons = listButtons;
|
|
|
this.detailButtons = detailButtons;
|
|
|
this.detailShowDesc = desc;
|
...
|
...
|
@@ -108,15 +109,19 @@ public enum SkupStatus { |
|
|
}
|
|
|
|
|
|
|
|
|
public List<ButtonShow> getListButtons() {
|
|
|
public List<ButtonShowBo> getListButtons() {
|
|
|
return node.listButtons;
|
|
|
}
|
|
|
|
|
|
public List<ButtonShow> getDetailButtons() {
|
|
|
public List<ButtonShowBo> getDetailButtons() {
|
|
|
return node.detailButtons;
|
|
|
}
|
|
|
|
|
|
public String getDetailShowDesc() {
|
|
|
return node.detailShowDesc;
|
|
|
}
|
|
|
|
|
|
public String getDesc() {
|
|
|
return desc;
|
|
|
}
|
|
|
} |
...
|
...
|
|