| @@ -47,6 +47,11 @@ import org.springframework.web.bind.annotation.RequestBody; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | import org.springframework.web.bind.annotation.RestController; | ||||
| /** | |||||
| * https://www.lodop.net/index.html | |||||
| https://github.com/myliuxia/kr-print-designer?tab=readme-ov-file | |||||
| * @author Administrator | |||||
| */ | |||||
| @RestController | @RestController | ||||
| @RequestMapping("print") | @RequestMapping("print") | ||||
| public class WxFinancePrintController extends BaseController { | public class WxFinancePrintController extends BaseController { | ||||
| @@ -0,0 +1,29 @@ | |||||
| package com.iformall.domain.vo.print; | |||||
| import lombok.Data; | |||||
| import java.io.Serializable; | |||||
| import java.util.List; | |||||
| @Data | |||||
| public class PrintDataBraidTable implements Serializable { | |||||
| private static final long serialVersionUID = 1L; | |||||
| //模板类型 braid-txt / braid-table / braid-html / braid-image / bar-code | |||||
| private String type="braid-table"; | |||||
| //是否可编辑 | |||||
| private Integer isEdit; | |||||
| //打印项名称 | |||||
| private String title; | |||||
| //动态打印项数据名称(对应打印数据 key-name) | |||||
| private String name; | |||||
| //打印项内容 | |||||
| private String value; | |||||
| //打印项默认内容 | |||||
| private List<Object> defaultValue; | |||||
| private String tabelHtml; | |||||
| //表格列 | |||||
| private List<PrintDataBraidTableColumns> columnsAttr; | |||||
| //LODOP 默认打印项样式 | |||||
| //private lodopStyle; | |||||
| } | |||||
| @@ -0,0 +1,15 @@ | |||||
| package com.iformall.domain.vo.print; | |||||
| import lombok.Data; | |||||
| import java.io.Serializable; | |||||
| import java.util.List; | |||||
| @Data | |||||
| public class PrintDataBraidTableColumns implements Serializable { | |||||
| private static final long serialVersionUID = 1L; | |||||
| private String title; | |||||
| private String value; | |||||
| private String name; | |||||
| private PrintDataBraidTableColumnsTrSet trSet; | |||||
| } | |||||
| @@ -0,0 +1,14 @@ | |||||
| package com.iformall.domain.vo.print; | |||||
| import lombok.Data; | |||||
| import java.io.Serializable; | |||||
| import java.util.List; | |||||
| @Data | |||||
| public class PrintDataBraidTableColumnsTrSet implements Serializable { | |||||
| private static final long serialVersionUID = 1L; | |||||
| private String title; | |||||
| private Integer col; | |||||
| private String margin; | |||||
| } | |||||
| @@ -0,0 +1,39 @@ | |||||
| package com.iformall.domain.vo.print; | |||||
| import lombok.Data; | |||||
| import java.io.Serializable; | |||||
| @Data | |||||
| public class PrintDataBraidTxt implements Serializable { | |||||
| private static final long serialVersionUID = 1L; | |||||
| //模板类型 braid-txt / braid-table / braid-html / braid-image / bar-code | |||||
| private String type="braid-txt"; | |||||
| //是否可编辑 | |||||
| private Integer isEdit; | |||||
| //打印项名称 | |||||
| private String title; | |||||
| //动态打印项数据名称(对应打印数据 key-name) | |||||
| private String name; | |||||
| //打印项内容 | |||||
| private String value; | |||||
| //打印项默认内容 | |||||
| private String defaultValue; | |||||
| // //是否可拖拽 | |||||
| // private Boolean dragable; | |||||
| // //尺寸是否可变 | |||||
| // private Boolean resizable; | |||||
| // //打印项宽度(px) | |||||
| // private BigDecimal width; | |||||
| // //打印项高度(px) | |||||
| // private BigDecimal height; | |||||
| // //左偏移量(px) | |||||
| // private BigDecimal left; | |||||
| // //上偏移量(px) | |||||
| // private BigDecimal top; | |||||
| //LODOP 默认打印项样式 | |||||
| //private lodopStyle; | |||||
| } | |||||
| @@ -14,7 +14,7 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`is_del`,`type`,`name`,`price`,`content` | |||||
| `id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`is_del`,`type`,`name`,`content` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||