Files
scrq-hd/.svn/pristine/bc/bccaf0b41554d975029e0d7b41d1b24e18cff6ef.svn-base
2025-07-03 10:34:04 +08:00

37 lines
824 B
Plaintext

package com.cmeim.stock.common.enums;
import lombok.Getter;
public enum MmMaterialBarType {
YCLRK(1, "原材料入库"),
QTRK(2, "其他入库"),
BCPRK(3, "半成品入库"),
CPRK(4, "成品入库"),
JKRK(5, "接口入库"),
JKTL(6, "接口退料"),
CKCB(7, "出库拆包"),
TLRK(8, "退料入库");
@Getter
private int value;
@Getter
private String text;
private MmMaterialBarType(int value, String text) {
this.value = value;
this.text = text;
}
public static String getTypeText(int value) {
MmMaterialBarType[] items = MmMaterialBarType.values();
for (MmMaterialBarType item : items) {
if (value == item.getValue()) {
return item.getText();
}
}
return null;
}
}