|
@@ -8,6 +8,8 @@ import com.ruoyi.system.entity.TableSql;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -73,6 +75,11 @@ public class DragTableVo {
|
|
|
*/
|
|
|
private List<String> searchFieldList;
|
|
|
|
|
|
+ /**
|
|
|
+ * sql语句默认值
|
|
|
+ */
|
|
|
+ private Map<String, Object> conditionDefaultValueMap;
|
|
|
+
|
|
|
/**
|
|
|
* 表查询语句
|
|
|
*/
|
|
@@ -112,13 +119,19 @@ public class DragTableVo {
|
|
|
*/
|
|
|
private String sortOrder;
|
|
|
|
|
|
- /** 表格统计 */
|
|
|
+ /**
|
|
|
+ * 表格统计
|
|
|
+ */
|
|
|
private List<DragTableStatistic> dragTableStatisticList;
|
|
|
|
|
|
- /** table sql List */
|
|
|
+ /**
|
|
|
+ * table sql List
|
|
|
+ */
|
|
|
private List<TableSql> tableSqlList;
|
|
|
|
|
|
- /** 表格样式 */
|
|
|
+ /**
|
|
|
+ * 表格样式
|
|
|
+ */
|
|
|
private List<DragTableStyle> dragTableStyleList;
|
|
|
|
|
|
public Long gettId() {
|
|
@@ -297,10 +310,22 @@ public class DragTableVo {
|
|
|
this.dragTableStyleList = dragTableStyleList;
|
|
|
}
|
|
|
|
|
|
+ public Map<String, Object> getConditionDefaultValueMap() {
|
|
|
+
|
|
|
+ if (conditionDefaultValueMap == null) {
|
|
|
+ conditionDefaultValueMap = new HashMap<>();
|
|
|
+ }
|
|
|
+ return conditionDefaultValueMap;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setConditionDefaultValueMap(Map<String, Object> conditionDefaultValueMap) {
|
|
|
+ this.conditionDefaultValueMap = conditionDefaultValueMap;
|
|
|
+ }
|
|
|
+
|
|
|
public DragTableVo() {
|
|
|
}
|
|
|
|
|
|
- public DragTableVo(Long tId, String dtName, String dtNickname, String tableKey, String sqlKey, String dtTableName, Object dtColumnName, String dtColumnNameEcho, String timeFormat, String isSelection, List<String> searchFieldList, String tableSql, Object tableExportField, String tableExportFieldEcho, String echoData, Long menuId, String primaryKey, String orderByColumn, String sortOrder, List<DragTableStatistic> dragTableStatisticList, List<TableSql> tableSqlList,List<DragTableStyle> dragTableStyleList) {
|
|
|
+ public DragTableVo(Long tId, String dtName, String dtNickname, String tableKey, String sqlKey, String dtTableName, Object dtColumnName, String dtColumnNameEcho, String timeFormat, String isSelection, List<String> searchFieldList, Map<String, Object> conditionDefaultValueMap, String tableSql, Object tableExportField, String tableExportFieldEcho, String echoData, Long menuId, String primaryKey, String orderByColumn, String sortOrder, List<DragTableStatistic> dragTableStatisticList, List<TableSql> tableSqlList, List<DragTableStyle> dragTableStyleList) {
|
|
|
this.tId = tId;
|
|
|
this.dtName = dtName;
|
|
|
this.dtNickname = dtNickname;
|
|
@@ -312,6 +337,7 @@ public class DragTableVo {
|
|
|
this.timeFormat = timeFormat;
|
|
|
this.isSelection = isSelection;
|
|
|
this.searchFieldList = searchFieldList;
|
|
|
+ this.conditionDefaultValueMap = conditionDefaultValueMap;
|
|
|
this.tableSql = tableSql;
|
|
|
this.tableExportField = tableExportField;
|
|
|
this.tableExportFieldEcho = tableExportFieldEcho;
|