Merge branch 'dev' of jhforever.wang/wangjie-i3plus-pojo into dev

yun-zuoyi
王杰 5 years ago committed by nancy.li
commit eaaa4f6061

@ -11,6 +11,41 @@ import com.fasterxml.jackson.annotation.JsonFormat;
**/
public class MesEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_MODULE_TYPE {
MONITOR_MODULE(10, "监听组件"),
REVEAL_MODULE(10, "展示组件"),
BUTTON_MODULE(30, "按钮组件");
private int value;
private String description;
WORK_MODULE_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
@ -3470,7 +3505,6 @@ public class MesEnumUtil {
public enum QUALITY_OBJECT_TYPE {
ORGANIZE(10, "工厂"),
WORK_CENTER_CODE(20, "产线"),
PRODUCT(30, "产品");
private int value;

@ -13,6 +13,42 @@ import org.apache.commons.lang3.StringUtils;
public class MesPcnEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_MODULE_TYPE {
MONITOR_MODULE(10, "监听组件"),
REVEAL_MODULE(10, "展示组件"),
BUTTON_MODULE(30, "按钮组件");
private int value;
private String description;
WORK_MODULE_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* -
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -2023,7 +2059,7 @@ public class MesPcnEnumUtil {
}
/**
* MesPartCategorycategoryType
* MesPartCategorycategoryType
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PART_CATEGORY_TYPE {
@ -2323,8 +2359,7 @@ public class MesPcnEnumUtil {
PACKAGE_SCAN(35, "打包扫描"),
INSTOCKED(40, "入库"),
SHIPING(50, "发运"),
CLOSE(90, "关闭"),
;
CLOSE(90, "关闭");
private int value;
private String description;

@ -0,0 +1,36 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.math.BigDecimal;
/**
* @Description:
* @Reference:
* @Author: wangjie
* @CreateDate: 2019\10\24 22:04
* @Modify:
**/
@Data
public class PartDismantleModel {
@ApiParam("子物料编码")
private String itemPartNo;
@ApiParam("子物料名称")
private String itemPartName;
@ApiParam("拆解数")
private BigDecimal dismantleQty;
@ApiParam("合格数")
private BigDecimal okQty;
@ApiParam("缺失数")
private BigDecimal missQty;
@ApiParam("报废数")
private BigDecimal scrapQty;
}
Loading…
Cancel
Save