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
0d9c635a
Commit
0d9c635a
authored
Aug 02, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fixed index of get vlaue from code
parent
b5725e69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
VoucherServiceImpl.java
...pwc/taxtech/atms/vat/service/impl/VoucherServiceImpl.java
+23
-14
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/VoucherServiceImpl.java
View file @
0d9c635a
...
@@ -9,13 +9,22 @@ import pwc.taxtech.atms.constant.enums.VoucherLevelEnum;
...
@@ -9,13 +9,22 @@ import pwc.taxtech.atms.constant.enums.VoucherLevelEnum;
import
pwc.taxtech.atms.constant.enums.VoucherSearchEnum
;
import
pwc.taxtech.atms.constant.enums.VoucherSearchEnum
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.PagingDto
;
import
pwc.taxtech.atms.dto.PagingDto
;
import
pwc.taxtech.atms.dto.vatdto.*
;
import
pwc.taxtech.atms.dto.vatdto.QueryConditionDto
;
import
pwc.taxtech.atms.vat.entity.VatEnterpriseAccountExample
;
import
pwc.taxtech.atms.dto.vatdto.QueryVoucherDto
;
import
pwc.taxtech.atms.dto.vatdto.QueryVoucherMainDto
;
import
pwc.taxtech.atms.dto.vatdto.VIDCountDto
;
import
pwc.taxtech.atms.dto.vatdto.VoucherDto
;
import
pwc.taxtech.atms.dto.vatdto.VoucherMainDto
;
import
pwc.taxtech.atms.dto.vatdto.VoucherTmplDto
;
import
pwc.taxtech.atms.vat.service.VoucherService
;
import
pwc.taxtech.atms.vat.service.VoucherService
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -602,77 +611,77 @@ public class VoucherServiceImpl extends VatAbstractService implements VoucherSer
...
@@ -602,77 +611,77 @@ public class VoucherServiceImpl extends VatAbstractService implements VoucherSer
switch
(
queryConditionDto
.
getConditionName
())
{
switch
(
queryConditionDto
.
getConditionName
())
{
case
VoucherSelect
.
S_CorpAcctCoding
:
case
VoucherSelect
.
S_CorpAcctCoding
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`AcctCode`"
,
"`AcctCode`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_CorpAcctName
:
case
VoucherSelect
.
S_CorpAcctName
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"EnterpriseAccount.`Name`"
,
"EnterpriseAccount.`Name`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_VoucherType
:
case
VoucherSelect
.
S_VoucherType
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Group`"
,
"`Group`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_VoucherVID
:
case
VoucherSelect
.
S_VoucherVID
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`VID`"
,
"`VID`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_VoucherSummary
:
case
VoucherSelect
.
S_VoucherSummary
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Summary`"
,
"`Summary`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_Period
:
case
VoucherSelect
.
S_Period
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Period`"
,
"`Period`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_Debit
:
case
VoucherSelect
.
S_Debit
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Debit`"
,
"`Debit`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_Credit
:
case
VoucherSelect
.
S_Credit
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Credit`"
,
"`Credit`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_Date
:
case
VoucherSelect
.
S_Date
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Date`"
,
"`Date`"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_CustomerCode
:
case
VoucherSelect
.
S_CustomerCode
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"Voucher.CustomerCode"
,
"Voucher.CustomerCode"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
break
;
break
;
case
VoucherSelect
.
S_CustomerName
:
case
VoucherSelect
.
S_CustomerName
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
" "
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()]
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"Voucher.CustomerName"
,
"Voucher.CustomerName"
,
mainRelation
,
mainRelation
,
null
));
,
null
));
...
...
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