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
b01c2bc0
Commit
b01c2bc0
authored
May 22, 2019
by
Eddie.Wu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql_chase_bug' into 'dev_mysql'
修复gift查询bug See merge request root/atms!388
parents
7dbe3ca6
3daa8c20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
33 deletions
+32
-33
CitReportUploadService.java
...pwc/taxtech/atms/service/impl/CitReportUploadService.java
+11
-11
ReportUploadService.java
...va/pwc/taxtech/atms/service/impl/ReportUploadService.java
+11
-11
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+0
-0
TemplateServiceImpl.java
...va/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
+10
-7
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+0
-2
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+0
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportUploadService.java
View file @
b01c2bc0
...
...
@@ -25,10 +25,7 @@ import pwc.taxtech.atms.vat.entity.ReportUpload;
import
pwc.taxtech.atms.vat.entity.ReportUploadExample
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -56,13 +53,16 @@ public class CitReportUploadService extends BaseService {
example
.
createCriteria
().
andProjectIdEqualTo
(
param
.
getProjectId
()).
andPeriodEqualTo
(
param
.
getPeriod
()).
andServiceTypeEqualTo
(
EnumServiceType
.
CIT
.
getCode
());
example
.
setOrderByClause
(
" create_time DESC "
);
List
<
ReportUpload
>
dataList
=
reportUploadMapper
.
selectByExample
(
example
);
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
dataList
.
stream
()
.
map
(
o
->
o
.
getFileUploadId
()).
collect
(
Collectors
.
toList
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
List
<
String
>
fileUploadUids
=
dataList
.
stream
()
.
map
(
o
->
o
.
getFileUploadId
()).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
urlMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
fileUploadUids
)){
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
fileUploadUids
);
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
}
}
List
<
ReportUploadResult
>
resultList
=
new
ArrayList
<
ReportUploadResult
>();
for
(
ReportUpload
data:
dataList
){
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ReportUploadService.java
View file @
b01c2bc0
...
...
@@ -25,10 +25,7 @@ import pwc.taxtech.atms.vat.entity.ReportUpload;
import
pwc.taxtech.atms.vat.entity.ReportUploadExample
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -56,13 +53,16 @@ public class ReportUploadService extends BaseService {
example
.
createCriteria
().
andProjectIdEqualTo
(
param
.
getProjectId
()).
andPeriodEqualTo
(
param
.
getPeriod
()).
andServiceTypeEqualTo
(
EnumServiceType
.
VAT
.
getCode
());
example
.
setOrderByClause
(
" create_time DESC "
);
List
<
ReportUpload
>
dataList
=
reportUploadMapper
.
selectByExample
(
example
);
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
dataList
.
stream
()
.
map
(
o
->
o
.
getFileUploadId
()).
collect
(
Collectors
.
toList
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
List
<
String
>
fileUploadUids
=
dataList
.
stream
()
.
map
(
o
->
o
.
getFileUploadId
()).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
urlMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
fileUploadUids
)){
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
fileUploadUids
);
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
}
}
List
<
ReportUploadResult
>
resultList
=
new
ArrayList
<
ReportUploadResult
>();
for
(
ReportUpload
data:
dataList
){
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
b01c2bc0
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
View file @
b01c2bc0
...
...
@@ -100,13 +100,16 @@ public class TemplateServiceImpl extends AbstractService {
List
<
Template
>
templates
=
templateMapper
.
selectByExample
(
example
);
List
<
TemplateDto
>
templateDtos
=
new
ArrayList
<>();
//从文件上传表转换path
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
templates
.
stream
()
.
map
(
o
->
o
.
getPath
()).
collect
(
Collectors
.
toList
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
List
<
String
>
fileUploadUids
=
templates
.
stream
()
.
map
(
o
->
o
.
getPath
()).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
urlMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
fileUploadUids
)){
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
fileUploadUids
);
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
())){
urlMap
=
uploadDetail
.
getList
().
stream
().
collect
(
Collectors
.
toMap
(
DidiFileUploadDetailResult:
:
getUid
,
didiFileUploadDetailResult
->
didiFileUploadDetailResult
.
getViewHttpUrl
()));
}
}
for
(
Template
template
:
templates
)
{
TemplateDto
dto
=
new
TemplateDto
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
b01c2bc0
...
...
@@ -550,7 +550,6 @@ public class ReportGeneratorImpl {
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
Arrays
.
asList
(
a
.
getPath
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
()))
{
path
=
uploadDetail
.
getList
().
get
(
0
).
getViewHttpUrl
();
}
...
...
@@ -634,7 +633,6 @@ public class ReportGeneratorImpl {
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
Arrays
.
asList
(
a
.
getPath
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
()))
{
path
=
uploadDetail
.
getList
().
get
(
0
).
getViewHttpUrl
();
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
b01c2bc0
...
...
@@ -793,7 +793,6 @@ public class ReportServiceImpl extends BaseService {
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
Arrays
.
asList
(
periodTemplate
.
getPath
()));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
is
=
httpFileService
.
getUserTemplate
(
uploadDetail
.
getList
().
get
(
0
).
getViewHttpUrl
());
Workbook
tWorkbook
=
WorkbookFactory
.
create
(
is
);
tWorkbook
=
assembleTaxWorkBook
(
template
,
tWorkbook
,
projectId
,
period
);
...
...
@@ -2671,7 +2670,6 @@ public class ReportServiceImpl extends BaseService {
DidiFileIUploadParam
fileParam
=
new
DidiFileIUploadParam
();
fileParam
.
setUuids
(
Arrays
.
asList
(
templatePath
));
PageInfo
<
DidiFileUploadDetailResult
>
uploadDetail
=
didiFileUploadService
.
queryPage
(
fileParam
);
Map
<
String
,
String
>
urlMap
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
uploadDetail
.
getList
()))
{
templatePath
=
uploadDetail
.
getList
().
get
(
0
).
getViewHttpUrl
();
}
...
...
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