设备pojo新增工作中心代码,区域代码
parent
15b5edfaec
commit
68a66c67b0
@ -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,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,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;
|
||||||
|
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;
|
||||||
|
}
|
@ -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.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> {
|
||||||
|
}
|
Loading…
Reference in New Issue