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
eaed11b0
Commit
eaed11b0
authored
Oct 15, 2019
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改QuerySequence
parent
a354c22f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
ExportXMLApi.java
src/main/java/com/yxproject/start/api/ExportXMLApi.java
+2
-2
QuerySequenceMapper.java
.../java/com/yxproject/start/mapper/QuerySequenceMapper.java
+2
-2
QuerySequenceSercive.java
.../java/com/yxproject/start/utils/QuerySequenceSercive.java
+4
-3
No files found.
src/main/java/com/yxproject/start/api/ExportXMLApi.java
View file @
eaed11b0
...
...
@@ -306,7 +306,7 @@ public class ExportXMLApi {
}
});
try
{
FileOutputStream
fos
=
new
FileOutputStream
(
"D:\\XML\\"
+
"ZAGL_
ZZJH
_"
+
filesEntity
.
getDwdm
()
+
getCurrentDate2String
(
"yyyyMMdd"
)
+
cardType
+
files_seq
+
".xml"
);
FileOutputStream
fos
=
new
FileOutputStream
(
"D:\\XML\\"
+
"ZAGL_
YDZZ
_"
+
filesEntity
.
getDwdm
()
+
getCurrentDate2String
(
"yyyyMMdd"
)
+
cardType
+
files_seq
+
".xml"
);
OutputStreamWriter
osw
=
new
OutputStreamWriter
(
fos
,
"UTF-8"
);
OutputFormat
of
=
new
OutputFormat
();
of
.
setEncoding
(
"UTF-8"
);
...
...
@@ -321,7 +321,7 @@ public class ExportXMLApi {
e
.
printStackTrace
();
}
System
.
out
.
println
(
"XML文件生成成功..."
+
new
Date
());
return
"D:\\XML\\"
+
"ZAGL_
ZZJH
_"
+
filesEntity
.
getDwdm
()
+
getCurrentDate2String
(
"yyyyMMdd"
)
+
cardType
+
files_seq
+
".xml"
;
return
"D:\\XML\\"
+
"ZAGL_
YDZZ
_"
+
filesEntity
.
getDwdm
()
+
getCurrentDate2String
(
"yyyyMMdd"
)
+
cardType
+
files_seq
+
".xml"
;
}
/**
...
...
src/main/java/com/yxproject/start/mapper/QuerySequenceMapper.java
View file @
eaed11b0
...
...
@@ -13,6 +13,6 @@ import java.util.Map;
*/
@Mapper
public
interface
QuerySequenceMapper
{
@Select
(
"select
#{sequenceName}
from dual"
)
public
int
selectSequenceNextValue
(
@Param
(
"sequenceName"
)
String
sequenceName
);
@Select
(
"select
${sequenceName} sequenceName
from dual"
)
public
List
<
Map
<
String
,
Object
>>
selectSequenceNextValue
(
@Param
(
"sequenceName"
)
String
sequenceName
);
}
src/main/java/com/yxproject/start/utils/QuerySequenceSercive.java
View file @
eaed11b0
...
...
@@ -24,9 +24,10 @@ public class QuerySequenceSercive {
//
// }
// return mapList.get(0).get("NUM2").toString();
int
i
=
querySequenceMapper
.
selectSequenceNextValue
(
sequenceName
+
".nextval"
);
System
.
out
.
println
(
i
);
return
null
;
List
<
Map
<
String
,
Object
>>
maps
=
querySequenceMapper
.
selectSequenceNextValue
(
sequenceName
+
".nextval"
);
Object
sequencename
=
maps
.
get
(
0
).
get
(
"SEQUENCENAME"
);
System
.
out
.
println
(
maps
.
get
(
0
).
get
(
"SEQUENCENAME"
));
return
sequencename
+
""
;
}
...
...
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