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
b4221c36
Commit
b4221c36
authored
Aug 22, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快照中列表的渲染
parent
6887dadd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
13 deletions
+8
-13
Test.java
gjjs-bd-business/src/test/java/com/brilliance/test/Test.java
+0
-8
MdaContext.java
...ava/com/brilliance/mda/runtime/mda/driver/MdaContext.java
+1
-1
SnapshotService.java
.../brilliance/mda/runtime/mda/snapshot/SnapshotService.java
+4
-2
SnapshotServiceImpl.java
...lliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
+0
-0
PackListboxBo.java
...iance/mda/runtime/mda/snapshot/bo/pack/PackListboxBo.java
+2
-1
DateUtils.java
...n/java/com/brilliance/mda/runtime/mda/util/DateUtils.java
+1
-1
No files found.
gjjs-bd-business/src/test/java/com/brilliance/test/Test.java
View file @
b4221c36
package
com
.
brilliance
.
test
;
import
com.brilliance.mda.runtime.mda.snapshot.SnapshotServiceImpl
;
import
java.util.HashSet
;
public
class
Test
{
...
...
@@ -16,11 +14,5 @@ public class Test {
System
.
out
.
println
(
set
);
}
@org
.
junit
.
jupiter
.
api
.
Test
public
void
getTemplateContent
()
{
SnapshotServiceImpl
snapshotServiceImpl
=
new
SnapshotServiceImpl
();
String
templateContent
=
snapshotServiceImpl
.
getTemplateContent
(
"litp.nlitp"
);
System
.
out
.
println
(
templateContent
);
}
}
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/driver/MdaContext.java
View file @
b4221c36
...
...
@@ -259,7 +259,7 @@ public class MdaContext implements IContext {
IModule
parent
=
panel
.
getParent
();
String
panelPath
=
panel
.
getPath
();
// 获取模板内容
String
templateContent
=
snapshotService
.
getTemplateContent
(
panelPath
);
String
templateContent
=
snapshotService
.
getTemplateContent
(
panelPath
,
parent
);
// 获取填充值的key
Set
<
ValueVo
>
keySet
=
snapshotService
.
getKeySet
();
// 获取填充的值
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/SnapshotService.java
View file @
b4221c36
...
...
@@ -18,9 +18,10 @@ public interface SnapshotService {
* 获取模板内容
*
* @param panelPath
* @param parent
* @return
*/
String
getTemplateContent
(
String
panelPath
);
String
getTemplateContent
(
String
panelPath
,
IModule
parent
);
/**
* 获取快照模板中所需的值
...
...
@@ -43,9 +44,10 @@ public interface SnapshotService {
* 组装成xml需要的实体
*
* @param documentBo
* @param parent
* @return
*/
PackDocumentBo
packTemplate
(
DocumentBo
documentBo
);
PackDocumentBo
packTemplate
(
DocumentBo
documentBo
,
IModule
parent
);
/**
* 获取需要填充值的实体
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
View file @
b4221c36
This diff is collapsed.
Click to expand it.
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/bo/pack/PackListboxBo.java
View file @
b4221c36
...
...
@@ -3,6 +3,7 @@ package com.brilliance.mda.runtime.mda.snapshot.bo.pack;
import
lombok.Data
;
import
javax.xml.bind.annotation.*
;
import
java.util.List
;
/**
* @Description
...
...
@@ -23,5 +24,5 @@ public class PackListboxBo {
private
PackListheadBo
packListheadBo
;
@XmlElement
(
name
=
"listitem"
)
private
PackListitemBo
packListitemBo
;
private
List
<
PackListitemBo
>
packListitemBo
;
}
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/util/DateUtil.java
→
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/util/DateUtil
s
.java
View file @
b4221c36
...
...
@@ -9,7 +9,7 @@ import java.util.Date;
* @Author s_guodong
* @Date 2023/8/21
*/
public
class
DateUtil
{
public
class
DateUtil
s
{
public
static
String
format
(
Date
date
,
String
pattern
)
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
pattern
);
...
...
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