Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
5367d641
Commit
5367d641
authored
Mar 31, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/reg' into reg
parents
5800d059
0aa26f63
Pipeline
#2940
canceled with stages
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
fill-manager/src/main/bin/start.sh
fill-manager/src/main/bin/start.sh
+0
-1
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
...hx/module/matter/service/impl/MatterDatumServiceImpl.java
+14
-0
No files found.
fill-manager/src/main/bin/start.sh
View file @
5367d641
...
...
@@ -62,7 +62,6 @@ exec "$JAVACMD" $JAVA_OPTS \
-Dapp
.port
=
"
$PORT
"
\
-Dbasedir
=
"
$BASEDIR
"
\
-Dfile
.encoding
=
utf-8
\
-Djava
.io.tmpdir
=
$TEMP_PATH
\
-jar
$MAIN_CLASS
\
>
/dev/null &
...
...
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
View file @
5367d641
...
...
@@ -355,6 +355,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
//转换表单参数为map集合
ObjectMapper
mapper
=
new
ObjectMapper
();
ConfigureBuilder
builder
=
Configure
.
builder
();
//builder.useSpringEL();
builder
.
buildGrammerRegex
(
RegexUtils
.
createGeneral
(
"{{"
,
"}}"
));
try
{
Map
<
String
,
Object
>
data
=
mapper
.
readValue
(
docFormVo
.
getFormContent
(),
Map
.
class
);
...
...
@@ -401,6 +402,14 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
//TODO 单选
//绑定动态表单
if
(
entry
.
getKey
().
indexOf
(
ComponentEnum
.
DYNAMIC_TABLE
.
getValue
())
!=
-
1
)
{
ArrayList
<
Map
<
String
,
Object
>>
listMap
=
(
ArrayList
)
entry
.
getValue
();
for
(
Map
<
String
,
Object
>
map
:
listMap
)
{
Integer
index
=
(
Integer
)
map
.
get
(
"index"
);
if
(!
ObjectUtils
.
isEmpty
(
index
)){
map
.
put
(
"index"
,
index
+
1
);
}
}
builder
.
bind
(
entry
.
getKey
(),
new
MultipleRowTableRenderPolicy
());
}
//绑定转换list list_1_身份证
...
...
@@ -426,6 +435,10 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
if
(
addMap
.
size
()
>
0
)
{
data
.
putAll
(
addMap
);
}
//将data中的list中的index 加1
//查询是否有多选框,
//获取模板文件地址
MatterDatumEntity
docTemplateEntity
=
this
.
get
(
docFormVo
.
getId
(),
context
);
...
...
@@ -433,6 +446,7 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
String
path
=
rootPath
+
docTemplateEntity
.
getTemplatePath
();
String
templateName
=
FileUtil
.
getName
(
path
);
Configure
config
=
builder
.
build
();
XWPFTemplate
template
=
null
;
ByteArrayOutputStream
byteArrayOutputStream
=
null
;
try
{
...
...
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