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
b5b1cadf
Commit
b5b1cadf
authored
Apr 23, 2019
by
Memorydoc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#
parent
a1c96d37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+8
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
b5b1cadf
...
...
@@ -959,7 +959,7 @@ public class DataImportService extends BaseService {
for
(
int
i
=
0
;
i
<
workbook
.
getNumberOfSheets
();
i
++)
{
Sheet
sheet
=
workbook
.
getSheetAt
(
i
);
if
(
isSheetEmpty
(
sheet
))
continue
;
List
<
RedLetterInfoTable
>
rlits
=
generalRLITs
(
sheet
);
List
<
RedLetterInfoTable
>
rlits
=
generalRLITs
(
sheet
,
tmsPeriod
);
if
(
rlits
.
size
()
<
1
)
continue
;
// 根据主体分组处理
Map
<
String
,
List
<
RedLetterInfoTable
>>
atsGroupRes
=
...
...
@@ -1686,8 +1686,9 @@ public class DataImportService extends BaseService {
dataImportLogs
.
add
(
dataImportLog
);
}
private
List
<
RedLetterInfoTable
>
generalRLITs
(
Sheet
sheet
)
{
private
List
<
RedLetterInfoTable
>
generalRLITs
(
Sheet
sheet
,
Integer
periodDate
)
{
List
<
RedLetterInfoTable
>
rlits
=
Lists
.
newArrayList
();
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMM"
);
for
(
int
j
=
1
;
j
<=
sheet
.
getLastRowNum
();
j
++)
{
RedLetterInfoTable
rlit
=
new
RedLetterInfoTable
();
Long
plId
=
idService
.
nextId
();
...
...
@@ -1702,8 +1703,11 @@ public class DataImportService extends BaseService {
if
(!
""
.
equals
(
value
))
{
rlit
.
setRedLetterInvoiceInfoTableNum
(
new
BigDecimal
(
value
.
toString
()).
toPlainString
());
}
rlit
.
setPeriod
(
DateUtils
.
dateToPeriod
(
row
.
getCell
(
3
).
getDateCellValue
()));
rlit
.
setFillInDate
(
row
.
getCell
(
3
).
getDateCellValue
());
rlit
.
setPeriod
(
periodDate
);
try
{
rlit
.
setFillInDate
(
row
.
getCell
(
1
).
getDateCellValue
());
}
catch
(
Exception
e
){
}
rlit
.
setSalesTaxNumber
(
getCellStringValue
(
row
.
getCell
(
4
)));
rlit
.
setSalespersonName
(
getCellStringValue
(
row
.
getCell
(
5
)));
rlit
.
setTotalAmount
(
getCellBigDecimalValue
(
row
.
getCell
(
6
)));
...
...
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