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
05e48990
Commit
05e48990
authored
Jul 24, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] skip compare and change produce mediea type json
parent
c2acec97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
FinanceDataImportController.java
.../taxtech/atms/controller/FinanceDataImportController.java
+2
-3
FinanceDataImportServiceImpl.java
...h/atms/vat/service/impl/FinanceDataImportServiceImpl.java
+4
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/FinanceDataImportController.java
View file @
05e48990
...
...
@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.RestController;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartHttpServletRequest
;
import
org.thymeleaf.util.StringUtils
;
import
pwc.taxtech.atms.constant.DataImport
;
import
pwc.taxtech.atms.constant.VatErpImportValidation
;
import
pwc.taxtech.atms.constant.enums.ImportType
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
...
...
@@ -56,7 +55,7 @@ public class FinanceDataImportController {
return
ResponseEntity
.
ok
().
body
(
financeDataImport
.
getBasicValidationResults
(
identityService
.
getIdentityUser
().
getID
()));
}
@RequestMapping
(
value
=
"importData/financeDataUpload"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
MULTIPART_FORM_DATA
_VALUE
)
@RequestMapping
(
value
=
"importData/financeDataUpload"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8
_VALUE
)
public
ResponseEntity
FinanceDataUpload
(
@RequestParam
String
importMethod
,
MultipartHttpServletRequest
request
)
{
if
(
request
.
getFileMap
().
size
()
==
0
)
{
return
ResponseEntity
.
ok
(
new
OperationResultDto
(
false
,
"NoFile"
));
...
...
@@ -115,7 +114,7 @@ public class FinanceDataImportController {
}
@RequestMapping
(
value
=
"importData/importFinancedata"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
MULTIPART_FORM_DATA
_VALUE
)
@RequestMapping
(
value
=
"importData/importFinancedata"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8
_VALUE
)
public
ResponseEntity
FinanceImportData
(
@RequestParam
String
importMethod
,
@RequestParam
String
fileName
,
@RequestParam
String
importType
,
@RequestParam
String
fileGuid
,
@RequestParam
Integer
period
,
@RequestParam
String
fileExtension
,
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/FinanceDataImportServiceImpl.java
View file @
05e48990
...
...
@@ -313,10 +313,10 @@ public class FinanceDataImportServiceImpl {
m
.
setChildren
(
children
);
});
parentVouchers
.
sort
(
Comparator
.
comparing
(
VoucherBalanceDto:
:
getAcctCode
));
parentVouchers
.
sort
(
Comparator
.
comparing
(
VoucherBalanceDto:
:
getvID
));
parentVouchers
.
sort
(
Comparator
.
comparing
(
VoucherBalanceDto:
:
getGroup
));
parentVouchers
.
sort
(
Comparator
.
comparing
(
VoucherBalanceDto:
:
getItemID
));
//
parentVouchers.sort(Comparator.comparing(VoucherBalanceDto::getAcctCode));
//
parentVouchers.sort(Comparator.comparing(VoucherBalanceDto::getvID));
//
parentVouchers.sort(Comparator.comparing(VoucherBalanceDto::getGroup));
//
parentVouchers.sort(Comparator.comparing(VoucherBalanceDto::getItemID));
return
parentVouchers
;
}
...
...
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