From 5bbfd470d3f31eefa42e645a66cca764945ce35e Mon Sep 17 00:00:00 2001 From: "jhforever.wang@estsh.com" Date: Mon, 11 Dec 2023 17:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E5=BC=80=E6=9C=BA=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ext/mes/pojo/bean/MesShiftProdCenterPm.java | 111 +++++++++++++++++++++ .../repository/MesShiftProdCenterPmRepository.java | 15 +++ 2 files changed, 126 insertions(+) create mode 100644 modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/bean/MesShiftProdCenterPm.java create mode 100644 modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/repository/MesShiftProdCenterPmRepository.java diff --git a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/bean/MesShiftProdCenterPm.java b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/bean/MesShiftProdCenterPm.java new file mode 100644 index 0000000..e9a5213 --- /dev/null +++ b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/bean/MesShiftProdCenterPm.java @@ -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; + +} diff --git a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/repository/MesShiftProdCenterPmRepository.java b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/repository/MesShiftProdCenterPmRepository.java new file mode 100644 index 0000000..2fd02d3 --- /dev/null +++ b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/repository/MesShiftProdCenterPmRepository.java @@ -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 { + +}