Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
e48c94caa8
@ -1,11 +0,0 @@
|
|||||||
package cn.estsh.i3plus.pojo.andon.sqlpack;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description : 安灯对象查询封装
|
|
||||||
* @Reference :
|
|
||||||
* @Author : silliter.yuan
|
|
||||||
* @CreateDate : 2019-05-10 10:45
|
|
||||||
* @Modify:
|
|
||||||
**/
|
|
||||||
public class AndonHqlPack {
|
|
||||||
}
|
|
@ -0,0 +1,46 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : ANDON_事件处理方法
|
||||||
|
* @Reference :
|
||||||
|
* @Author : hansen.ke
|
||||||
|
* @CreateDate : 2019-05-13 17:16
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="ANDON_EVENT_METHOD")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api("ANDON_事件处理方法")
|
||||||
|
public class AndonEventMethod extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "EM_CODE")
|
||||||
|
@ApiParam(value = "事件方法代码")
|
||||||
|
private String emCode;
|
||||||
|
|
||||||
|
@Column(name = "EM_NAME")
|
||||||
|
@ApiParam(value = "事件方法描述")
|
||||||
|
private String emName;
|
||||||
|
|
||||||
|
@Column(name = "PARENT_EM_CODE")
|
||||||
|
@ApiParam(value = "父阶方法代码")
|
||||||
|
private String parentEmCode;
|
||||||
|
|
||||||
|
@Column(name = "ALARM_CODE")
|
||||||
|
@ApiParam(value = "安灯类型")
|
||||||
|
private String alarmCode;
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
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 javax.persistence.Transient;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :生产区域
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="MES_AREA")
|
||||||
|
@Api("生产区域")
|
||||||
|
public class MesArea extends BaseBean {
|
||||||
|
@Column(name="AREA_CODE")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Column(name="AREA_NAME")
|
||||||
|
@ApiParam("区域名称")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
private List<MesWorkCenter> childTreeList;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
// 默认值 -1
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="父节点" , access ="父节点" ,example = "-1")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
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 javax.persistence.Transient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :生产区域
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="MES_EQUIPMENT")
|
||||||
|
@Api("生产设备")
|
||||||
|
public class MesEquipment extends BaseBean {
|
||||||
|
@Column(name="EQUIPMENT_CODE")
|
||||||
|
@ApiParam("设备代码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
@Column(name="EQUIPMENT_NAME")
|
||||||
|
@ApiParam("设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
@Column(name="STATUS")
|
||||||
|
@ApiParam("设备状态")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
@Column(name="WORK_CELL_CODE")
|
||||||
|
@ApiParam("工作单元代码")
|
||||||
|
private String workCellCode;
|
||||||
|
|
||||||
|
@Column(name="WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name="AREA_CODE")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
// 默认值 -1
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="父节点" , access ="父节点" ,example = "-1")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long parentId;
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :mes系统业务动作
|
||||||
|
* @Reference :
|
||||||
|
* @Author : crish
|
||||||
|
* @CreateDate : 2019-04-19
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="MES_SHIFT")
|
||||||
|
@Api("班次信息")
|
||||||
|
public class MesShift extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name="SHIFT_CODE")
|
||||||
|
@ApiParam("班次代码")
|
||||||
|
private String shiftCode;
|
||||||
|
|
||||||
|
@Column(name="SHIFT_NAME")
|
||||||
|
@ApiParam("班次名称")
|
||||||
|
private String shiftName;
|
||||||
|
|
||||||
|
@Column(name="START_TIME")
|
||||||
|
@ApiParam("开班时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@Column(name="WORK_TIMES")
|
||||||
|
@ApiParam("作业时长")
|
||||||
|
private String workTimes;
|
||||||
|
|
||||||
|
public MesShift() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public MesShift(String workCenterCode,String organizeCode) {
|
||||||
|
this.workCenterCode = workCenterCode;
|
||||||
|
this.organizeCode = organizeCode;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
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 javax.persistence.Transient;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :工作单元
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name = "MES_WORK_CELL")
|
||||||
|
@Api("工作单元")
|
||||||
|
public class MesWorkCell extends BaseBean {
|
||||||
|
@Column(name = "WORK_CELL_CODE")
|
||||||
|
@ApiParam("工作单元代码")
|
||||||
|
private String workCellCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CELL_NAME")
|
||||||
|
@ApiParam("工作单元名称")
|
||||||
|
private String workCellName;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "AREA_CODE")
|
||||||
|
@ApiParam("生产区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
private List<MesEquipment> childTreeList;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
// 默认值 -1
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="父节点" , access ="父节点" ,example = "-1")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long parentId;
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
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 javax.persistence.Transient;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :工作中心
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name = "MES_WORK_CENTER")
|
||||||
|
@Api("工作中心")
|
||||||
|
public class MesWorkCenter extends BaseBean {
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_NAME")
|
||||||
|
@ApiParam("工作中心名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
@Column(name = "ERP_WORK_CENTER")
|
||||||
|
@ApiParam("ERP工作中心")
|
||||||
|
private String erpWorkCenter;
|
||||||
|
|
||||||
|
@Column(name = "WORK_VER")
|
||||||
|
@ApiParam("工作版本")
|
||||||
|
private String workVer;
|
||||||
|
|
||||||
|
@Column(name = "AREA_CODE")
|
||||||
|
@ApiParam("生产区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
private List<MesWorkCell> childTreeList;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
// 默认值 -1
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="父节点" , access ="父节点" ,example = "-1")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
public MesWorkCenter(String organizeCode) {
|
||||||
|
this.organizeCode = organizeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MesWorkCenter() {
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.MesArea;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesAreaRepository extends BaseRepository<MesArea, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.MesEquipment;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesEquipmentRepository extends BaseRepository<MesEquipment, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.MesShift;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:
|
||||||
|
* @Reference:
|
||||||
|
* @Author: Crish
|
||||||
|
* @CreateDate:2019-04-19-13:53
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesShiftRepository extends BaseRepository<MesShift, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.MesWorkCell;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesWorkCellRepository extends BaseRepository<MesWorkCell, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.MesWorkCenter;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesWorkCenterRepository extends BaseRepository<MesWorkCenter, Long> {
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.mes.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
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 javax.persistence.Transient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :生产区域
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="MES_EQUIPMENT")
|
||||||
|
@Api("生产设备")
|
||||||
|
public class MesEquipment extends BaseBean {
|
||||||
|
@Column(name="EQUIPMENT_CODE")
|
||||||
|
@ApiParam("设备代码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
@Column(name="EQUIPMENT_NAME")
|
||||||
|
@ApiParam("设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
@Column(name="STATUS")
|
||||||
|
@ApiParam("设备状态")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
@Column(name="WORK_CELL_CODE")
|
||||||
|
@ApiParam("工作单元代码")
|
||||||
|
private String workCellCode;
|
||||||
|
|
||||||
|
@Column(name="WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name="AREA_CODE")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
// 默认值 -1
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="父节点" , access ="父节点" ,example = "-1")
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long parentId;
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.mes.model;
|
||||||
|
|
||||||
|
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.Entity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:
|
||||||
|
* @Reference:
|
||||||
|
* @Author: yiming.gu
|
||||||
|
* @CreateDate:2019-04-18-14:16
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api("生产区域")
|
||||||
|
public class ProdOrgModel extends BaseBean {
|
||||||
|
|
||||||
|
@ApiParam("区域名称")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@ApiParam("工作中心名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
@ApiParam("ERP工作中心")
|
||||||
|
private String erpWorkCenter;
|
||||||
|
|
||||||
|
@ApiParam("工作版本")
|
||||||
|
private String workVer;
|
||||||
|
|
||||||
|
@ApiParam("工作单元代码")
|
||||||
|
private String workCellCode;
|
||||||
|
|
||||||
|
@ApiParam("工作单元名称")
|
||||||
|
private String workCellName;
|
||||||
|
|
||||||
|
@ApiParam("设备代码")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
@ApiParam("设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
@ApiParam("设备状态")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
@ApiParam("当前级")
|
||||||
|
private Integer level;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.mes.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.MesEquipment;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesEquipmentRepository extends BaseRepository<MesEquipment, Long> {
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.andon;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AndonOpcModel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通常为localhost
|
||||||
|
*/
|
||||||
|
@ApiParam("opcserver地址-ip")
|
||||||
|
private String host;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* opcserver的名称
|
||||||
|
*/
|
||||||
|
@ApiParam("opcserver名称")
|
||||||
|
private String serverProgId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 一般为channel
|
||||||
|
*/
|
||||||
|
@ApiParam("第一层路径")
|
||||||
|
private String accessPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 一般为device.tag
|
||||||
|
*/
|
||||||
|
@ApiParam("剩余路径名称")
|
||||||
|
private String itemName;
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.andon;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AndonResultBean {
|
||||||
|
|
||||||
|
@ApiParam("是否成功")
|
||||||
|
private boolean success;
|
||||||
|
|
||||||
|
@ApiParam("处理信息")
|
||||||
|
private String msg;
|
||||||
|
|
||||||
|
@ApiParam("处理结果")
|
||||||
|
private String result;
|
||||||
|
|
||||||
|
public AndonResultBean(boolean success, String msg) {
|
||||||
|
super();
|
||||||
|
this.success = success;
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AndonResultBean(boolean success, String msg, String result) {
|
||||||
|
super();
|
||||||
|
this.success = success;
|
||||||
|
this.msg = msg;
|
||||||
|
this.result = result;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.mes;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.MesArea;
|
||||||
|
import cn.estsh.i3plus.pojo.platform.bean.SysOrganize;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class SysOrganizeModel extends SysOrganize{
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
private List<MesArea> childTreeList;
|
||||||
|
|
||||||
|
public List<MesArea> getChildTreeList() {
|
||||||
|
return childTreeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChildTreeList(List<MesArea> childTreeList) {
|
||||||
|
this.childTreeList = childTreeList;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.sweb.modelbean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 待发布订单列表发布输入模型
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.lv
|
||||||
|
* @CreateDate : 2019-05-13 13:13
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class SwebPOUpdatePublishForPublishModel extends BaseBean {
|
||||||
|
|
||||||
|
@ApiParam(value = "拆分请求时间数量列表", example = "1")
|
||||||
|
private List<String> reqTimeList;
|
||||||
|
|
||||||
|
@ApiParam(value = "列表项", example = "1")
|
||||||
|
private SwebPOForPubListResultItemModel item;
|
||||||
|
}
|
Loading…
Reference in New Issue