From 3b7b374b23b84feacbdc444d31b0b13a984d92cf Mon Sep 17 00:00:00 2001
From: "wei.peng" <123456>
Date: Fri, 27 Dec 2019 19:55:04 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E6=8A=A5=E8=A1=A8=E5=AF=B9?=
=?UTF-8?q?=E8=B1=A1=E6=A8=A1=E5=9E=8B=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pojo/base/enumutil/BlockFormEnumUtil.java | 443 --------------------
.../pojo/base/enumutil/BlockReportEnumUtil.java | 295 +++++++++++---
.../i3plus/pojo/base/enumutil/CommonEnumUtil.java | 453 +++++++++++++++++++++
.../pojo/lac/bean/LacCommandStackRecord.java | 5 +
.../cn/estsh/i3plus/pojo/lac/bean/LacLogTask.java | 5 +
.../i3plus/pojo/model/common/ClassFieldModel.java | 13 +-
.../i3plus/pojo/model/form/SqlColumnModel.java | 3 +-
.../pojo/model/report/BeanBrPojoAttrModel.java | 70 ++--
.../pojo/model/report/BrDataSourceModel.java | 47 +++
.../i3plus/pojo/model/report/TemplateModel.java | 78 +++-
.../pojo/platform/platbean/SysLogException.java | 2 +-
.../pojo/platform/platbean/SysLogSystem.java | 1 +
.../estsh/i3plus/pojo/report/bean/BrElement.java | 3 -
.../cn/estsh/i3plus/pojo/report/bean/BrLayout.java | 12 +-
.../i3plus/pojo/report/bean/BrLayoutColumn.java | 10 +-
.../estsh/i3plus/pojo/report/bean/BrLayoutRow.java | 8 +-
.../cn/estsh/i3plus/pojo/report/bean/BrPojo.java | 137 +++++++
.../i3plus/pojo/report/bean/BrPojoFilter.java | 46 +++
.../i3plus/pojo/report/bean/BrPojoFilterAttr.java | 129 ++++++
.../estsh/i3plus/pojo/report/bean/BrPojoView.java | 79 ++++
.../i3plus/pojo/report/bean/BrPojoViewAttr.java | 112 +++++
.../estsh/i3plus/pojo/report/bean/BrRefPojo.java | 154 +++----
.../pojo/report/bean/BrRefReportTypeset.java | 15 +-
.../i3plus/pojo/report/bean/BrRefServerPojo.java | 230 +++++------
.../pojo/report/bean/BrRefTemplateServer.java | 100 ++---
.../cn/estsh/i3plus/pojo/report/bean/BrReport.java | 2 -
.../i3plus/pojo/report/bean/BrReportTemplate.java | 112 ++---
.../estsh/i3plus/pojo/report/bean/BrTemplate.java | 330 +++++++--------
.../pojo/report/bean/BrTemplateCustomHql.java | 98 ++---
.../repository/BrLayoutColumnRepository.java | 1 -
.../repository/BrPojoFilterAttrRepository.java | 15 +
.../report/repository/BrPojoFilterRepository.java | 15 +
.../pojo/report/repository/BrPojoRepository.java | 15 +
.../repository/BrPojoViewAttrRepository.java | 14 +
.../report/repository/BrPojoViewRepository.java | 14 +
.../report/repository/BrRefPojoRepository.java | 30 +-
.../repository/BrRefServerPojoRepository.java | 30 +-
.../repository/BrRefTemplateServerRepository.java | 30 +-
.../repository/BrReportTemplateRepository.java | 28 +-
.../repository/BrTemplateCustomHqlRepository.java | 30 +-
.../report/repository/BrTemplateRepository.java | 28 +-
.../i3plus/pojo/report/sqlpack/ReportHqlPack.java | 94 +++--
42 files changed, 2140 insertions(+), 1196 deletions(-)
create mode 100644 modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BrDataSourceModel.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/bean/BrPojo.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/bean/BrPojoFilter.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/bean/BrPojoFilterAttr.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/bean/BrPojoView.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/bean/BrPojoViewAttr.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/repository/BrPojoFilterAttrRepository.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/repository/BrPojoFilterRepository.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/repository/BrPojoRepository.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/repository/BrPojoViewAttrRepository.java
create mode 100644 modules/i3plus-pojo-report/src/main/java/cn/estsh/i3plus/pojo/report/repository/BrPojoViewRepository.java
diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockFormEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockFormEnumUtil.java
index e19e6e5..2beae15 100644
--- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockFormEnumUtil.java
+++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockFormEnumUtil.java
@@ -2071,447 +2071,4 @@ public class BlockFormEnumUtil {
}
}
- /**
- * 元素控件类型信息
- */
- @JsonFormat(shape = JsonFormat.Shape.OBJECT)
- public enum PROPERTY_CONTROL_TYPE {
- RADIO(100, "RADIO", "单选"),
- CHECKBOX(110, "CHECKBOX", "复选"),
- TEXT(200, "TEXT", "文本"),
- NUMBER(210, "NUMBER", "数字"),
- PASSWORD(230, "PASSWORD", "密码"),
- DATE_TIME(300, "DATE", "日期",SQL_WHERE.BETWEEN),
- // DATE(300, "DATE", "日期(yyyy-MM-dd)"),
-// DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"),
- // ELEMENT(700, "DICT_SELECT", "元素"),
- DICTIONARY(800, "DICT_SELECT", "字典"),
- CASCADE(900, "CASCADE", "级联");
- //FILE(400, "file", "文件"),
- //IMAGE(410, "image", "image"),
- //OFF(500, "color", "颜色"),
-
- private int value;
- private String code;
- private String description;
-
- /**
- * 默认查询关系
- */
- private SQL_WHERE defaultWhere;
-
- PROPERTY_CONTROL_TYPE(int value, String code, String description) {
- this.value = value;
- this.code = code;
- this.description = description;
- }
-
- PROPERTY_CONTROL_TYPE(int value, String code, String description, SQL_WHERE defaultWhere) {
- this.value = value;
- this.code = code;
- this.description = description;
- this.defaultWhere = defaultWhere;
- }
-
- public int getValue() {
- return value;
- }
-
- public String getCode() {
- return code;
- }
-
- public String getDescription() {
- return description;
- }
-
- public SQL_WHERE getDefaultWhere() {
- return defaultWhere;
- }
-
- public static String valueOfCode(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].code;
- }
- }
- return tmp;
- }
-
- public static int codeOfValue(String code) {
- int tmp = 1;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code)) {
- tmp = values()[i].value;
- }
- }
- return tmp;
- }
-
- public static String valueOfDescription(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
-
- public static PROPERTY_CONTROL_TYPE valueOf(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- return values()[i];
- }
- }
- return null;
- }
-
- public static String codeOfDescription(String code) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code)) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
- }
-
- /**
- * 条件运算符
- */
- @JsonFormat(shape = JsonFormat.Shape.OBJECT)
- public enum SQL_WHERE {
- EQUAL(1, "=", "等于"),
- NOT_EQUAL(2, "<>", "不等于"),
- MORE(3, ">", "大于"),
- LESS(4, "<", "小于"),
- MORE_OR_EQUAL(5, ">=", "大于等于"),
- LESS_OR_EQUAL (6, "<=", "小于等于"),
- LIKE(7, "LIKE", "全模糊"),
- START_LIKE(7, "LIKE", "前模糊"),
- END_LIKE(7, "LIKE", "后模糊"),
- IN(8, "in", "in"),
- BETWEEN(9, "BETWEEN", "区间查询(逗号区分)"),;
-
- private int value;
- private String code;
- private String description;
-
- private SQL_WHERE(int value, String code, String description) {
- this.value = value;
- this.code = code;
- this.description = description;
- }
-
- public int getValue() {
- return value;
- }
-
- public String getCode() {
- return code;
- }
-
- public String getDescription() {
- return description;
- }
-
- public static String valueOfCode(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].code;
- }
- }
- return tmp;
- }
-
- public static int codeOfValue(String code) {
- int tmp = 1;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code.toLowerCase())) {
- tmp = values()[i].value;
- }
- }
- return tmp;
- }
-
- public static String valueOfDescription(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
-
- public static SQL_WHERE valueOf(int val) {
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- return values()[i];
- }
- }
- return null;
- }
-
- public static String codeOfDescription(String code) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code)) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
- }
-
- /**
- * 属性类型信息(属性转换器)
- *
- *
Form 核心转换器
- *
数据库字段类型转换Java 属性类型
- *
Java 属性 转换为控件类型
- *
- */
- @JsonFormat(shape = JsonFormat.Shape.OBJECT)
- public enum PROPERTY_TYPE {
- STRING(10, "String", "字符串", "java.lang.String", String.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.LIKE,""),
- CHAR(11, "Character", "单字符", "java.lang.Character", Character.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,""),
- INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
- LONG(21, "Long", "长整型", "java.lang.Long", Long.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0"),
- DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
- FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
- BIG_DECIMAL(32, "BigDecimal", "大浮点型", "java.math.BigDecimal", BigDecimal.class,PROPERTY_CONTROL_TYPE.NUMBER,SQL_WHERE.EQUAL,"0.0"),
- BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class,PROPERTY_CONTROL_TYPE.RADIO,SQL_WHERE.EQUAL,null),
- BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class,PROPERTY_CONTROL_TYPE.TEXT,SQL_WHERE.EQUAL,null),
- DATE_TIME(12, "String", "日期时分秒", "java.sql.Timestamp", String.class,PROPERTY_CONTROL_TYPE.DATE_TIME,SQL_WHERE.BETWEEN,null,"yyyy-MM-dd hh:mm:ss");
-
- /**
- * 属性类型值
- */
- private int value;
- /**
- * 属性类型代码
- */
- private String code;
- /**
- * 属性类型描述
- */
- private String description;
- /**
- * 属性类型ClassPath
- */
- private String classPath;
- /**
- * 属性类型 Class
- */
- private Class clzFullName;
- /**
- * 属性类型 对应的 控件类型
- */
- private PROPERTY_CONTROL_TYPE controlType;
-
- /**
- * 默认查询关系
- */
- private SQL_WHERE defaultWhere;
-
- /**
- * 默认 格式化 方式
- */
- private String defaultFormat;
-
- /**
- * 默认查询关系
- */
- private String defaultValue;
-
- private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
- PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere) {
- this.value = value;
- this.code = code;
- this.description = description;
- this.classPath = classPath;
- this.clzFullName = clzFullName;
- this.controlType = controlType;
- this.defaultWhere = defaultWhere;
- }
-
- private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
- PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) {
- this.value = value;
- this.code = code;
- this.description = description;
- this.classPath = classPath;
- this.clzFullName = clzFullName;
- this.controlType = controlType;
- this.defaultWhere = defaultWhere;
- this.defaultValue = defaultValue;
- this.defaultFormat = defaultFormat;
- }
-
- private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
- PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue,String defaultFormat) {
- this.value = value;
- this.code = code;
- this.description = description;
- this.classPath = classPath;
- this.clzFullName = clzFullName;
- this.controlType = controlType;
- this.defaultWhere = defaultWhere;
- this.defaultValue = defaultValue;
- this.defaultFormat = defaultFormat;
- }
-
- public int getValue() {
- return value;
- }
-
- public String getCode() {
- return code;
- }
-
- public String getDescription() {
- return description;
- }
-
- public String getClassPath() {
- return classPath;
- }
-
- public Class getClzFullName() {
- return clzFullName;
- }
-
- public PROPERTY_CONTROL_TYPE getControlType() {
- return controlType;
- }
-
- public SQL_WHERE getDefaultWhere() {
- return defaultWhere;
- }
-
- public String getDefaultFormat() {
- return defaultFormat;
- }
-
- public String getDefaultValue() {
- return defaultValue;
- }
-
- public static String valueOfCode(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].code;
- }
- }
- return tmp;
- }
-
- public static PROPERTY_TYPE valueOfClzFullName(int val) {
- PROPERTY_TYPE tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i];
- }
- }
- return tmp;
- }
-
-
- public static PROPERTY_CONTROL_TYPE valueOfControlType(int val) {
- PROPERTY_CONTROL_TYPE tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].controlType;
- }
- }
- return tmp;
- }
-
- public static int codeOfValue(String code) {
- int tmp = 1;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code)) {
- tmp = values()[i].value;
- }
- }
- return tmp;
- }
-
- public static int codeOfClzFullName(Class clzFullName) {
- int tmp = 1;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].clzFullName.equals(clzFullName)) {
- tmp = values()[i].value;
- }
- }
- return tmp;
- }
-
- public static int codeOfClassPath(String classPath) {
- int tmp = 1;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].classPath.equals(classPath)) {
- tmp = values()[i].value;
- }
- }
- return tmp;
- }
-
- public static String valueOfDescription(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
-
- public static PROPERTY_TYPE valueOfClassPath(String classPath) {
- PROPERTY_TYPE tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].classPath.equals(classPath)) {
- tmp = values()[i];
- }
- }
- return tmp;
- }
-
- public static PROPERTY_TYPE valueOf(int val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].value == val) {
- return values()[i];
- }
- }
- return null;
- }
-
- public static PROPERTY_TYPE indexOf(String val) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (val.indexOf(values()[i].value) >= 0) {
- return values()[i];
- }
- }
- return null;
- }
-
- public static String codeOfDescription(String code) {
- String tmp = null;
- for (int i = 0; i < values().length; i++) {
- if (values()[i].code.equals(code)) {
- tmp = values()[i].description;
- }
- }
- return tmp;
- }
- }
}
diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockReportEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockReportEnumUtil.java
index 6a9c5f6..a39c5d4 100644
--- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockReportEnumUtil.java
+++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/BlockReportEnumUtil.java
@@ -55,7 +55,6 @@ public class BlockReportEnumUtil {
}
-
/**
* 报表布局枚举
* TABLE(1,"表格"),CHART(2,"图表");
@@ -95,8 +94,6 @@ public class BlockReportEnumUtil {
}
}
-
-
/**
* 功能级别
*/
@@ -277,7 +274,6 @@ public class BlockReportEnumUtil {
}
}
-
/**
* 数据状态
* 1 启用
@@ -446,20 +442,21 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_WHERE{
- GT(1, ">", "大于"),
- GT_EQUAL(2, ">=", "大于等于"),
- LT(3, "<", "小于等于"),
- LT_EQUAL(4, "<=", "小于等于"),
- LIKE(5, "LIKE", "模糊"),
- LIKE_LEFT(6, "LIKE", "左模糊"),
- LIKE_RIGHT(7, "LIKE", "右模糊"),
- EQUAL(8, "=", "等于"),
- EQUAL_NOT(9, "<>", "不等于"),
-// AND(10, "AND", "AND"),
-// OR(11, "OR", "OR"),
-// NOT(12, "NOT", "NOT"),
- IS_NULL(13, "IS NULL", "IS NULL"),
- IS_NOT_NULL(14, "IS NOT NULL", "IS NOT NULL");
+ GT(1, " > ", "大于"),
+ GT_EQUAL(2, " >= ", "大于等于"),
+ LT(3, " < ", "小于等于"),
+ LT_EQUAL(4, " <= ", "小于等于"),
+ LIKE(5, " LIKE ", "模糊"),
+ LIKE_LEFT(6, " LIKE ", "左模糊"),
+ LIKE_RIGHT(7, " LIKE ", "右模糊"),
+ EQUAL(8, " = ", "等于"),
+ EQUAL_NOT(9, " <> ", "不等于"),
+// AND(10, " AND ", "AND"),
+// OR(11, " OR ", "OR"),
+// NOT(12, " NOT ", "NOT"),
+ IN(8, " IN ", "IN"),
+ IS_NULL(13, " IS NULL ", "IS NULL"),
+ IS_NOT_NULL(14, " IS NOT NULL ", "IS NOT NULL");
private int value;
private String name;
@@ -495,6 +492,74 @@ public class BlockReportEnumUtil {
return null;
}
+ public static String valueOfDescription(int val) {
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i].getDescription();
+ }
+ }
+ return null;
+ }
+
+ public static int descOf(String desc) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].name.equals(desc)) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+ }
+
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum HQL_WHERE_REF{
+ AND(10, " AND ", "AND"),
+ OR(11, " OR ", "OR");
+
+ private int value;
+ private String name;
+ private String description;
+
+ HQL_WHERE_REF() {
+ }
+
+ HQL_WHERE_REF(int value, String name, String description) {
+ this.value = value;
+ this.name = name;
+ this.description = description;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public static HQL_WHERE_REF valueOf(int val) {
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
+ public static String valueOfDescription(int val) {
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i].getDescription();
+ }
+ }
+ return null;
+ }
+
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@@ -511,9 +576,9 @@ public class BlockReportEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_REF{
- LEFT_JOIN(1, "left join", "左连接"),
- RIGHT_JOIN(2, "right join", "右连接"),
- INNER_JOIN(3, "inner join", "内连接");
+ LEFT_JOIN(1, " LEFT JOIN ", "左连接"),
+ RIGHT_JOIN(2, " RIGHT JOIN ", "右连接"),
+ INNER_JOIN(3, " INNER JOIN ", "内连接");
private int value;
private String name;
@@ -550,6 +615,16 @@ public class BlockReportEnumUtil {
return null;
}
+ public static String valueOfDescription(int val) {
+ HQL_REF tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i].getDescription();
+ }
+ }
+ return null;
+ }
+
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@@ -567,11 +642,11 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_AGGREGATION{
- AVG(1, "avg", "平均值"),
- MIN(2, "min", "最小值"),
- MAX(3, "max", "最大值"),
- SUM(4, "sum", "总和"),
- COUNT(5, "count", "计数");
+ AVG(1, "AVG", "平均值"),
+ MIN(2, "MIN", "最小值"),
+ MAX(3, "MAX", "最大值"),
+ SUM(4, "SUM", "总和"),
+ COUNT(5, "COUNT", "计数");
private int value;
private String name;
@@ -632,11 +707,11 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HQL_ATTR_DATA_TYPE{
-
SHOW(1, "show", "显示"),
WHERE(2, "where", "查询"),
GROUP(3, "group", "分组"),
- AGGREGATION(4, "聚合", "聚合");
+ AGGREGATION(4, "聚合", "聚合"),
+ ORDER(5, "order", "排序");
private int value;
private String name;
@@ -684,6 +759,17 @@ public class BlockReportEnumUtil {
return null;
}
+ public static String valueOfDescription(Integer val) {
+ if(val != null){
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val.intValue()) {
+ return values()[i].description;
+ }
+ }
+ }
+ return null;
+ }
+
public static int descOf(String desc) {
int tmp = 1;
@@ -697,22 +783,62 @@ public class BlockReportEnumUtil {
}
/**
- * 表单聚合
+ * 报表排版枚举
+ * ELEMENT(1,"元素"),TEMPLATE(2,"模板");
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
- public enum HQL_ORDER{
+ public enum REPORT_TYPESET_TYPE{
+
+ ELEMENT(1,"元素"),TEMPLATE(2,"模板");
+
+ private int value;
+ private String description;
+
+ REPORT_TYPESET_TYPE() {
+ }
+
+ REPORT_TYPESET_TYPE(int value, String description) {
+ this.value = value;
+ this.description = description;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public static String valueOfDescription(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+
+ }
- ASC(1, "ASC", "升序"),
- DESC(2, "DESC", "降序");
+
+ /**
+ * Echarts Pie
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum VIEW_ECHARTS_PIE_OPTION{
+ OPTION_NAME(1,"ECHARTS_PIE_NAME","显示名称"),
+ OPTION_VALUE(2,"ECHARTS_PIE_VALUE","显示内容");
private int value;
private String name;
private String description;
- HQL_ORDER() {
+ VIEW_ECHARTS_PIE_OPTION() {
}
- HQL_ORDER(int value, String name, String description) {
+ VIEW_ECHARTS_PIE_OPTION(int value,String name, String description) {
this.value = value;
this.name = name;
this.description = description;
@@ -726,48 +852,119 @@ public class BlockReportEnumUtil {
return description;
}
- public String getName() {
- return name;
+ public static String valueOfDescription(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
}
- public static String valueOf(int val) {
+ }
+
+ /**
+ * Echarts Line
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum VIEW_ECHARTS_LINE_OPTION{
+ OPTION_NAME(1,"ECHARTS_LINE_NAME","显示名称"),
+ OPTION_VALUE(2,"ECHARTS_LINE_VALUE","显示内容"),
+ OPTION_X_AXIS(3,"ECHARTS_LINE_X_AXIS","显示内容xAxis");
+
+ private int value;
+ private String name;
+ private String description;
+
+ VIEW_ECHARTS_LINE_OPTION() {
+ }
+
+ VIEW_ECHARTS_LINE_OPTION(int value,String name, String description) {
+ this.value = value;
+ this.name = name;
+ this.description = description;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
- tmp = values()[i].getName();
+ tmp = values()[i].description;
}
}
return tmp;
}
- public static int descOf(String desc) {
- int tmp = 1;
+ }
+
+ /**
+ * Echarts Bar
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum VIEW_ECHARTS_BAR_OPTION{
+ OPTION_NAME(1,"ECHARTS_BAR_NAME","显示名称"),
+ OPTION_VALUE(2,"ECHARTS_BAR_VALUE","显示内容");
+
+ private int value;
+ private String name;
+ private String description;
+
+ VIEW_ECHARTS_BAR_OPTION() {
+ }
+
+ VIEW_ECHARTS_BAR_OPTION(int value,String name, String description) {
+ this.value = value;
+ this.name = name;
+ this.description = description;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public static String valueOfDescription(int val) {
+ String tmp = null;
for (int i = 0; i < values().length; i++) {
- if (values()[i].name.equals(desc)) {
- tmp = values()[i].value;
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
}
}
return tmp;
}
+
}
/**
- * 报表排版枚举
- * ELEMENT(1,"元素"),TEMPLATE(2,"模板");
+ * Echarts TreeMap
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
- public enum REPORT_TYPESET_TYPE{
-
- ELEMENT(1,"元素"),TEMPLATE(2,"模板");
+ public enum VIEW_ECHARTS_TREEMAP_OPTION{
+ OPTION_NAME(1,"ECHARTS_TREEMAP_NAME","显示名称"),
+ OPTION_VALUE(2,"ECHARTS_TREEMAP_VALUE","显示内容");
private int value;
+ private String name;
private String description;
- REPORT_TYPESET_TYPE() {
+ VIEW_ECHARTS_TREEMAP_OPTION() {
}
- REPORT_TYPESET_TYPE(int value, String description) {
+ VIEW_ECHARTS_TREEMAP_OPTION(int value,String name, String description) {
this.value = value;
+ this.name = name;
this.description = description;
}
diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java
index 46172c2..e6202e0 100644
--- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java
+++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java
@@ -3,6 +3,8 @@ package cn.estsh.i3plus.pojo.base.enumutil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.StringUtils;
+import java.math.BigDecimal;
+
/**
* @Description :
* @Reference :
@@ -221,6 +223,15 @@ public class CommonEnumUtil {
return desc == 0 ? TRUE_OR_FALSE.TRUE.getValue() : TRUE_OR_FALSE.FALSE.getValue();
}
+ public static TRUE_OR_FALSE valueOfEnum(int value){
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == value) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
public static String valueOfDescription(int val) {return valueOf(val);}
public static int descriptionOfValue(String desc) {return descOf(desc);}
@@ -1258,4 +1269,446 @@ public class CommonEnumUtil {
}
}
+
+ /**
+ * 元素控件类型信息
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum PROPERTY_CONTROL_TYPE {
+ RADIO(100, "RADIO", "单选"),
+ CHECKBOX(110, "CHECKBOX", "复选"),
+ TEXT(200, "TEXT", "文本"),
+ NUMBER(210, "NUMBER", "数字"),
+ PASSWORD(230, "PASSWORD", "密码"),
+ DATE_TIME(300, "DATE", "日期",SQL_WHERE.BETWEEN),
+ // DATE(300, "DATE", "日期(yyyy-MM-dd)"),
+// DATE_TIME(310, "DATE_TIME", "时间(yyyy-MM-dd hh:mm:ss)"),
+ // ELEMENT(700, "DICT_SELECT", "元素"),
+ DICTIONARY(800, "DICT_SELECT", "字典"),
+ CASCADE(900, "CASCADE", "级联");
+ //FILE(400, "file", "文件"),
+ //IMAGE(410, "image", "image"),
+ //OFF(500, "color", "颜色"),
+
+ private int value;
+ private String code;
+ private String description;
+
+ /**
+ * 默认查询关系
+ */
+ private SQL_WHERE defaultWhere;
+
+ PROPERTY_CONTROL_TYPE(int value, String code, String description) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ }
+
+ PROPERTY_CONTROL_TYPE(int value, String code, String description, SQL_WHERE defaultWhere) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ this.defaultWhere = defaultWhere;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public SQL_WHERE getDefaultWhere() {
+ return defaultWhere;
+ }
+
+ public static String valueOfCode(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].code;
+ }
+ }
+ return tmp;
+ }
+
+ public static int codeOfValue(String code) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code)) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+
+ public static String valueOfDescription(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+
+ public static PROPERTY_CONTROL_TYPE valueOf(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
+ public static String codeOfDescription(String code) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code)) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+ }
+
+ /**
+ * 条件运算符
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum SQL_WHERE {
+ EQUAL(1, " = ", "等于"),
+ NOT_EQUAL(2, " <> ", "不等于"),
+ MORE(3, " > ", "大于"),
+ LESS(4, " < ", "小于"),
+ MORE_OR_EQUAL(5, " >= ", "大于等于"),
+ LESS_OR_EQUAL (6, " <= ", "小于等于"),
+ LIKE(7, " LIKE ", "全模糊"),
+ START_LIKE(7, " LIKE ", "前模糊"),
+ END_LIKE(7, " LIKE ", "后模糊"),
+ IN(8, " IN ", "in"),
+ BETWEEN(9, " BETWEEN ", "区间查询(逗号区分)"),;
+
+ private int value;
+ private String code;
+ private String description;
+
+ private SQL_WHERE(int value, String code, String description) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public static String valueOfCode(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].code;
+ }
+ }
+ return tmp;
+ }
+
+ public static int codeOfValue(String code) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code.toLowerCase())) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+
+ public static String valueOfDescription(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+
+ public static SQL_WHERE valueOf(int val) {
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
+ public static String codeOfDescription(String code) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code)) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+ }
+
+ /**
+ * 属性类型信息(属性转换器)
+ *
+ *
Form 核心转换器
+ *
数据库字段类型转换Java 属性类型
+ *
Java 属性 转换为控件类型
+ *
+ */
+ @JsonFormat(shape = JsonFormat.Shape.OBJECT)
+ public enum PROPERTY_TYPE {
+ STRING(10, "String", "字符串", "java.lang.String", String.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.LIKE, ""),
+ CHAR(11, "Character", "单字符", "java.lang.Character", Character.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.EQUAL, ""),
+ INTEGER(20, "Integer", "短整型", "java.lang.Integer", Integer.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0"),
+ LONG(21, "Long", "长整型", "java.lang.Long", Long.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0"),
+ DOUBLE(30, "Double", "大浮点型", "java.lang.Double", Double.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
+ FLOAT(31, "Float", "小浮点型", "java.lang.Float", Float.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
+ BIG_DECIMAL(32, "BigDecimal", "大浮点型", "java.math.BigDecimal", BigDecimal.class, PROPERTY_CONTROL_TYPE.NUMBER, SQL_WHERE.EQUAL, "0.0"),
+ BOOLEAN(40, "Boolean", "布尔值", "java.lang.Boolean", Boolean.class, PROPERTY_CONTROL_TYPE.RADIO, SQL_WHERE.EQUAL, null),
+ BYTE(50, "Byte", "字节", "java.lang.Byte", Byte.class, PROPERTY_CONTROL_TYPE.TEXT, SQL_WHERE.EQUAL, null),
+ DATE_TIME(12, "String", "日期时分秒", "java.sql.Timestamp", String.class, PROPERTY_CONTROL_TYPE.DATE_TIME, SQL_WHERE.BETWEEN, null, "yyyy-MM-dd hh:mm:ss");
+
+ /**
+ * 属性类型值
+ */
+ private int value;
+ /**
+ * 属性类型代码
+ */
+ private String code;
+ /**
+ * 属性类型描述
+ */
+ private String description;
+ /**
+ * 属性类型ClassPath
+ */
+ private String classPath;
+ /**
+ * 属性类型 Class
+ */
+ private Class clzFullName;
+ /**
+ * 属性类型 对应的 控件类型
+ */
+ private PROPERTY_CONTROL_TYPE controlType;
+ /**
+ * 默认查询关系
+ */
+ private SQL_WHERE defaultWhere;
+ /**
+ * 默认 格式化 方式
+ */
+ private String defaultFormat;
+ /**
+ * 默认查询关系
+ */
+ private String defaultValue;
+
+ private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
+ PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ this.classPath = classPath;
+ this.clzFullName = clzFullName;
+ this.controlType = controlType;
+ this.defaultWhere = defaultWhere;
+ }
+
+ private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
+ PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ this.classPath = classPath;
+ this.clzFullName = clzFullName;
+ this.controlType = controlType;
+ this.defaultWhere = defaultWhere;
+ this.defaultValue = defaultValue;
+ this.defaultFormat = defaultFormat;
+ }
+
+ private PROPERTY_TYPE(int value, String code, String description,String classPath,Class clzFullName,
+ PROPERTY_CONTROL_TYPE controlType,SQL_WHERE defaultWhere,String defaultValue,String defaultFormat) {
+ this.value = value;
+ this.code = code;
+ this.description = description;
+ this.classPath = classPath;
+ this.clzFullName = clzFullName;
+ this.controlType = controlType;
+ this.defaultWhere = defaultWhere;
+ this.defaultValue = defaultValue;
+ this.defaultFormat = defaultFormat;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public String getClassPath() {
+ return classPath;
+ }
+
+ public Class getClzFullName() {
+ return clzFullName;
+ }
+
+ public PROPERTY_CONTROL_TYPE getControlType() {
+ return controlType;
+ }
+
+ public SQL_WHERE getDefaultWhere() {
+ return defaultWhere;
+ }
+
+ public String getDefaultFormat() {
+ return defaultFormat;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public static String valueOfCode(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].code;
+ }
+ }
+ return tmp;
+ }
+
+ public static PROPERTY_TYPE valueOfClzFullName(int val) {
+ PROPERTY_TYPE tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i];
+ }
+ }
+ return tmp;
+ }
+
+
+ public static PROPERTY_CONTROL_TYPE valueOfControlType(int val) {
+ PROPERTY_CONTROL_TYPE tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].controlType;
+ }
+ }
+ return tmp;
+ }
+
+ public static int codeOfValue(String code) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code)) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+
+ public static int codeOfClzFullName(Class clzFullName) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].clzFullName.equals(clzFullName)) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+
+ public static int codeOfClassPath(String classPath) {
+ int tmp = 1;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].classPath.equals(classPath)) {
+ tmp = values()[i].value;
+ }
+ }
+ return tmp;
+ }
+
+ public static String valueOfDescription(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+
+ public static PROPERTY_TYPE valueOfClassPath(String classPath) {
+ PROPERTY_TYPE tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].classPath.equals(classPath)) {
+ tmp = values()[i];
+ }
+ }
+ return tmp;
+ }
+
+ public static PROPERTY_TYPE valueOf(int val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].value == val) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
+ public static PROPERTY_TYPE indexOf(String val) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (val.indexOf(values()[i].value) >= 0) {
+ return values()[i];
+ }
+ }
+ return null;
+ }
+
+ public static String codeOfDescription(String code) {
+ String tmp = null;
+ for (int i = 0; i < values().length; i++) {
+ if (values()[i].code.equals(code)) {
+ tmp = values()[i].description;
+ }
+ }
+ return tmp;
+ }
+ }
+
}
diff --git a/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacCommandStackRecord.java b/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacCommandStackRecord.java
index c4eada8..01c70ae 100644
--- a/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacCommandStackRecord.java
+++ b/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacCommandStackRecord.java
@@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
+import cn.estsh.i3plus.pojo.base.enumutil.LacEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@@ -89,6 +90,10 @@ public class LacCommandStackRecord extends BaseBean {
@ApiParam(value ="执行状态")
private Integer stackStatus;
+ public String getStackStatusTxt(){
+ return LacEnumUtil.STACK_STATUS.valueOfDescription(stackStatus == null ? 0 : stackStatus);
+ }
+
@Column(name="EXECUTION_DESCRIPTION")
@ApiParam(value ="执行说明")
private String executionDescription;
diff --git a/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacLogTask.java b/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacLogTask.java
index 9b32ffa..e85fb26 100644
--- a/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacLogTask.java
+++ b/modules/i3plus-pojo-lac/src/main/java/cn/estsh/i3plus/pojo/lac/bean/LacLogTask.java
@@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
+import cn.estsh.i3plus.pojo.base.enumutil.LacEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@@ -120,6 +121,10 @@ public class LacLogTask extends BaseBean {
@ApiParam(value ="任务状态")
private Integer taskStatus;
+ public String getTaskStatusTxt(){
+ return LacEnumUtil.STACK_STATUS.valueOfDescription(taskStatus == null ? 0 : taskStatus);
+ }
+
@Column(name="EXECUTION_DESCRIPTION")
@ApiParam(value ="执行说明")
private String executionDescription;
diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/common/ClassFieldModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/common/ClassFieldModel.java
index a7575d5..f03e4f7 100644
--- a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/common/ClassFieldModel.java
+++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/common/ClassFieldModel.java
@@ -30,15 +30,26 @@ public class ClassFieldModel implements Serializable {
@ApiParam(value ="属性名")
private String fieldName;
+ @ApiParam(value ="属性类型名称")
+ private String fieldTypeName;
+
@ApiParam(value ="属性别名")
private String fieldNameAlias;
@ApiParam(value ="属性描述")
private String fieldDesc;
- @Column(name="AGGREGATION_TYPE")
@ApiParam(value ="聚合ID")
@JsonSerialize(using = ToStringSerializer.class)
private Long aggregationId;
+// "clzFullName": "cn.estsh.i3plus.pojo.report.bean.BrRefRoleMenu",
+// "fieldName": "menuNameRdd",
+
+
+ @ApiParam(value ="属性全路径")
+ public String getFieldNameInfo(){
+ return this.clzFullName + "." + this.fieldName;
+ }
+
}
diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/form/SqlColumnModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/form/SqlColumnModel.java
index 0cd99b7..ae774f8 100644
--- a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/form/SqlColumnModel.java
+++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/form/SqlColumnModel.java
@@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.model.form;
import cn.estsh.i3plus.pojo.base.enumutil.BlockFormEnumUtil;
+import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@@ -64,7 +65,7 @@ public class SqlColumnModel {
public SqlColumnModel() {
}
- public SqlColumnModel(String columnName, BlockFormEnumUtil.PROPERTY_TYPE type) {
+ public SqlColumnModel(String columnName, CommonEnumUtil.PROPERTY_TYPE type) {
this.columnName = columnName;
this.columnClassType = type.getValue();
this.columnTypeName = type.getDescription();
diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BeanBrPojoAttrModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BeanBrPojoAttrModel.java
index 83aeee0..391e347 100644
--- a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BeanBrPojoAttrModel.java
+++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BeanBrPojoAttrModel.java
@@ -1,35 +1,35 @@
-package cn.estsh.i3plus.pojo.model.report;
-
-import cn.estsh.i3plus.pojo.report.bean.BrPojoAttr;
-import cn.estsh.i3plus.pojo.report.bean.BrTemplateCustomHql;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
-import io.swagger.annotations.ApiParam;
-import lombok.Data;
-
-import java.util.List;
-
-/**
- * @Description ://
- * @Reference :
- * @Author : Adair Peng
- * @CreateDate : 2019-01-25 18:19
- * @Modify:
- **/
-@Data
-public class BeanBrPojoAttrModel {
-
- @ApiParam(value = "表单模板ID")
- @JsonSerialize(using = ToStringSerializer.class)
- private Long templateId;
-
- @ApiParam(value = "数据类型")
- private Integer dataType;
-
- @ApiParam(value = "对象属性")
- private List attrList;
-
- @ApiParam(value = "自定义HQL")
- private BrTemplateCustomHql customHql;
-
-}
+//package cn.estsh.i3plus.pojo.model.report;
+//
+//import cn.estsh.i3plus.pojo.report.bean.BrPojoAttr;
+//import cn.estsh.i3plus.pojo.report.bean.BrTemplateCustomHql;
+//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+//import io.swagger.annotations.ApiParam;
+//import lombok.Data;
+//
+//import java.util.List;
+//
+///**
+// * @Description ://
+// * @Reference :
+// * @Author : Adair Peng
+// * @CreateDate : 2019-01-25 18:19
+// * @Modify:
+// **/
+//@Data
+//public class BeanBrPojoAttrModel {
+//
+// @ApiParam(value = "表单模板ID")
+// @JsonSerialize(using = ToStringSerializer.class)
+// private Long templateId;
+//
+// @ApiParam(value = "数据类型")
+// private Integer dataType;
+//
+// @ApiParam(value = "对象属性")
+// private List attrList;
+//
+// @ApiParam(value = "自定义HQL")
+// private BrTemplateCustomHql customHql;
+//
+//}
diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BrDataSourceModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BrDataSourceModel.java
new file mode 100644
index 0000000..e3dc2fc
--- /dev/null
+++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/BrDataSourceModel.java
@@ -0,0 +1,47 @@
+package cn.estsh.i3plus.pojo.model.report;
+
+import io.swagger.annotations.ApiParam;
+import lombok.Data;
+
+/**
+ * @Description :
+ * 自定义报表数据源传输对象 , 单纯数据传输使用并不做保存使用
+ * @Reference :
+ * @Author : wei.peng
+ * @CreateDate : 19-12-5 下午4:02
+ * @Modify:
+ **/
+@Data
+public class BrDataSourceModel {
+
+ /**
+ * 默认数据源信息
+ */
+ public static final BrDataSourceModel DEFAULT_DATA_SOURCE = new BrDataSourceModel("默认数据源", "DEFAULT", null, null, "使用默认数据源");
+
+ @ApiParam(value ="数据源名称")
+ private String sourceName;
+
+ @ApiParam(value ="数据源编码")
+ private String sourceCode;
+
+ @ApiParam(value ="数据源类型",name = "BlockFormEnumUtil.DATA_SOURCE_TYPE")
+ private Integer sourceType;
+
+ @ApiParam(value ="数据库名称")
+ private String sourceDataBaseName;
+
+ @ApiParam(value ="数据源描述")
+ private String sourceDescription;
+
+ public BrDataSourceModel() {
+ }
+
+ public BrDataSourceModel(String sourceName, String sourceCode, Integer sourceType, String sourceDataBaseName, String sourceDescription) {
+ this.sourceName = sourceName;
+ this.sourceCode = sourceCode;
+ this.sourceType = sourceType;
+ this.sourceDataBaseName = sourceDataBaseName;
+ this.sourceDescription = sourceDescription;
+ }
+}
diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/TemplateModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/TemplateModel.java
index a78d077..67bd9b5 100644
--- a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/TemplateModel.java
+++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/report/TemplateModel.java
@@ -1,10 +1,16 @@
package cn.estsh.i3plus.pojo.model.report;
+import cn.estsh.i3plus.pojo.base.bean.BaseResultBean;
+import cn.estsh.i3plus.pojo.report.bean.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiParam;
import lombok.Data;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
/**
* @Description :
* @Reference :
@@ -13,22 +19,70 @@ import lombok.Data;
* @Modify:
**/
@Data
-public class TemplateModel {
+public class TemplateModel implements Serializable {
- @ApiParam("数据源ID")
+ private static final long serialVersionUID = -6385070202088819367L;
+ @ApiParam(value ="视图ID")
@JsonSerialize(using = ToStringSerializer.class)
- private Long sourceId;
+ private Long viewId;
- @ApiParam("模板ID")
- @JsonSerialize(using = ToStringSerializer.class)
- private Long templateId;
+ @ApiParam(value ="视图类型")
+ private Integer viewType;
- @ApiParam("执行 HQL ")
- private String hql;
+ @ApiParam(value ="视图名称")
+ private String viewName;
+
+ @ApiParam(value ="返回信息")
+ private String resultMessage;
+
+ @ApiParam(value = "查询对象")
+ private BrPojo pojo;
+
+ @ApiParam(value = "对象连接")
+ private List joinList;
+
+ @ApiParam(value = "对象晒算信息")
+ private BrPojoFilter filter;
+
+ @ApiParam(value = "查询条件")
+ private List whereAttrList;
+
+ @ApiParam(value = "分组条件")
+ private List groupAttrList;
- @ApiParam("执行 HQL 参数名称 ")
- private String[] paramName;
+ @ApiParam(value = "排序条件")
+ private BrPojoView view;
+
+ @ApiParam(value = "排序条件")
+ private List orderAttrList;
+
+ @ApiParam(value = "显示属性")
+ private List viewAttrList;
+
+ @ApiParam(value = "显示属性别名")
+ private List viewAttrAliasList;
+
+ @ApiParam(value = "跨服务调用返回数据")
+ private BaseResultBean cloudResultBean;
+
+ @ApiParam(value = "跨服务调用解析后数据")
+ private List