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
833d55f7
Commit
833d55f7
authored
Mar 01, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
90d7ec9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ExportXMLApi.java
src/main/java/com/yxproject/start/api/ExportXMLApi.java
+1
-1
PreproPersonMapper.java
...n/java/com/yxproject/start/mapper/PreproPersonMapper.java
+1
-1
ExportXml.java
src/main/java/com/yxproject/start/utils/ExportXml.java
+2
-0
No files found.
src/main/java/com/yxproject/start/api/ExportXMLApi.java
View file @
833d55f7
...
@@ -48,7 +48,7 @@ public class ExportXMLApi {
...
@@ -48,7 +48,7 @@ public class ExportXMLApi {
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
filesEntity
.
setCreatTime
(
simpleDateFormat
.
format
(
new
Date
()));
filesEntity
.
setCreatTime
(
simpleDateFormat
.
format
(
new
Date
()));
try
{
try
{
ExportXml
.
createToMakePackageXML
(
preproPersonEntities
,
filesEntity
,
"\\zhang
\\
"
);
ExportXml
.
createToMakePackageXML
(
preproPersonEntities
,
filesEntity
,
"\\zhang"
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
src/main/java/com/yxproject/start/mapper/PreproPersonMapper.java
View file @
833d55f7
...
@@ -28,7 +28,7 @@ public interface PreproPersonMapper {
...
@@ -28,7 +28,7 @@ public interface PreproPersonMapper {
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n"
+
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n"
+
"left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID "
+
"left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID "
+
"where 1=1 "
+
"where 1=1 "
+
"<when test='uploadNo!=null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </when>"
+
"
<when test='uploadNo!=null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </when>"
+
" <when test='IDCard!=null'> and GMSFHM = #{IDCard} </when> "
+
" <when test='IDCard!=null'> and GMSFHM = #{IDCard} </when> "
+
" <when test='oldFile!=null'> and files.SOURCE_FILE_NAME =#{oldFile} </when> "
+
" <when test='oldFile!=null'> and files.SOURCE_FILE_NAME =#{oldFile} </when> "
+
" <when test='newFile!=null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </when> "
+
" <when test='newFile!=null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </when> "
+
...
...
src/main/java/com/yxproject/start/utils/ExportXml.java
View file @
833d55f7
...
@@ -20,6 +20,7 @@ public class ExportXml {
...
@@ -20,6 +20,7 @@ public class ExportXml {
* @throws IOException 可能出现文件写入不成功
* @throws IOException 可能出现文件写入不成功
*/
*/
public
static
void
createToMakePackageXML
(
List
<
PreproPersonEntity
>
preproPersonEntities
,
FilesEntity
filesEntity
,
String
url
)
throws
IOException
{
public
static
void
createToMakePackageXML
(
List
<
PreproPersonEntity
>
preproPersonEntities
,
FilesEntity
filesEntity
,
String
url
)
throws
IOException
{
//todo
Document
document
=
DocumentHelper
.
createDocument
();
Document
document
=
DocumentHelper
.
createDocument
();
Element
PACKAGE
=
DocumentHelper
.
createElement
(
"PACKAGE"
);
Element
PACKAGE
=
DocumentHelper
.
createElement
(
"PACKAGE"
);
document
.
setRootElement
(
PACKAGE
);
document
.
setRootElement
(
PACKAGE
);
...
@@ -83,6 +84,7 @@ public class ExportXml {
...
@@ -83,6 +84,7 @@ public class ExportXml {
SJR_YZBM
.
setText
(
replaceNullString
(
preproPersonEntity
.
getSjrYzbm
()));
SJR_YZBM
.
setText
(
replaceNullString
(
preproPersonEntity
.
getSjrYzbm
()));
Element
SJR_TXDZ
=
RECORD
.
addElement
(
"SJR_TXDZ"
);
Element
SJR_TXDZ
=
RECORD
.
addElement
(
"SJR_TXDZ"
);
SJR_TXDZ
.
setText
(
replaceNullString
(
preproPersonEntity
.
getSjrTxdz
()));
SJR_TXDZ
.
setText
(
replaceNullString
(
preproPersonEntity
.
getSjrTxdz
()));
NO
++;
}
}
YXStringUtils
.
saveDom2File
(
document
,
url
+
"\\"
+
"ZAGL_ZZJH_"
+
".xml"
);
YXStringUtils
.
saveDom2File
(
document
,
url
+
"\\"
+
"ZAGL_ZZJH_"
+
".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