fix:添加仓库分类
parent
e349181c17
commit
48e624ace6
@ -0,0 +1,28 @@
|
||||
package cn.iocoder.yudao.module.erp.controller.admin.stock.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ErpWarehouseCategoryEnum implements IntArrayValuable {
|
||||
|
||||
PRODUCT(1, "产品"),
|
||||
MATERIAL(2, "物料"),
|
||||
SPARE_PART(3, "备件"),
|
||||
OTHER(4, "其他");
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ErpWarehouseCategoryEnum::getCategory).toArray();
|
||||
|
||||
private final Integer category;
|
||||
private final String name;
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue