Bargain Record Status Enum (bargain/BargainRecordStatusEnum.java)

ruoyi-office · yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/enums/bargain/BargainRecordStatusEnum.java · java · MIT
database, crm, payments, lang:java, tag:embed-classified, tag:enums, tag:promotion

An enumeration defining the lifecycle states of a promotional bargain record. Use this to standardize status tracking in e-commerce promotion modules.

// Source: https://github.com/yuqing2026/ruoyi-office | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
package cn.iocoder.yudao.module.promotion.enums.bargain;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 砍价记录的状态枚举
 *
 * @author 宇擎源码
 */
@AllArgsConstructor
@Getter
public enum BargainRecordStatusEnum implements ArrayValuable<Integer> {

    IN_PROGRESS(1, "砍价中"),
    SUCCESS(2, "砍价成功"),
    FAILED(3, "砍价失败"), // 活动到期时,会自动将到期的砍价全部设置为过期
    ;

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(BargainRecordStatusEnum::getStatus).toArray(Integer[]::new);

    /**
     * 值
     */
    private final Integer sta

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key