Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
s_guodong
gjjs-bd-common
Commits
cc45ff1a
Commit
cc45ff1a
authored
Aug 24, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉返回的多余字段
parent
daab2c78
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
JsonConfig.java
...ess/src/main/java/com/ceb/gjjs/mda/config/JsonConfig.java
+2
-1
AbstractModule.java
...a/com/brilliance/mda/runtime/mda/impl/AbstractModule.java
+1
-2
No files found.
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/config/JsonConfig.java
View file @
cc45ff1a
...
...
@@ -14,6 +14,7 @@ public class JsonConfig {
/**
* 返回至前端的数据序列化实例
*
* @param builder
* @return
*/
...
...
@@ -34,7 +35,7 @@ public class JsonConfig {
// objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
SimpleFilterProvider
filterProvider
=
new
SimpleFilterProvider
();
SimpleBeanPropertyFilter
fieldFilter
=
SimpleBeanPropertyFilter
.
serializeAllExcept
(
"attrMaps"
);
SimpleBeanPropertyFilter
fieldFilter
=
SimpleBeanPropertyFilter
.
serializeAllExcept
(
"attrMaps"
,
"pageSize"
,
"page"
);
filterProvider
.
addFilter
(
"fieldFilter"
,
fieldFilter
);
objectMapper
.
setFilterProvider
(
filterProvider
);
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/impl/AbstractModule.java
View file @
cc45ff1a
...
...
@@ -17,7 +17,7 @@ import java.lang.reflect.Field;
import
java.lang.reflect.Method
;
import
java.util.*
;
//
@JsonFilter("fieldFilter")
@JsonFilter
(
"fieldFilter"
)
@Module
public
abstract
class
AbstractModule
implements
IModule
,
IModuleRoot
{
...
...
@@ -215,7 +215,6 @@ public abstract class AbstractModule implements IModule, IModuleRoot {
}
public
void
setAttrMaps
(
Map
<
String
,
Object
>
attrMaps
)
{
this
.
attrMaps
=
attrMaps
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment