开发打印模板功能
parent
11bbe2a57d
commit
05efe333cc
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.pojo.model.platform;
|
||||
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLabelTemplate;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLabelTemplateParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板封装model
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @CreateDate : 2019-03-18 13:52
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class LabelTemplateModel {
|
||||
|
||||
private SysLabelTemplate labelTemplate;
|
||||
|
||||
private List<SysLabelTemplateParam> templateParamList;
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.platform.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;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @CreateDate : 2019-03-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="SYS_LABELTEMPLATE")
|
||||
@Api(value="打印模板",description = "打印模板")
|
||||
public class SysLabelTemplate extends BaseBean {
|
||||
|
||||
@Column(name="TEMPLATECODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name="TEMPLATENAME")
|
||||
@ApiParam(value ="模板名称")
|
||||
private String templateName;
|
||||
|
||||
@Column(name="TEMPLATECONTENT", columnDefinition = "TEXT")
|
||||
@ApiParam(value ="模板内容")
|
||||
private String templateContent;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value ="模板参数拼接")
|
||||
@Transient
|
||||
private String paramsPack;
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package cn.estsh.i3plus.pojo.platform.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.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板参数
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @CreateDate : 2019-03-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="SYS_LABELTEMPLATEPARAM")
|
||||
@Api(value="打印模板参数",description = "打印模板参数")
|
||||
public class SysLabelTemplateParam extends BaseBean {
|
||||
|
||||
@Column(name="TEMPLATEID")
|
||||
@ApiParam(value ="模板ID" , access ="模板ID" ,example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
@Column(name="TEMPLATECODE")
|
||||
@ApiParam(value ="模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name="TEMPLATEPARAM")
|
||||
@ApiParam(value ="模板参数")
|
||||
private String templateParam;
|
||||
|
||||
@Column(name="TEMPLATEPARAMTEXT", columnDefinition = "TEXT")
|
||||
@ApiParam(value ="模板参数描述")
|
||||
private String templateParamText;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value ="模板参数值")
|
||||
@Transient
|
||||
private String templateParamValue;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLabelTemplateParam;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-03-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
public interface SysLabelTemplateParamRepository extends BaseRepository<SysLabelTemplateParam, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.platform.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLabelTemplate;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-03-18 12:03:01.024
|
||||
* @Modify :
|
||||
**/
|
||||
public interface SysLabelTemplateRepository extends BaseRepository<SysLabelTemplate, Long> {
|
||||
}
|
Loading…
Reference in New Issue