Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
潘荣晟
2026-01-30 14:19:15 +08:00
2 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,59 @@
package com.zt.plat.module.erp.enums.warehouseFactory;
import org.apache.commons.lang3.StringUtils;
/**
* 仓库工厂关系-库位绑定ERP库位操作类型(字典: WAREHOUSE_OPERATION)
* 枚举(字典: WAREHOUSE_OPERATION)
*
*/
public enum WarehouseFactoryOperationTypeEnum {
OUT("SHIPPING","出库"),
INTO("RECEIVING","入库"),
MOVE("MOVE","移库"),
;
/**
* 编码
*/
private String code;
/**
* 名称
*/
private String name;
WarehouseFactoryOperationTypeEnum(String code, String name){
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public static WarehouseFactoryOperationTypeEnum getEnumByCode(String code){
for (WarehouseFactoryOperationTypeEnum e : WarehouseFactoryOperationTypeEnum.values()) {
if (e.getCode().equals(code)) {
return e;
}
}
return OUT;
}
public static WarehouseFactoryOperationTypeEnum getEnumByName(String name){
if (StringUtils.isEmpty(name)) return OUT;
for (WarehouseFactoryOperationTypeEnum e : WarehouseFactoryOperationTypeEnum.values()) {
if (name.equals(e.getName())) {
return e;
}
}
return OUT;
}
}

View File

@@ -40,12 +40,12 @@ public class WarehouseFactoryDO extends BusinessBaseDO {
@TableField("CPN_ID_CST") @TableField("CPN_ID_CST")
private String companyIdCustom; private String companyIdCustom;
/** /**
* 操作类型 * 操作类型(字典: WAREHOUSE_OPERATION)
*/ */
@TableField("OPTN_TP") @TableField("OPTN_TP")
private String operationType; private String operationType;
/** /**
* 业务类型 * 业务类型(字典: SPLY_BSN_TP)
*/ */
@TableField("MMSI_TP") @TableField("MMSI_TP")
private String mmsiType; private String mmsiType;