新增安灯组织结构表(区域、产线、工位)
parent
2c55439d4a
commit
84d8fd30d2
@ -0,0 +1,44 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
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.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯区域
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name="ANDON_AREA")
|
||||||
|
@Api("安灯区域")
|
||||||
|
public class AndonArea extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 3435045294077955581L;
|
||||||
|
|
||||||
|
@Column(name="AREA_CODE")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Column(name="AREA_NAME")
|
||||||
|
@ApiParam("区域名称")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
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.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯工作单元
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name = "ANDON_WORK_CELL")
|
||||||
|
@Api("安灯工作单元")
|
||||||
|
public class AndonWorkCell extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -6782295209026659848L;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,47 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
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.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯工作中心
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name = "ANDON_WORK_CENTER")
|
||||||
|
@Api("安灯工作中心")
|
||||||
|
public class AndonWorkCenter extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -34850085202020333L;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_NAME")
|
||||||
|
@ApiParam("工作中心名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
|
||||||
|
@Column(name = "AREA_CODE")
|
||||||
|
@ApiParam("生产区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯区域
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@ApiModel("安灯区域model")
|
||||||
|
public class AndonAreaModel extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1406838542079597374L;
|
||||||
|
|
||||||
|
@Column(name="AREA_CODE")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Column(name="AREA_NAME")
|
||||||
|
@ApiParam("区域名称")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
private List<AndonWorkCenterModel> childTreeList;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public String getName(){
|
||||||
|
return areaName;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯工作单元
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@ApiModel("安灯工作单元model")
|
||||||
|
public class AndonWorkCellModel extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4513957019405532048L;
|
||||||
|
|
||||||
|
@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 ="名称")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public String getName(){
|
||||||
|
return this.workCellCode;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonWorkCell;
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯工作中心
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jack.jia
|
||||||
|
* @CreateDate : 2019-04-02
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@ApiModel("安灯工作中心model")
|
||||||
|
public class AndonWorkCenterModel extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -2737182509323706933L;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_NAME")
|
||||||
|
@ApiParam("工作中心名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
@Column(name = "AREA_CODE")
|
||||||
|
@ApiParam("生产区域代码")
|
||||||
|
private String areaCode;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="子集列表")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
private List<AndonWorkCell> childTreeList;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public String getName(){
|
||||||
|
return this.workCenterName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AndonWorkCenterModel(String organizeCode) {
|
||||||
|
this.organizeCode = organizeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonArea;
|
||||||
|
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 IAndonAreaRepository extends BaseRepository<AndonArea, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonWorkCell;
|
||||||
|
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 IAndonWorkCellRepository extends BaseRepository<AndonWorkCell, Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonWorkCenter;
|
||||||
|
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 IAndonWorkCenterRepository extends BaseRepository<AndonWorkCenter, Long> {
|
||||||
|
}
|
Loading…
Reference in New Issue