解决冲突

yun-zuoyi
王杰 6 years ago
parent 5050c0c5a1
commit 2a5c32b8ea

@ -13,6 +13,44 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil { public class MesEnumUtil {
/** /**
* MES_PACKAGE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PACKAGE_PACKLEVEL {
FIRST(1, "第一层"),
SECOND(2, "第二层"),
THIRD(3, "第三层"),
FOURTH(4, "第四层");
private int value;
private String description;
PACKAGE_PACKLEVEL(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;
}
}
/**
* MesIf * MesIf
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -49,4 +49,5 @@ public class MesLabelTemplate extends BaseBean {
@Transient @Transient
@ApiParam(value = "模板id对应的模板参数") @ApiParam(value = "模板id对应的模板参数")
private List<MesLabelTemplateParam> labelTemplateParamList; private List<MesLabelTemplateParam> labelTemplateParamList;
} }

@ -0,0 +1,26 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplate;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : /model
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-08-18 11:00
* @Modify:
**/
@Data
public class SnPrintTemplateModel implements Serializable {
@ApiParam("产品条码模板")
private MesLabelTemplate prodSnPrintTemplate;
@ApiParam("包装条码模板集合")
private List<MesLabelTemplate> packageSnPrintTemplateList;
}
Loading…
Cancel
Save