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
0d2d9f5f
Commit
0d2d9f5f
authored
Sep 01, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快照优化
parent
370a656e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
SnapshotServiceImpl.java
...lliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
+6
-5
ValueVo.java
...a/com/brilliance/mda/runtime/mda/snapshot/bo/ValueVo.java
+3
-1
No files found.
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
View file @
0d2d9f5f
...
...
@@ -312,7 +312,7 @@ public class SnapshotServiceImpl implements SnapshotService {
PackComboboxBo
data
=
new
PackComboboxBo
();
if
(
StringUtils
.
isNotBlank
(
text
))
{
keySet
.
add
(
new
ValueVo
(
text
,
null
,
attributeValue
.
getCodeTable
()));
keySet
.
add
(
new
ValueVo
(
text
,
null
,
attributeValue
.
getCodeTable
()
,
attributeValue
.
getFormatter
()
));
data
.
setText
(
"${"
+
text
+
"}"
);
}
else
{
data
.
setText
(
""
);
...
...
@@ -340,7 +340,7 @@ public class SnapshotServiceImpl implements SnapshotService {
String
text
=
getAttributeValue
(
customAttributes
).
getFieldUrl
();
PackDateboxBo
data
=
new
PackDateboxBo
();
if
(
StringUtils
.
isNotBlank
(
text
))
{
keySet
.
add
(
new
ValueVo
(
text
,
textboxBo
.
getFormat
(),
null
));
keySet
.
add
(
new
ValueVo
(
text
,
textboxBo
.
getFormat
(),
null
,
null
));
data
.
setText
(
"${"
+
text
+
"}"
);
}
else
{
data
.
setText
(
""
);
...
...
@@ -412,7 +412,7 @@ public class SnapshotServiceImpl implements SnapshotService {
if
(
StringUtils
.
isNotBlank
(
fieldUrl
))
{
data
.
setChecked
(
"${"
+
fieldUrl
+
"}"
);
keySet
.
add
(
new
ValueVo
(
fieldUrl
,
"X"
,
null
));
keySet
.
add
(
new
ValueVo
(
fieldUrl
,
"X"
,
null
,
null
));
}
else
{
data
.
setChecked
(
""
);
}
...
...
@@ -477,7 +477,7 @@ public class SnapshotServiceImpl implements SnapshotService {
for
(
CustomAttributes
customAttributes
:
customAttributesList
)
{
Object
value
=
map
.
get
(
customAttributes
.
getColumnName
());
// 格式转换
value
=
formatValue
(
value
,
new
ValueVo
(
null
,
customAttributes
.
getFormatter
(),
customAttributes
.
getCodeTable
()));
value
=
formatValue
(
value
,
new
ValueVo
(
null
,
customAttributes
.
getFormatter
(),
customAttributes
.
getCodeTable
()
,
customAttributes
.
getFormatter
()
));
PackListcellBo
listCellData
=
new
PackListcellBo
();
listCellData
.
setLabel
(
value
==
null
?
""
:
String
.
valueOf
(
value
));
listCellData
.
setStyle
(
customAttributes
.
getColumnStyle
());
...
...
@@ -660,8 +660,9 @@ public class SnapshotServiceImpl implements SnapshotService {
if
(
value
!=
null
)
{
String
format
=
valueVo
.
getFormat
();
String
codeTable
=
valueVo
.
getCodeTable
();
String
formatter
=
valueVo
.
getFormatter
();
// 从码表中转换
if
(
StringUtils
.
isNotBlank
(
codeTable
))
{
if
(
StringUtils
.
isNotBlank
(
codeTable
)
&&
"{0}"
.
equals
(
formatter
)
)
{
value
=
MdaUtils
.
getCodetableLabel
(
codeTable
,
(
String
)
value
);
}
if
(
StringUtils
.
isNotBlank
(
format
))
{
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/bo/ValueVo.java
View file @
0d2d9f5f
...
...
@@ -12,15 +12,17 @@ public class ValueVo {
private
String
key
;
private
String
format
;
private
String
codeTable
;
private
String
formatter
;
public
ValueVo
(
String
key
)
{
this
.
key
=
key
;
}
public
ValueVo
(
String
key
,
String
format
,
String
codeTable
)
{
public
ValueVo
(
String
key
,
String
format
,
String
codeTable
,
String
formatter
)
{
this
.
key
=
key
;
this
.
format
=
format
;
this
.
codeTable
=
codeTable
;
this
.
formatter
=
formatter
;
}
...
...
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