## 同步出货明细等;
This commit is contained in:
parent
6c5591ec13
commit
425e84fac3
|
@ -2436,7 +2436,7 @@ public class EnumsController extends BaseController {
|
|||
public AjaxResult getWaresType() {
|
||||
List<EnumEntity> enumEntityList = new ArrayList<>();
|
||||
for (EWaresType value : EWaresType.values()) {
|
||||
enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel(), EnumsPrefixConstants.ENU_WARES_TYPE));
|
||||
enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel()));
|
||||
}
|
||||
return AjaxResult.success(enumEntityList);
|
||||
}
|
||||
|
|
|
@ -569,11 +569,6 @@ public class EnumsPrefixConstants {
|
|||
* 验证类型枚举
|
||||
*/
|
||||
public static final String ENU_VERIFY = "ENU_VERIFY_T_";
|
||||
|
||||
/**
|
||||
* 商品类型枚举
|
||||
*/
|
||||
public static final String ENU_WARES_TYPE = "ENU_WARES_TYPE_P_";
|
||||
/**
|
||||
* 是否打印枚举
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.hzs.common.core.enums;
|
||||
|
||||
import com.hzs.common.core.constant.EnumsPrefixConstants;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
|
@ -14,7 +13,7 @@ public enum EWaresType {
|
|||
/**
|
||||
* 1=普通商品
|
||||
*/
|
||||
ORDINARY(1, "普通商品", EnumsPrefixConstants.ENU_WARES_TYPE + "1"),
|
||||
ORDINARY(1, "普通商品"),
|
||||
|
||||
;
|
||||
|
||||
|
@ -27,17 +26,13 @@ public enum EWaresType {
|
|||
* 显示标签
|
||||
*/
|
||||
private final String label;
|
||||
/**
|
||||
* 国际化翻译key值
|
||||
*/
|
||||
private final String key;
|
||||
|
||||
public static String getLabelByValue(Integer value) {
|
||||
if (null == value) {
|
||||
return "";
|
||||
}
|
||||
for (EWaresType enums : EWaresType.values()) {
|
||||
if (enums.getValue() == value) {
|
||||
if (enums.getValue().equals(value)) {
|
||||
return enums.getLabel();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue