Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
c799060a
Commit
c799060a
authored
Mar 12, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
e021f88c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+1
-1
ExportXMLApi.java
src/main/java/com/yxproject/start/api/ExportXMLApi.java
+4
-4
No files found.
src/main/java/com/yxproject/start/api/ExportExcelApi.java
View file @
c799060a
...
@@ -35,7 +35,7 @@ public class ExportExcelApi {
...
@@ -35,7 +35,7 @@ public class ExportExcelApi {
// //使用Servlet实现文件下载的时候,避免浏览器自动打开文件
// //使用Servlet实现文件下载的时候,避免浏览器自动打开文件
String
fout
=
null
;
String
fout
=
null
;
fout
=
ExportExcel
.
exportExcelDate
(
mapList
);
fout
=
ExportExcel
.
exportExcelDate
(
mapList
);
String
outFile
=
dateTime
+
"
公安网数据
"
;
String
outFile
=
dateTime
+
"
myExcel
"
;
try
{
try
{
FileInputStream
fis
=
new
FileInputStream
(
new
File
(
fout
));
FileInputStream
fis
=
new
FileInputStream
(
new
File
(
fout
));
byte
[]
b
=
new
byte
[
fis
.
available
()];
byte
[]
b
=
new
byte
[
fis
.
available
()];
...
...
src/main/java/com/yxproject/start/api/ExportXMLApi.java
View file @
c799060a
...
@@ -162,7 +162,7 @@ public class ExportXMLApi {
...
@@ -162,7 +162,7 @@ public class ExportXMLApi {
* @throws IOException 可能出现文件写入不成功
* @throws IOException 可能出现文件写入不成功
*/
*/
private
String
createToMakePackageXML
(
List
<
PreproPersonEntity
>
preproPersonEntities
,
FilesEntity
filesEntity
,
String
url
)
throws
IOException
{
private
String
createToMakePackageXML
(
List
<
PreproPersonEntity
>
preproPersonEntities
,
FilesEntity
filesEntity
,
String
url
)
throws
IOException
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy
-MM-
dd"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy
MM
dd"
);
SimpleDateFormat
simpleDateFormat2
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
SimpleDateFormat
simpleDateFormat2
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
Document
document
=
DocumentHelper
.
createDocument
();
Document
document
=
DocumentHelper
.
createDocument
();
Element
PACKAGE
=
DocumentHelper
.
createElement
(
"PACKAGE"
);
Element
PACKAGE
=
DocumentHelper
.
createElement
(
"PACKAGE"
);
...
@@ -186,7 +186,7 @@ public class ExportXMLApi {
...
@@ -186,7 +186,7 @@ public class ExportXMLApi {
newFilesEntity
.
setVersionCode
(
filesEntity
.
getVersionCode
());
newFilesEntity
.
setVersionCode
(
filesEntity
.
getVersionCode
());
newFilesEntity
.
setRecordNumber
((
long
)
preproPersonEntities
.
size
());
newFilesEntity
.
setRecordNumber
((
long
)
preproPersonEntities
.
size
());
long
l
=
newFilesService
.
saveNewFiles
(
newFilesEntity
);
long
l
=
newFilesService
.
saveNewFiles
(
newFilesEntity
);
newFilesEntity
.
setNewFileName
(
simpleDateFormat
.
format
(
new
Date
())+
"-
"
+
newFilesEntity
.
getId
());
newFilesEntity
.
setNewFileName
(
"ZAGL_ZZJH_"
+
filesEntity
.
getDwdm
()+
simpleDateFormat
.
format
(
new
Date
())+
"
"
+
newFilesEntity
.
getId
());
newFilesService
.
updateNewFileName
(
newFilesEntity
);
newFilesService
.
updateNewFileName
(
newFilesEntity
);
int
NO
=
1
;
int
NO
=
1
;
...
@@ -246,7 +246,7 @@ public class ExportXMLApi {
...
@@ -246,7 +246,7 @@ public class ExportXMLApi {
preproPersonService
.
updatePreproPerson_NewFileName
(
preproPersonEntities
);
preproPersonService
.
updatePreproPerson_NewFileName
(
preproPersonEntities
);
String
files_seq
=
newFilesEntity
.
getId
()+
""
;
String
files_seq
=
newFilesEntity
.
getId
()+
""
;
try
{
try
{
FileOutputStream
fos
=
new
FileOutputStream
(
"D:\\XML\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"-"
+
files_seq
+
".xml"
);
FileOutputStream
fos
=
new
FileOutputStream
(
"D:\\XML\\"
+
"ZAGL_ZZJH_"
+
filesEntity
.
getDwdm
()
+
simpleDateFormat
.
format
(
new
Date
())+
"-"
+
files_seq
+
".xml"
);
OutputStreamWriter
osw
=
new
OutputStreamWriter
(
fos
,
"UTF-8"
);
OutputStreamWriter
osw
=
new
OutputStreamWriter
(
fos
,
"UTF-8"
);
OutputFormat
of
=
new
OutputFormat
();
OutputFormat
of
=
new
OutputFormat
();
of
.
setEncoding
(
"UTF-8"
);
of
.
setEncoding
(
"UTF-8"
);
...
@@ -265,7 +265,7 @@ public class ExportXMLApi {
...
@@ -265,7 +265,7 @@ public class ExportXMLApi {
// return document;
// return document;
return
"D:\\XML\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"-"
+
files_seq
+
".xml"
;
return
"D:\\XML\\"
+
"ZAGL_ZZJH_"
+
filesEntity
.
getDwdm
()+
simpleDateFormat
.
format
(
new
Date
())+
"-"
+
files_seq
+
".xml"
;
}
}
/**
/**
...
...
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