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
d056124c
Commit
d056124c
authored
Nov 18, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
77d46e28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DataInitTest.java
...i/src/test/java/pwc/taxtech/atms/common/DataInitTest.java
+3
-3
No files found.
atms-api/src/test/java/pwc/taxtech/atms/common/DataInitTest.java
View file @
d056124c
...
@@ -93,7 +93,7 @@ public class DataInitTest extends CommonIT {
...
@@ -93,7 +93,7 @@ public class DataInitTest extends CommonIT {
@Test
@Test
public
void
initInput
()
throws
Exception
{
public
void
initInput
()
throws
Exception
{
Workbook
workbook
=
WorkbookFactory
.
create
(
new
File
(
"C:\\Users\\Eddie Wu\\Desktop\\导入
/导入模板_进项主表_绿能_201809
.xls"
));
Workbook
workbook
=
WorkbookFactory
.
create
(
new
File
(
"C:\\Users\\Eddie Wu\\Desktop\\导入
\\进销项/导入模板_进项主表_乐叶_201807
.xls"
));
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
for
(
int
r
=
1
;
r
<=
sheet
.
getLastRowNum
();
r
++)
{
for
(
int
r
=
1
;
r
<=
sheet
.
getLastRowNum
();
r
++)
{
try
{
try
{
...
@@ -119,7 +119,7 @@ public class DataInitTest extends CommonIT {
...
@@ -119,7 +119,7 @@ public class DataInitTest extends CommonIT {
invoice
.
setFPZT
(
sheet
.
getRow
(
r
).
getCell
(
27
).
getStringCellValue
());
invoice
.
setFPZT
(
sheet
.
getRow
(
r
).
getCell
(
27
).
getStringCellValue
());
invoice
.
setCYZT
(
sheet
.
getRow
(
r
).
getCell
(
28
).
getStringCellValue
());
invoice
.
setCYZT
(
sheet
.
getRow
(
r
).
getCell
(
28
).
getStringCellValue
());
invoice
.
setRZZT
(
sheet
.
getRow
(
r
).
getCell
(
29
).
getStringCellValue
());
invoice
.
setRZZT
(
sheet
.
getRow
(
r
).
getCell
(
29
).
getStringCellValue
());
invoice
.
setRZSQ
(
sheet
.
getRow
(
r
).
getCell
(
30
).
getStringCellValue
(
));
invoice
.
setRZSQ
(
StringUtils
.
replace
(
sheet
.
getRow
(
r
).
getCell
(
30
).
getStringCellValue
(),
"-"
,
""
));
invoice
.
setRZSJ
(
sheet
.
getRow
(
r
).
getCell
(
31
).
getStringCellValue
());
invoice
.
setRZSJ
(
sheet
.
getRow
(
r
).
getCell
(
31
).
getStringCellValue
());
invoice
.
setRZJG
(
sheet
.
getRow
(
r
).
getCell
(
32
).
getStringCellValue
());
invoice
.
setRZJG
(
sheet
.
getRow
(
r
).
getCell
(
32
).
getStringCellValue
());
invoice
.
setCJSJ
(
sheet
.
getRow
(
r
).
getCell
(
34
).
getStringCellValue
());
invoice
.
setCJSJ
(
sheet
.
getRow
(
r
).
getCell
(
34
).
getStringCellValue
());
...
@@ -172,7 +172,7 @@ public class DataInitTest extends CommonIT {
...
@@ -172,7 +172,7 @@ public class DataInitTest extends CommonIT {
@Test
@Test
public
void
initOutput
()
throws
Exception
{
public
void
initOutput
()
throws
Exception
{
Workbook
workbook
=
WorkbookFactory
.
create
(
new
File
(
"C:\\Users\\Eddie Wu\\Desktop\\导入
/导入模板_销项主表_绿能_201809(1)
.xlsx"
));
Workbook
workbook
=
WorkbookFactory
.
create
(
new
File
(
"C:\\Users\\Eddie Wu\\Desktop\\导入
\\进销项/导入模板_销项主表_绿能_201809
.xlsx"
));
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
Sheet
sheet
=
workbook
.
getSheetAt
(
0
);
for
(
int
r
=
1
;
r
<=
sheet
.
getLastRowNum
();
r
++)
{
for
(
int
r
=
1
;
r
<=
sheet
.
getLastRowNum
();
r
++)
{
try
{
try
{
...
...
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