Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibiz-boot-starters
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibiz-boot-starters
提交
63813fc9
提交
63813fc9
编写于
7月 08, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
整理方法
上级
78fbb715
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
5 行删除
+37
-5
BaseData.java
...net/ibizsys/central/plugin/boot/core/domain/BaseData.java
+14
-0
BaseFilter.java
...t/ibizsys/central/plugin/boot/core/filter/BaseFilter.java
+23
-5
未找到文件。
ibiz-boot-starter/src/main/java/net/ibizsys/central/plugin/boot/core/domain/BaseData.java
浏览文件 @
63813fc9
...
@@ -2,6 +2,7 @@ package net.ibizsys.central.plugin.boot.core.domain;
...
@@ -2,6 +2,7 @@ package net.ibizsys.central.plugin.boot.core.domain;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.util.TypeUtils
;
import
com.alibaba.fastjson.util.TypeUtils
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonAnyGetter
;
import
com.fasterxml.jackson.annotation.JsonAnyGetter
;
import
com.fasterxml.jackson.annotation.JsonAnySetter
;
import
com.fasterxml.jackson.annotation.JsonAnySetter
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
...
@@ -39,10 +40,14 @@ public class BaseData implements IEntityDTO {
...
@@ -39,10 +40,14 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
transient
IDEMethodDTORuntime
iDEMethodDTORuntime
=
null
;
private
transient
IDEMethodDTORuntime
iDEMethodDTORuntime
=
null
;
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
boolean
actionInputDTO
=
false
;
private
boolean
actionInputDTO
=
false
;
public
void
setActionInputDTO
(
Boolean
actionInputDTO
)
public
void
setActionInputDTO
(
Boolean
actionInputDTO
)
...
@@ -52,6 +57,8 @@ public class BaseData implements IEntityDTO {
...
@@ -52,6 +57,8 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
boolean
enableAny
=
false
;
private
boolean
enableAny
=
false
;
public
void
setEnableAny
(
Boolean
enableAny
)
public
void
setEnableAny
(
Boolean
enableAny
)
...
@@ -104,6 +111,8 @@ public class BaseData implements IEntityDTO {
...
@@ -104,6 +111,8 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
Set
<
String
>
focusNull
=
new
HashSet
<>();
private
Set
<
String
>
focusNull
=
new
HashSet
<>();
public
void
setFocusNull
(
Set
<
String
>
focusNull
)
public
void
setFocusNull
(
Set
<
String
>
focusNull
)
...
@@ -144,6 +153,8 @@ public class BaseData implements IEntityDTO {
...
@@ -144,6 +153,8 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
private
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
public
void
setParamMap
(
Map
<
String
,
Object
>
paramMap
)
public
void
setParamMap
(
Map
<
String
,
Object
>
paramMap
)
...
@@ -162,6 +173,8 @@ public class BaseData implements IEntityDTO {
...
@@ -162,6 +173,8 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
@Transient
private
transient
Map
<
String
,
Object
>
_allParamMap
=
null
;
private
transient
Map
<
String
,
Object
>
_allParamMap
=
null
;
@JsonIgnore
@JsonIgnore
...
@@ -182,6 +195,7 @@ public class BaseData implements IEntityDTO {
...
@@ -182,6 +195,7 @@ public class BaseData implements IEntityDTO {
@JsonIgnore
@JsonIgnore
@JSONField
(
serialize
=
false
)
@JSONField
(
serialize
=
false
)
@Transient
@Transient
@TableField
(
exist
=
false
)
private
BeanMap
map
;
private
BeanMap
map
;
@JsonIgnore
@JsonIgnore
...
...
ibiz-boot-starter/src/main/java/net/ibizsys/central/plugin/boot/core/filter/BaseFilter.java
浏览文件 @
63813fc9
...
@@ -29,6 +29,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -29,6 +29,7 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -72,7 +73,18 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
...
@@ -72,7 +73,18 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
this
.
iDEFilterDTORuntime
=
(
IDEFilterDTORuntime
)
iDEMethodDTORuntime
;
this
.
iDEFilterDTORuntime
=
(
IDEFilterDTORuntime
)
iDEMethodDTORuntime
;
if
(
objData
instanceof
Map
)
{
if
(
objData
instanceof
Map
)
{
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
objData
;
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
objData
;
this
.
setAny
(
map
,
true
);
for
(
java
.
util
.
Map
.
Entry
<
String
,
Object
>
entry
:
map
.
entrySet
())
{
if
(
entry
.
getKey
().
equalsIgnoreCase
(
"searchconds"
)&&(!
ObjectUtils
.
isEmpty
(
entry
.
getValue
())))
{
List
list
=(
List
)
entry
.
getValue
();
if
(!(
list
.
get
(
0
)
instanceof
ISearchCond
))
continue
;
}
this
.
setObject
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
}
onInit
();
onInit
();
}
}
...
@@ -152,12 +164,14 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
...
@@ -152,12 +164,14 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
else
{
else
{
//实际展开条件
//实际展开条件
if
(
objSearchConds
instanceof
List
)
{
if
(
objSearchConds
instanceof
List
)
{
List
list
=
(
List
)
objSearchConds
;
List
list
=
new
ArrayList
()
;
for
(
Object
objItem
:
list
)
{
((
List
)
objSearchConds
).
forEach
(
objItem
->
{
if
(!(
objItem
instanceof
Map
))
{
if
(!(
objItem
instanceof
Map
))
{
continue
;
return
;
}
}
list
.
add
(
objItem
);
});
for
(
Object
objItem
:
list
)
{
ISearchCond
iSearchCond
=
net
.
ibizsys
.
central
.
util
.
SearchGroupCond
.
getSearchCond
((
Map
)
objItem
,
true
);
ISearchCond
iSearchCond
=
net
.
ibizsys
.
central
.
util
.
SearchGroupCond
.
getSearchCond
((
Map
)
objItem
,
true
);
if
(
iSearchCond
!=
null
)
{
if
(
iSearchCond
!=
null
)
{
this
.
getSearchCondsIf
().
add
(
iSearchCond
);
this
.
getSearchCondsIf
().
add
(
iSearchCond
);
...
@@ -471,6 +485,10 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
...
@@ -471,6 +485,10 @@ public class BaseFilter<T> extends BaseData implements ISearchContextDTO {
public
String
query
;
public
String
query
;
public
void
setQuery
()
{
}
@Override
@Override
@JsonIgnore
@JsonIgnore
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录