Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
5c17c54d
Commit
5c17c54d
authored
Jun 12, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(大编辑):管道增减功能开发
1.解析优化
parent
b921821e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
ColumnDiff.java
...join/amos/boot/module/jg/biz/edit/factory/ColumnDiff.java
+1
-1
ColumnDiffFactory.java
...os/boot/module/jg/biz/edit/factory/ColumnDiffFactory.java
+12
-7
JsonColumnDiffHandler.java
...oot/module/jg/biz/edit/factory/JsonColumnDiffHandler.java
+1
-1
StringColumnDiffHandler.java
...t/module/jg/biz/edit/factory/StringColumnDiffHandler.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/
I
ColumnDiff.java
→
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/ColumnDiff.java
View file @
5c17c54d
...
...
@@ -8,7 +8,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta;
import
java.lang.reflect.Field
;
public
interface
I
ColumnDiff
{
public
interface
ColumnDiff
{
boolean
supports
(
Class
<?>
type
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/ColumnDiffFactory.java
View file @
5c17c54d
...
...
@@ -5,18 +5,23 @@ import org.springframework.stereotype.Component;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
@Component
@RequiredArgsConstructor
public
class
ColumnDiffFactory
{
private
final
List
<
IColumnDiff
>
IColumnDiffs
;
private
final
List
<
ColumnDiff
>
columnDiffs
;
private
final
Map
<
Class
<?>,
ColumnDiff
>
diffCache
=
new
ConcurrentHashMap
<>();
public
IColumnDiff
getDiffAdapter
(
Class
<?>
clazz
)
{
for
(
IColumnDiff
columnDiff
:
IColumnDiffs
)
{
if
(
columnDiff
.
supports
(
clazz
))
{
return
columnDiff
;
public
ColumnDiff
getDiffAdapter
(
Class
<?>
clazz
)
{
return
diffCache
.
computeIfAbsent
(
clazz
,
(
k
)
->
{
for
(
ColumnDiff
columnDiff
:
columnDiffs
)
{
if
(
columnDiff
.
supports
(
clazz
))
{
return
columnDiff
;
}
}
}
throw
new
BadRequest
(
"no found handler for class: "
+
clazz
);
throw
new
BadRequest
(
"no found handler for class: "
+
clazz
);
}
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/Json
I
ColumnDiffHandler.java
→
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/JsonColumnDiffHandler.java
View file @
5c17c54d
...
...
@@ -16,7 +16,7 @@ import java.util.Objects;
@Component
@RequiredArgsConstructor
public
class
Json
IColumnDiffHandler
implements
I
ColumnDiff
{
public
class
Json
ColumnDiffHandler
implements
ColumnDiff
{
private
final
FormatService
formatService
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/String
I
ColumnDiffHandler.java
→
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/factory/StringColumnDiffHandler.java
View file @
5c17c54d
...
...
@@ -16,7 +16,7 @@ import java.util.Objects;
@Component
@RequiredArgsConstructor
public
class
String
IColumnDiffHandler
implements
I
ColumnDiff
{
public
class
String
ColumnDiffHandler
implements
ColumnDiff
{
private
final
FormatService
formatService
;
...
...
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