From b3e0a4fc73dc06150db3689fe58c05b360f3a6c0 Mon Sep 17 00:00:00 2001 From: panbaolin <123456> Date: Wed, 11 Oct 2023 16:26:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:1.=E6=8F=90=E4=BA=A4=E6=97=A5=E5=BF=97/?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=8A=BD=E8=B1=A1=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/abstracts/AbstractLogOrReport.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/abstracts/AbstractLogOrReport.java diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/abstracts/AbstractLogOrReport.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/abstracts/AbstractLogOrReport.java new file mode 100644 index 00000000..a30176d5 --- /dev/null +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/abstracts/AbstractLogOrReport.java @@ -0,0 +1,42 @@ +package org.jeecg.modules.base.abstracts; + +/** + * 日志/报告格式化抽象类 + */ +public abstract class AbstractLogOrReport { + + /** + * 行日志格式化 + * @param source 需要格式化的字符串 + * @param symbolNum 格式化的符号数量 + * @param args 格式化替换参数数组 + * @return + */ + public String titleFormat(String source, Integer symbolNum, String... args){ + StringBuilder firstParam = new StringBuilder(); + for (int i=0;i