支付回调未更新售后状态、菜单模糊查询

This commit is contained in:
taozi
2021-12-21 17:37:14 +08:00
parent 9979315839
commit 98ebc6bc38
4 changed files with 73 additions and 10 deletions

View File

@ -0,0 +1,39 @@
/**
* Copyright (C) 2018-2021
* All rights reserved, Designed By www.yixiang.co
*/
package co.yixiang.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.stream.Stream;
/**
* 售后状态枚举
*
* @author hupeng
* @date 2021/12/21
*/
@Getter
@AllArgsConstructor
public enum AfterSalesStatusEnum {
STATUS_0(0,"已提交等待平台审核"),
STATUS_1(1,"平台已审核,等待用户发货/退款"),
STATUS_2(2,"用户已发货"),
STATUS_3(3,"已完成");
private Integer value;
private String desc;
public static AfterSalesStatusEnum toType(int value) {
return Stream.of(AfterSalesStatusEnum.values())
.filter(p -> p.value == value)
.findAny()
.orElse(null);
}
}