Merge remote-tracking branch 'remotes/origin/test'
commit
f760b72094
@ -0,0 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.mes.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;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/8/3 17:51
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_HNC_AGV_RUNNING")
|
||||
@Api("延锋海纳川agv运行状态表")
|
||||
public class MesHncAgvRunning extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 4293079676019967513L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "TIME_OUT")
|
||||
@ApiParam("倒计时超时")
|
||||
private Integer timeOut;
|
||||
|
||||
@Column(name = "DELAY_HELP")
|
||||
@ApiParam("延时帮助")
|
||||
private Integer delayHelp;
|
||||
|
||||
@Column(name = "EMERGENCY_STOP")
|
||||
@ApiParam("紧急停止")
|
||||
private Integer emergencyStop;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TorqueReviewModel {
|
||||
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@ApiParam("工作单元名称")
|
||||
private String workCellName;
|
||||
|
||||
@ApiParam("枪类型")
|
||||
private String gunType;
|
||||
|
||||
@ApiParam("检测结果")
|
||||
private String checkResult;
|
||||
|
||||
@ApiParam("显示颜色")
|
||||
private String showColor;
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesHncAgvRunning;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/8/3 17:54
|
||||
* @desc
|
||||
*/
|
||||
public interface MesHncAgvRunningRepository extends BaseRepository<MesHncAgvRunning, Long> {
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description : 业务脚本
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-07-28 14:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "BS_BUSI_SCRIPT")
|
||||
@ApiModel(value = "业务脚本", description = "业务脚本")
|
||||
public class BsBusiScript extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 1419277265159912600L;
|
||||
|
||||
@Column(name = "SCRIPT_NAME")
|
||||
@ApiModelProperty(value = "脚本名称")
|
||||
private String scriptName;
|
||||
|
||||
@Column(name = "SCRIPT_CODE")
|
||||
@ApiModelProperty(value = "脚本代码")
|
||||
private String scriptCode;
|
||||
|
||||
@Column(name = "SCRIPT_TYPE")
|
||||
@ApiModelProperty(value = "脚本类型")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_TYPE.class)
|
||||
private Integer scriptType;
|
||||
|
||||
public String getScriptTypeTxt() {
|
||||
return scriptType == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_TYPE.valueOfDescription(scriptType);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_LANGUAGE")
|
||||
@ApiModelProperty(value = "脚本语言")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_LANGUAGE.class)
|
||||
private Integer scriptLanguage;
|
||||
|
||||
public String getScriptLanguageTxt() {
|
||||
return scriptLanguage == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_LANGUAGE.valueOfDescription(scriptLanguage);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_EXECUTE_METHOD")
|
||||
@ApiModelProperty(value = "脚本执行方式")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_EXECUTE_METHOD.class)
|
||||
private Integer scriptExecuteMethod;
|
||||
|
||||
public String getScriptExecuteMethodTxt() {
|
||||
return scriptExecuteMethod == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_EXECUTE_METHOD.valueOfDescription(scriptExecuteMethod);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_OBJ_NAME")
|
||||
@ApiModelProperty(value = "脚本对象名称")
|
||||
private String scriptObjName;
|
||||
|
||||
@Column(name = "SCRIPT_METHOD_NAME")
|
||||
@ApiModelProperty(value = "脚本方法名称")
|
||||
private String scriptMethodName;
|
||||
|
||||
@Column(name = "SCRIPT_CONTENT")
|
||||
@ApiModelProperty(value = "脚本内容")
|
||||
private String scriptContent;
|
||||
|
||||
@Column(name = "SCRIPT_DESC")
|
||||
@ApiModelProperty(value = "脚本描述")
|
||||
private String scriptDesc;
|
||||
|
||||
@Column(name = "REF_ID")
|
||||
@ApiModelProperty(value = "关联id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long refId;
|
||||
|
||||
@Column(name = "SCRIPT_VERSION")
|
||||
@ApiModelProperty(value = "脚本版本")
|
||||
private Integer scriptVersion;
|
||||
|
||||
public int getScriptVersion(){
|
||||
return scriptVersion == null ? NumberUtils.INTEGER_ONE : scriptVersion;
|
||||
}
|
||||
|
||||
public BsBusiScript nextVersion() {
|
||||
setScriptVersion(getScriptVersion() + 1);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsBusiScript;
|
||||
|
||||
/**
|
||||
* @Description : 业务脚本
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-07-28 15:13
|
||||
* @Modify:
|
||||
**/
|
||||
public interface BsBusiScriptRepository extends BaseRepository<BsBusiScript,Long> {
|
||||
}
|
Loading…
Reference in New Issue