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
613ccb68
Commit
613ccb68
authored
Mar 11, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
79701cd5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
6 deletions
+25
-6
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+1
-0
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+20
-5
app.js
atms-web/src/main/webapp/Scripts/app.js
+1
-0
module-part1.js
atms-web/src/main/webapp/Scripts/module-part1.js
+1
-1
adminApp.js
atms-web/src/main/webapp/app/adminApp.js
+1
-0
app.js
atms-web/src/main/webapp/app/app.js
+1
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
613ccb68
...
...
@@ -37,6 +37,7 @@ public class TaxDocumentController {
taxDocumentService
.
selectTaxDocumentList
(
taxDocumentDto
);
PageInfo
<
TaxDocument
>
taxDocumentPageInfo
=
page
.
toPageInfo
();
List
<
TaxDocument
>
list
=
taxDocumentPageInfo
.
getList
();
return
PageResultVo
.
getPageResultVo
(
taxDocumentPageInfo
,
list
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
613ccb68
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
com.github.pagehelper.PageInfo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -10,16 +12,16 @@ import pwc.taxtech.atms.common.AuthUserHelper;
import
pwc.taxtech.atms.constant.enums.FileUploadEnum
;
import
pwc.taxtech.atms.dao.TaxDocumentMapper
;
import
pwc.taxtech.atms.dto.TaxDocumentDto
;
import
pwc.taxtech.atms.dto.didiFileUpload.DidiFileIUploadParam
;
import
pwc.taxtech.atms.dto.didiFileUpload.DidiFileUploadDetailResult
;
import
pwc.taxtech.atms.entity.OperationLogTaxDocument
;
import
pwc.taxtech.atms.entity.TaxDocument
;
import
pwc.taxtech.atms.entity.TaxDocumentExample
;
import
pwc.taxtech.atms.vat.entity.FileUpload
;
import
javax.annotation.Resource
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.UUID
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* 查询
...
...
@@ -42,9 +44,22 @@ public class TaxDocumentServiceImpl {
DidiFileUploadService
didiFileUploadService
;
public
List
<
TaxDocument
>
selectTaxDocumentList
(
TaxDocumentDto
taxDocumentDto
)
{
return
taxDocumentMapper
.
selectByExample
(
getExample
(
taxDocumentDto
));
List
<
TaxDocument
>
dataList
=
taxDocumentMapper
.
selectByExample
(
getExample
(
taxDocumentDto
));
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
()));
}
for
(
TaxDocument
data:
dataList
){
data
.
setFilePositionUrl
(
urlMap
.
get
(
data
.
getFileUploadId
()));
}
return
dataList
;
}
/**
* 根据条件查询
*
...
...
atms-web/src/main/webapp/Scripts/app.js
View file @
613ccb68
...
...
@@ -277,6 +277,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls',
appPart
:
'app'
,
vat
:
'vat'
,
cit
:
'cit'
,
taxDocumentList
:
'taxDocumentList'
,
noPermissionPage
:
'noPermissionPage'
,
/// <summary>
/// async load translation tables into application for specified part names that required for the view.
...
...
atms-web/src/main/webapp/Scripts/module-part1.js
View file @
613ccb68
...
...
@@ -265,7 +265,7 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c
'@'
:
{
controller
:
[
'$scope'
,
'$stateParams'
,
'appTranslation'
,
function
(
$scope
,
$stateParams
,
appTranslation
)
{
appTranslation
.
load
([
appTranslation
.
vat
,
appTranslation
.
appPar
t
]);
appTranslation
.
load
([
appTranslation
.
taxDocumentList
,
appTranslation
.
taxDocumentLis
t
]);
}],
template
:
'<tax-document-list servicetypeid="2"></tax-document-list>'
}
...
...
atms-web/src/main/webapp/app/adminApp.js
View file @
613ccb68
...
...
@@ -259,6 +259,7 @@ var app = angular.module('adminApp', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.t
// AppPart is for the translation of application level, not for a module for a business logic.
appPart
:
'app'
,
vat
:
'vat'
,
// other parts for business logic
//worklist: 'worklist',
//registration: 'registration',
...
...
atms-web/src/main/webapp/app/app.js
View file @
613ccb68
...
...
@@ -275,6 +275,7 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls',
appPart
:
'app'
,
vat
:
'vat'
,
cit
:
'cit'
,
taxDocumentList
:
'taxDocumentList'
,
noPermissionPage
:
'noPermissionPage'
,
/// <summary>
/// async load translation tables into application for specified part names that required for the view.
...
...
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