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

yun-zuoyi
qianhs 5 years ago
commit 61603e2aa5

@ -5837,7 +5837,18 @@ public class MesEnumUtil {
STRING("10", "String", "字符串"),
BOOLEAN("20","Boolean", "布尔"),
WORD("30", "Word", "整形-Word"),
DWORD("40","Dword", "整形-DWord");
DWORD("40","Dword", "整形-DWord"),
LONG("50", "Long", "长整形-Long"),
SHORT("60", "Short", "UShort"),
DOUBLE("70", "Double", "双精度-Double"),
FLOAT("80", "Float", "单精度-Float"),
LLONG("90", "LLong", "LLONG"),
QWORD("100", "QWord", "QWORD"),
BCD("110", "BCD", "BCD"),
LBCD("120", "LBCD", "LBCD"),
BYTE("130", "Byte", "Byte"),
CHAR("140", "Char", "Char"),
Date("150", "DateTime", "日期");
private String value;
private String code;

@ -4423,4 +4423,50 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VALUE_RANGE {
SCAN(10, "扫描"),
READ_CACHE(20, "读取缓存");
private int value;
private String description;
VALUE_RANGE(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -8787,78 +8787,4 @@ public class WmsEnumUtil {
return null;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SUSPEN_STOCK_SYNC_DATA_SRC {
IP(10, "IP", "IP"),
DF(20, "DF", "DF"),
DR(30, "DR", "DR");
int value;
private String code;
private String description;
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
SUSPEN_STOCK_SYNC_DATA_SRC(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String desc) {
return descOf(desc);
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static SUSPEN_STOCK_SYNC_DATA_SRC codeOf(String code) {
if (StringUtils.isEmpty(code)) {
return null;
} else {
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equalsIgnoreCase(code)) {
return values()[i];
}
}
}
return null;
}
}
}

@ -37,10 +37,12 @@ public class ButtonDynamicModel {
private String paramValue;
public ButtonDynamicModel(Long id, String buttonCode, String buttonName) {
public ButtonDynamicModel(Long id, String buttonCode, String buttonName, String windowNo, String windowModuleBack) {
this.id = id;
this.buttonCode = buttonCode;
this.buttonName = buttonName;
this.windowNo = windowNo;
this.windowModuleBack = windowModuleBack;
}

@ -102,6 +102,9 @@ public class MesPlcModel implements Serializable {
@ApiParam("默认赋值属性")
private String defaultRule;
@ApiParam("工装代码")
private String toolingCode;
public MesPlcModel() {
}
@ -109,7 +112,8 @@ public class MesPlcModel implements Serializable {
public MesPlcModel(Long id, String equipmentCode, String equipmentName, Integer isValid, Integer isDeleted, String createUser, String createDatetime,
String modifyUser, String modifyDatetime, String organizeCode, String plcCode, String plcName, String plcModel,
String plcIp, String channel, String tagName, String tagAddress, String dataType, String groupName,
String workCenterCode, String workCellCode, String plcCfg, String analysisRule, String isAnalysis, String device, String objectCode, String opcUrl, Integer plcType, String defaultRule) {
String workCenterCode, String workCellCode, String plcCfg, String analysisRule, String isAnalysis, String device,
String objectCode, String opcUrl, Integer plcType, String defaultRule, String toolingCode) {
this.id = id;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
@ -139,5 +143,6 @@ public class MesPlcModel implements Serializable {
this.opcUrl = opcUrl;
this.plcType = plcType;
this.defaultRule = defaultRule;
this.toolingCode = toolingCode;
}
}

@ -60,6 +60,9 @@ public class ProdPackModel implements Serializable {
@ApiParam("物料号")
public String parentPartNo;
@ApiParam("是否封箱")
public Integer isSealed;
public ProdPackModel() {
}
@ -77,4 +80,11 @@ public class ProdPackModel implements Serializable {
this.printStatus = printStatus;
this.modifyDatetime = modifyDatetime;
}
public ProdPackModel(Integer isSealed,String serialNumber, String packageNo, String createDatetime) {
this.isSealed = isSealed;
this.serialNumber = serialNumber;
this.packageNo = packageNo;
this.createDatetime = createDatetime;
}
}

@ -62,4 +62,7 @@ public class StationResultBean<T> implements Serializable {
@ApiParam("工位参数")
private Map<String, String> wcpcMap = new HashMap<>();
@ApiParam("定时秒数")
private Integer timer;
}

@ -18,5 +18,7 @@ public class PsetModel {
private Integer psetCount;
private Integer actualCount;
private boolean torqueStatus;
}

@ -219,14 +219,14 @@ public class TorqueCollectionModel implements Serializable {
}
private void assemblePsets() {
psets.put("pset1", new PsetModel("pset1", 1, this.pset1, false));
psets.put("pset2", new PsetModel("pset2", 2, this.pset2, false));
psets.put("pset3", new PsetModel("pset3", 3, this.pset3, false));
psets.put("pset4", new PsetModel("pset4", 4, this.pset4, false));
psets.put("pset5", new PsetModel("pset5", 5, this.pset5, false));
psets.put("pset6", new PsetModel("pset6", 6, this.pset6, false));
psets.put("pset7", new PsetModel("pset7", 7, this.pset7, false));
psets.put("pset8", new PsetModel("pset8", 8, this.pset8, false));
psets.put("pset1", new PsetModel("pset1", 1, this.pset1, 0, false));
psets.put("pset2", new PsetModel("pset2", 2, this.pset2, 0, false));
psets.put("pset3", new PsetModel("pset3", 3, this.pset3, 0, false));
psets.put("pset4", new PsetModel("pset4", 4, this.pset4, 0, false));
psets.put("pset5", new PsetModel("pset5", 5, this.pset5, 0, false));
psets.put("pset6", new PsetModel("pset6", 6, this.pset6, 0, false));
psets.put("pset7", new PsetModel("pset7", 7, this.pset7, 0, false));
psets.put("pset8", new PsetModel("pset8", 8, this.pset8, 0, false));
}
}

@ -0,0 +1,40 @@
package cn.estsh.i3plus.pojo.ptl.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_TIME")
@Api("工步参数")
public class PtlTime extends BaseBean implements Serializable {
private static final long serialVersionUID = 6674121566943415827L;
@Column(name = "MODULE")
@ApiParam("组件")
private String module;
@Column(name = "ELAPSE")
@ApiParam("耗时")
private Long elapse;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工位")
private String workCellCode;
}

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.ptl.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
/**
* @Description : PojoField
* @Reference :
* @Author : jack.jia
* @CreateDate : 2020-04-28
* @Modify:
* @Modify:
**/
@Data
public class PojoFieldModel implements Serializable {
private static final long serialVersionUID = 366939009033748970L;
@ApiParam(value ="属性名")
private String fieldName;
@ApiParam(value ="属性类型")
private String fieldType;
@ApiParam(value ="属性描述")
private String fieldDesc;
@ApiParam(value ="字段名称")
private String fieldColumnName;
@ApiParam(value = "数据来源")
private String dataSrc;
@ApiParam(value = "开窗列表显示列名称")
private String listColumnName;
@ApiParam(value = "开窗搜索列名称")
private String searchColumnName;
@ApiParam(value = "回显列名")
private String explicitColumnName;
@ApiParam(value = "下拉框规则")
private Integer selectRule;
}

@ -0,0 +1,36 @@
package cn.estsh.i3plus.pojo.ptl.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : Pojo
* @Reference :
* @Author : jack.jia
* @CreateDate : 2020-04-28
* @Modify:
**/
@Data
public class PojoModel implements Serializable {
private static final long serialVersionUID = -3491931203656275910L;
@ApiParam(value ="包名")
private String packageName;
@ApiParam(value ="POJO类名")
private String simpleName;
@ApiParam(value ="POJO类全名")
private String fullName;
@ApiParam(value ="表名称名")
private String tableName;
@ApiParam(value ="POJO类描述")
private String pojoDesc;
@ApiParam(value ="属性集合")
private List<PojoFieldModel> fieldList;
}

@ -0,0 +1,10 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlTime;
import org.springframework.stereotype.Repository;
@Repository
public interface PtlTimeRepository extends BaseRepository<PtlTime, Long> {
}
Loading…
Cancel
Save