Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjsgfa_mysql
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
zjsgfa_mysql
Commits
c08a7e1d
Commit
c08a7e1d
authored
Dec 17, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9db85389
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjDjjcController.java
+19
-16
No files found.
src/main/java/com/zjsgfa/project/zjsgfa/controller/SjDjjcController.java
View file @
c08a7e1d
...
...
@@ -2193,7 +2193,7 @@ public class SjDjjcController extends BaseController
InputStream
in
=
null
;
XWPFTemplate
template
=
null
;
OutputStream
os
=
null
;
//
try {
try
{
in
=
this
.
getClass
().
getResourceAsStream
(
"/static/excel/sgfamb.docx"
);
os
=
response
.
getOutputStream
();
String
fileName
=
sjDjjc
.
getJh
()
+
"井施工方案"
;
...
...
@@ -2271,21 +2271,21 @@ public class SjDjjcController extends BaseController
template
=
compile
.
render
(
data
);
template
.
write
(
os
);
os
.
flush
();
//
} catch (Exception e) {
//
throw e;
//
} finally {
//
if (in != null) {
//
in.close();
//
}
//
if (template != null) {
//
template.close();
//
}
//
//
if (os != null) {
//
os.close();
//
}
//
//
}
}
catch
(
Exception
e
)
{
throw
e
;
}
finally
{
if
(
in
!=
null
)
{
in
.
close
();
}
if
(
template
!=
null
)
{
template
.
close
();
}
if
(
os
!=
null
)
{
os
.
close
();
}
}
}
public
Map
<
String
,
Object
>
buildDataModel
(
SjDjjc
sjDjjc
)
{
...
...
@@ -2787,6 +2787,9 @@ public class SjDjjcController extends BaseController
sjFdsgcsZjyFdxnb
.
setJh
(
jh
);
sjFdsgcsZjyFdxnb
.
setKc
(
kc
);
List
<
SjFdsgcsZjyFdxnb
>
sjFdsgcsZjyFdxnbList
=
sjFdsgcsZjyFdxnbMapper
.
selectSjFdsgcsZjyFdxnbList
(
sjFdsgcsZjyFdxnb
);
if
(
sjFdsgcsZjyFdxnbList
.
size
()==
0
){
sjFdsgcsZjyFdxnbList
.
add
(
new
SjFdsgcsZjyFdxnb
());
}
map
.
put
(
"sjFdsgcsZjyFdxnbList"
,
sjFdsgcsZjyFdxnbList
);
fdsgcsList
.
add
(
map
);
}
...
...
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