ERP:【销售订单】初始化

This commit is contained in:
YunaiV
2024-01-27 23:25:52 +08:00
parent ebd9222764
commit 6e005f46d9
12 changed files with 721 additions and 6 deletions

View File

@ -1,5 +1,7 @@
package cn.iocoder.yudao.module.erp.enums;
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
/**
* ERP 错误码枚举类
* <p>
@ -7,5 +9,7 @@ package cn.iocoder.yudao.module.erp.enums;
*/
public interface ErrorCodeConstants {
// ========== 销售订单1-030-000-000 ==========
ErrorCode SALE_ORDER_NOT_EXISTS = new ErrorCode(1_030_000_000, "销售订单不存在");
}

View File

@ -0,0 +1,40 @@
package cn.iocoder.yudao.module.erp.enums.sale;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* ERP 销售订单的状态枚举
*
* @author 芋道源码
*/
@AllArgsConstructor
@Getter
public enum ErpSaleOrderStatusEnum implements IntArrayValuable {
AUDIT_NONE(0, "未审核"),
AUDIT_PASS(10, "已审核"),
SALE_PART(20, "部分销售"),
SALE_ALL(21, "完成销售"),
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ErpSaleOrderStatusEnum::getStatus).toArray();
/**
* 状态
*/
private final Integer status;
/**
* 状态名
*/
private final String name;
@Override
public int[] array() {
return ARRAYS;
}
}