Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
58d42ba0
Commit
58d42ba0
authored
Nov 17, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle_sherlock' into 'dev_oracle'
export order See merge request root/atms!194
parents
8b0f05f8
14c0f1ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
InputInvoiceImportController.java
...taxtech/atms/controller/InputInvoiceImportController.java
+2
-2
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+1
-1
ExcelUtil.java
.../src/main/java/pwc/taxtech/atms/thirdparty/ExcelUtil.java
+4
-5
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/InputInvoiceImportController.java
View file @
58d42ba0
...
...
@@ -112,7 +112,7 @@ public class InputInvoiceImportController {
inputInvoiceExportDto
.
setTaxAmount
(
inputInvoice
.
getHJSE
()
!=
null
?
new
BigDecimal
(
inputInvoice
.
getHJJE
().
replace
(
","
,
""
))
:
BigDecimal
.
ZERO
);
inputInvoiceExportDtos
.
add
(
inputInvoiceExportDto
);
}
Map
<
String
,
String
>
header
=
new
HashMap
<>();
Map
<
String
,
String
>
header
=
new
Linked
HashMap
<>();
header
.
put
(
"PeriodId"
,
"期间"
);
header
.
put
(
"InvoiceDate"
,
"开票日期"
);
header
.
put
(
"InvoiceCode"
,
"发票代码"
);
...
...
@@ -135,7 +135,7 @@ public class InputInvoiceImportController {
excelSheetA
.
setSheetName
(
"sheetA"
);
Map
<
String
,
String
>
header2
=
new
HashMap
<>();
Map
<
String
,
String
>
header2
=
new
Linked
HashMap
<>();
header2
.
put
(
"PeriodId"
,
"期间"
);
header2
.
put
(
"InvoiceCode"
,
"发票代码"
);
header2
.
put
(
"InvoiceNumber"
,
"发票号码"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
58d42ba0
...
...
@@ -106,7 +106,7 @@ public class OutputInvoiceController {
d
.
setInvoiceTypeName
(
d
.
getInvoiceTypeName
());
list2
.
add
(
d
);
});
Map
<
String
,
String
>
header
=
new
HashMap
<>();
Map
<
String
,
String
>
header
=
new
Linked
HashMap
<>();
header
.
put
(
"InvoiceTypeName"
,
"发票类型"
);
header
.
put
(
"ClassCode"
,
"发票代码"
);
header
.
put
(
"InvoiceNumber"
,
"发票号码"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/thirdparty/ExcelUtil.java
View file @
58d42ba0
...
...
@@ -273,12 +273,11 @@ public class ExcelUtil {
// 产生表格标题行
HSSFRow
row
=
sheet
.
createRow
(
0
);
// 标题行转中文
Set
<
String
>
keys
=
headers
.
keySet
();
Iterator
<
String
>
it1
=
keys
.
iterator
();
String
key
=
""
;
//存放临时键变量
Iterator
<
Map
.
Entry
<
String
,
String
>>
it1
=
headers
.
entrySet
().
iterator
();
String
key
=
StringUtils
.
EMPTY
;
//存放临时键变量
int
c
=
0
;
//标题列数
while
(
it1
.
hasNext
()){
key
=
it1
.
next
();
key
=
it1
.
next
()
.
getKey
()
;
if
(
headers
.
containsKey
(
key
))
{
HSSFCell
cell
=
row
.
createCell
(
c
);
HSSFRichTextString
text
=
new
HSSFRichTextString
(
headers
.
get
(
key
));
...
...
@@ -300,7 +299,7 @@ public class ExcelUtil {
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
t
;
int
cellNum
=
0
;
//遍历列名
Iterator
<
String
>
it2
=
keys
.
iterator
();
Iterator
<
String
>
it2
=
headers
.
keySet
()
.
iterator
();
while
(
it2
.
hasNext
()){
key
=
it2
.
next
();
if
(!
headers
.
containsKey
(
key
))
{
...
...
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