Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
cce413945d
@ -0,0 +1,46 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 按照安灯类型统计分组统计当天发生的安灯总次数和安灯超时次数 model
|
||||||
|
* @Reference:
|
||||||
|
* @Author: Crish
|
||||||
|
* @CreateDate:2019-11-12-10:21
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class AndonBoardModel {
|
||||||
|
|
||||||
|
@ApiParam("安灯类型")
|
||||||
|
private String alarmCode;
|
||||||
|
|
||||||
|
@ApiParam("安灯类型名称")
|
||||||
|
private String alarmName;
|
||||||
|
|
||||||
|
@ApiParam("安灯正常处理的次数")
|
||||||
|
private Integer inTime;
|
||||||
|
|
||||||
|
@ApiParam("安灯超时次数")
|
||||||
|
private Integer overTime;
|
||||||
|
|
||||||
|
@ApiParam("安灯总次数")
|
||||||
|
private Integer totalTime;
|
||||||
|
|
||||||
|
public int getTotalTimeVal() {
|
||||||
|
return totalTime == null ? 0 : totalTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getOverTimeVal() {
|
||||||
|
return overTime == null ? 0 : overTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getInTime() {
|
||||||
|
return inTime == null ? 0 : inTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.mes.pcn.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.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :mes客户表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : yiming.gu
|
||||||
|
* @CreateDate : 2019-05-20
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name = "MES_CUSTOMER_PART")
|
||||||
|
@Api("客户零件关系")
|
||||||
|
public class MesCustomerPart extends BaseBean {
|
||||||
|
@Column(name = "CUSTOMER_CODE")
|
||||||
|
@ApiParam("客户代码")
|
||||||
|
private String customerCode;
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam("物料号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
@Column(name = "CUSTOMER_PART_NO")
|
||||||
|
@ApiParam("客户零件号")
|
||||||
|
private String customerPartNo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesCustomerPart;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:
|
||||||
|
* @Reference:
|
||||||
|
* @Author: yiming.gu
|
||||||
|
* @CreateDate:2019-05-20
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface MesCustomerPartRepository extends BaseRepository<MesCustomerPart, Long> {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue