forked from I3-YF/i3plus-mes-yfai
停开机人员管理信息
parent
22f0600776
commit
5bbfd470d3
@ -0,0 +1,111 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.pojo.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.ColumnDefault;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangjie
|
||||||
|
* @CreateDate: 2019/7/30 9:30 AM
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name = "MES_SHIFT_PROD_CENTER_PM", indexes = {
|
||||||
|
@Index(columnList = "WORK_CENTER_CODE,SHIFT_CODE,WORK_TIME"),
|
||||||
|
@Index(columnList = "WORK_CENTER_CODE"),
|
||||||
|
@Index(columnList = "SHIFT_CODE"),
|
||||||
|
@Index(columnList = "WORK_TIME")
|
||||||
|
})
|
||||||
|
@Api("停开机班次人员记录信息表")
|
||||||
|
public class MesShiftProdCenterPm extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 3715969870273602737L;
|
||||||
|
|
||||||
|
@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 = "WORK_TIME")
|
||||||
|
@ApiParam("作业时间")
|
||||||
|
private String workTime;
|
||||||
|
|
||||||
|
@Column(name = "START_TIME")
|
||||||
|
@ApiParam("开始时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@Column(name = "END_TIME")
|
||||||
|
@ApiParam("结束时间")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
@Column(
|
||||||
|
name = "WORKER_QTY",
|
||||||
|
columnDefinition = "decimal(18,8)"
|
||||||
|
)
|
||||||
|
@ColumnDefault("0")
|
||||||
|
@ApiParam("作业人数")
|
||||||
|
private Double workerQty;
|
||||||
|
|
||||||
|
@Column(name = "MEMO")
|
||||||
|
@ApiParam("备注")
|
||||||
|
private String memo;
|
||||||
|
|
||||||
|
@Column(name = "WORK_START_TIME")
|
||||||
|
@ApiParam("作业开始时间")
|
||||||
|
private String workStartTime;
|
||||||
|
|
||||||
|
@Column(name = "WORK_END_TIME")
|
||||||
|
@ApiParam("作业结束时间")
|
||||||
|
private String workEndTime;
|
||||||
|
|
||||||
|
@Column(name = "PART_CUT_COUNT")
|
||||||
|
@ApiParam("机种切换次数")
|
||||||
|
private Integer partCutCount;
|
||||||
|
|
||||||
|
@Column(name="AT_HOME_NUM")
|
||||||
|
@ApiParam(value = "在籍人数")
|
||||||
|
@ColumnDefault("0")
|
||||||
|
public Integer atHomeNum;
|
||||||
|
|
||||||
|
@Column(name="ABSENTEEISM_NUM")
|
||||||
|
@ApiParam(value = "缺勤人数")
|
||||||
|
@ColumnDefault("0")
|
||||||
|
public Integer absenteeismNum;
|
||||||
|
|
||||||
|
@Column(name="OVERTIME_NUM")
|
||||||
|
@ApiParam(value = "加班人数")
|
||||||
|
@ColumnDefault("0")
|
||||||
|
public Integer overtimeNum;
|
||||||
|
|
||||||
|
@Column(name="NEW_WORK_NUM")
|
||||||
|
@ApiParam(value = "新上班人数")
|
||||||
|
@ColumnDefault("0")
|
||||||
|
public Integer newWorkNum;
|
||||||
|
|
||||||
|
@Column(name="QUIT_WORK_NUM")
|
||||||
|
@ApiParam(value = "退职人数")
|
||||||
|
@ColumnDefault("0")
|
||||||
|
public Integer quitWorkNum;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.pojo.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.bean.MesShiftProdCenterPm;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangjie
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2021/1/13 9:17
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesShiftProdCenterPmRepository extends BaseRepository<MesShiftProdCenterPm, Long> {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue