forked from I3-YF/i3plus-mes-yfai
上线工位
parent
fc1696aa39
commit
853fcb9e67
@ -0,0 +1,63 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.pojo.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtEnumUtil;
|
||||||
|
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.ColumnDefault;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Index;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:
|
||||||
|
* @Author: xinwang.yi
|
||||||
|
* @Date: 2023/10/12 14:03
|
||||||
|
* @Modify:
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name = "MES_MANAGE_CODE", indexes = {
|
||||||
|
@Index(columnList = "MANAGE_CODE"),
|
||||||
|
@Index(columnList = "WORK_CENTER_CODE"),
|
||||||
|
@Index(columnList = "MANAGE_CODE,WORK_CENTER_CODE"),
|
||||||
|
})
|
||||||
|
@Api("MES_管理码主表")
|
||||||
|
public class MesManageCode extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -249096410002817786L;
|
||||||
|
|
||||||
|
@Column(name = "MANAGE_CODE")
|
||||||
|
@ApiParam(value = "管理编码")
|
||||||
|
private String manageCode;
|
||||||
|
|
||||||
|
@Column(name = "MANAGE_NAME")
|
||||||
|
@ApiParam("管理编码名称")
|
||||||
|
private String shiftCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam("产线代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_NAME")
|
||||||
|
@ApiParam("产线名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
@Column(name = "USE_STATUS")
|
||||||
|
@ColumnDefault("10")
|
||||||
|
@ApiParam("使用状态")
|
||||||
|
@AnnoOutputColumn(refClass = MesExtEnumUtil.MANAGE_USE_STATUS.class, refForeignKey = "value", value = "description")
|
||||||
|
private Integer useStatus;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.pojo.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.bean.MesManageCode;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author xinwang.yi
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2023/10/12 9:17
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesManageCodeRepository extends BaseRepository<MesManageCode, Long> {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue