parent
0bc9f2e9bc
commit
12a2a27b18
@ -1,17 +1,14 @@
|
||||
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.MesArea;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesLabelTemplateParam;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @Date : 2019-08-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
@Repository
|
||||
public interface MesLabelTemplateParamRepository extends BaseRepository<MesLabelTemplateParam, Long> {
|
||||
}
|
||||
|
@ -1,17 +1,14 @@
|
||||
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.MesArea;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesLabelTemplate;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @Date : 2019-08-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
@Repository
|
||||
public interface MesLabelTemplateRepository extends BaseRepository<MesLabelTemplate, Long> {
|
||||
}
|
||||
|
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.mes.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.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_LABEL_TEMPLATE")
|
||||
@Api(value="打印模板",description = "打印模板")
|
||||
public class MesLabelTemplate extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 5371856566557305323L;
|
||||
@Column(name="TEMPLATE_CODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name="TEMPLATE_NAME")
|
||||
@ApiParam(value ="模板名称")
|
||||
private String templateName;
|
||||
|
||||
@Lob
|
||||
@Column(name="TEMPLATE_CONTENT")
|
||||
@ApiParam(value ="模板内容")
|
||||
private String templateContent;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value ="模板参数拼接")
|
||||
@Transient
|
||||
private String paramsPack;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value ="模板id对应的模板参数")
|
||||
private List<MesLabelTemplateParam> labelTemplateParamList;
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板参数
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_LABEL_TEMPLATE_PARAM")
|
||||
@Api(value="打印模板参数",description = "打印模板参数")
|
||||
public class MesLabelTemplateParam extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 6476163540527157643L;
|
||||
@Column(name="TEMPLATE_ID")
|
||||
@ApiParam(value ="模板ID" , access ="模板ID" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
@Column(name="TEMPLATE_CODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name="TEMPLATE_PARAM")
|
||||
@ApiParam(value ="模板参数")
|
||||
private String templateParam;
|
||||
|
||||
@Lob
|
||||
@Column(name="TEMPLATE_PARAM_TEXT")
|
||||
@ApiParam(value ="模板参数描述")
|
||||
private String templateParamText;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value ="模板参数值")
|
||||
@Transient
|
||||
private String templateParamValue;
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.mes.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:
|
||||
* @Reference:
|
||||
* @Author: crish
|
||||
* @CreateDate:2019-08-23-17:20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="MES_PCN_SYNC_ERRORLOG")
|
||||
@Api("MES_PCN同步异常日志")
|
||||
public class MesPcnSyncErrorLog extends BaseBean {
|
||||
@Column(name="PCN_CODE")
|
||||
@ApiParam("PCN代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name="OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name="OBJECT_NAME")
|
||||
@ApiParam("对象名称")
|
||||
private String objectName;
|
||||
|
||||
@Column(name="ERROR_SPOT")
|
||||
@ApiParam("异常位置")
|
||||
private String errorSpot;
|
||||
|
||||
@Column(name="ERROR_CONTENT")
|
||||
@ApiParam("异常内容")
|
||||
private String errorContent;
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
/**
|
||||
* @Description: PCN连接状态统计Model
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-08-07-14:56
|
||||
* @Modify:
|
||||
**/
|
||||
public class MesPcnStatusModel {
|
||||
|
||||
private int healthNodeNumber;
|
||||
|
||||
private int illNodeNumber;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplateParam;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @Date : 2019-08-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
public interface MesLabelTemplateParamRepository extends BaseRepository<MesLabelTemplateParam, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesLabelTemplate;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @Date : 2019-08-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
public interface MesLabelTemplateRepository extends BaseRepository<MesLabelTemplate, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPcnSyncErrorLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: crish
|
||||
* @CreateDate:2019-08-23-17:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesPcnSyncErrorLogRepository extends BaseRepository<MesPcnSyncErrorLog, Long> {
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.model.platform;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description: 获取打印模板和打印模板参数表的所有信息
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-08-23-11:38
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
class LabelTemplateAndParamModel implements Serializable {
|
||||
private static final long serialVersionUID = -3612131411549787983L;
|
||||
}
|
Loading…
Reference in New Issue