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
ac94c103
Commit
ac94c103
authored
Aug 30, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉fieldFilter
parent
7ea45f15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
JsonConfig.java
...ess/src/main/java/com/ceb/gjjs/mda/config/JsonConfig.java
+0
-7
IModule.java
...src/main/java/com/brilliance/mda/runtime/mda/IModule.java
+7
-0
AbstractModule.java
...a/com/brilliance/mda/runtime/mda/impl/AbstractModule.java
+1
-2
ModuleList.java
.../java/com/brilliance/mda/runtime/mda/impl/ModuleList.java
+1
-2
No files found.
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/config/JsonConfig.java
View file @
ac94c103
...
...
@@ -4,8 +4,6 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.fasterxml.jackson.databind.module.SimpleModule
;
import
com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter
;
import
com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
;
...
...
@@ -36,11 +34,6 @@ public class JsonConfig {
// 日期格式处理
// objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
SimpleFilterProvider
filterProvider
=
new
SimpleFilterProvider
();
SimpleBeanPropertyFilter
fieldFilter
=
SimpleBeanPropertyFilter
.
serializeAllExcept
(
"attrMaps"
,
"pageSize"
,
"page"
);
filterProvider
.
addFilter
(
"fieldFilter"
,
fieldFilter
);
objectMapper
.
setFilterProvider
(
filterProvider
);
return
objectMapper
;
}
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/IModule.java
View file @
ac94c103
package
com
.
brilliance
.
mda
.
runtime
.
mda
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -36,6 +38,7 @@ public interface IModule extends IBaseObject {
;
@JsonIgnore
default
String
getTableName
()
{
return
null
;
}
...
...
@@ -44,8 +47,10 @@ public interface IModule extends IBaseObject {
void
assignSerialNum
();
@JsonIgnore
String
getSerialNum
();
@JsonIgnore
Map
<
String
,
Object
>
getAttrMaps
();
void
setPageSize
(
int
paramInt
);
...
...
@@ -54,8 +59,10 @@ public interface IModule extends IBaseObject {
void
setPage
(
int
paramInt
);
@JsonIgnore
int
getPageSize
();
@JsonIgnore
int
getPage
();
int
getRealIndex
(
int
paramInt
);
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/impl/AbstractModule.java
View file @
ac94c103
...
...
@@ -7,7 +7,6 @@ import com.brilliance.mda.runtime.mda.IModule;
import
com.brilliance.mda.runtime.mda.IModuleRoot
;
import
com.brilliance.mda.runtime.mda.driver.MdaDriver
;
import
com.brilliance.mda.runtime.mda.util.MdaUtils
;
import
com.fasterxml.jackson.annotation.JsonFilter
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -17,7 +16,7 @@ import java.lang.reflect.Field;
import
java.lang.reflect.Method
;
import
java.util.*
;
@JsonFilter
(
"fieldFilter"
)
@Module
public
abstract
class
AbstractModule
implements
IModule
,
IModuleRoot
{
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/impl/ModuleList.java
View file @
ac94c103
...
...
@@ -5,7 +5,6 @@ import com.brilliance.mda.runtime.mda.IDatafield;
import
com.brilliance.mda.runtime.mda.IModule
;
import
com.brilliance.mda.runtime.mda.IModuleList
;
import
com.brilliance.mda.runtime.mda.driver.MdaEnv
;
import
com.fasterxml.jackson.annotation.JsonFilter
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
oracle.sql.TIMESTAMP
;
...
...
@@ -14,7 +13,7 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.Map
;
@JsonFilter
(
"fieldFilter"
)
public
class
ModuleList
<
T
extends
IModule
>
extends
ArrayList
<
T
>
implements
IModuleList
<
T
>
{
/**
*
...
...
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