z-tool

Java and spring utilities

License

License

GroupId

GroupId

com.github.happyjiahui
ArtifactId

ArtifactId

z-tool
Last Version

Last Version

0.1.29
Release Date

Release Date

Type

Type

pom
Description

Description

z-tool
Java and spring utilities
Project URL

Project URL

https://github.com/happyjiahui/z-tool
Source Code Management

Source Code Management

https://github.com/happyjiahui/z-tool

Download z-tool

Filename Size
z-tool-0.1.29.pom 11 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.happyjiahui/z-tool/ -->
<dependency>
    <groupId>com.github.happyjiahui</groupId>
    <artifactId>z-tool</artifactId>
    <version>0.1.29</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.happyjiahui/z-tool/
implementation 'com.github.happyjiahui:z-tool:0.1.29'
// https://jarcasting.com/artifacts/com.github.happyjiahui/z-tool/
implementation ("com.github.happyjiahui:z-tool:0.1.29")
'com.github.happyjiahui:z-tool:pom:0.1.29'
<dependency org="com.github.happyjiahui" name="z-tool" rev="0.1.29">
  <artifact name="z-tool" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.happyjiahui', module='z-tool', version='0.1.29')
)
libraryDependencies += "com.github.happyjiahui" % "z-tool" % "0.1.29"
[com.github.happyjiahui/z-tool "0.1.29"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • z-core
  • z-web

z-tool

  • fillExcelByTemplate 使用说明:

    excel模板分为两部分:

    1. 需要全局替换的字符串,在excel模板中用 $key$ 表示,直接在单元格中声明模板;

      例如: 公司周报 $startDate$ -- $endDate$ 编写人: $username$

    2. 表格数据,需先在excel定义模板行,模板的信息用json表示,在单元格的批注声明,并需要模板行定义好格式,数据会按照模板行单元格指定的格式进行填充,注意模板行的首列必须声明,如没有声明则不认为这行为模板行,一个excel可以声明多个模板行;

      模板的json信息格式如下:

      /**
       * 数据标识
       */
      private String dataFlag;
      /**
       * 字段名称
       */
      private String fieldName;
      /**
       * 合并字段名称
       */
      private String mergedFieldName;
      /**
       * 后并后是否需要合计
       */
      private boolean sum;
      /**
       * 合并后是否需要重新编号
       */
      private boolean autoNumber;

Versions

Version
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.4
0.1.1
0.1