平台;

yun-zuoyi
王杰 5 years ago
parent 26acc14cfe
commit 8c334d2ffd

@ -0,0 +1,54 @@
package cn.estsh.i3plus.pojo.ptl.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.io.Serializable;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : crish
* @CreateDate : 2019-08-18 11:00
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "PTL_LABEL_TEMPLATE")
@Api(value = "打印模板", description = "打印模板")
public class PtlLabelTemplate extends BaseBean implements Serializable {
private static final long serialVersionUID = 8287307324960885418L;
@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<PtlLabelTemplateParam> labelTemplateParamList;
}

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.ptl.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.*;
import java.io.Serializable;
/**
* @Description :
* @Reference :
* @Author : crish
* @CreateDate : 2019-08-18 11:00
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "PTL_LABEL_TEMPLATE_PARAM")
@Api(value = "打印模板参数", description = "打印模板参数")
public class PtlLabelTemplateParam extends BaseBean implements Serializable {
private static final long serialVersionUID = 7292367173575992422L;
@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,55 @@
package cn.estsh.i3plus.pojo.ptl.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.Lob;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Description:
* @Reference:
* @Author: crish
* @CreateDate:2019-08-23-17:20
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "PTL_PCN_SYNC_ERRORLOG")
@Api("PTL_PCN同步异常日志")
public class PtlPcnSyncErrorLog extends BaseBean implements Serializable {
private static final long serialVersionUID = -8285936568677939604L;
@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;
@Lob
@Column(name = "ERROR_CONTENT")
@ApiParam("异常内容")
private String errorContent;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlLabelTemplateParam;
/**
* @Description :
* @Reference :
* @Author : crish
* @Date : 2019-08-18 12:03:01.024
* @Modify :
**/
public interface PtlLabelTemplateParamRepository extends BaseRepository<PtlLabelTemplateParam, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlLabelTemplate;
/**
* @Description :
* @Reference :
* @Author : crish
* @Date : 2019-08-18 12:03:01.024
* @Modify :
**/
public interface PtlLabelTemplateRepository extends BaseRepository<PtlLabelTemplate, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.ptl.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.ptl.bean.PtlPcnSyncErrorLog;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: crish
* @CreateDate:2019-08-23-17:13
* @Modify:
**/
@Repository
public interface PtlPcnSyncErrorLogRepository extends BaseRepository<PtlPcnSyncErrorLog, Long> {
}
Loading…
Cancel
Save