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
e1982a52
Commit
e1982a52
authored
Aug 02, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] split space with \s+ for sql more blank where condition
parent
e6e4c719
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
VoucherServiceImpl.java
...pwc/taxtech/atms/vat/service/impl/VoucherServiceImpl.java
+11
-11
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/VoucherServiceImpl.java
View file @
e1982a52
...
...
@@ -601,77 +601,77 @@ public class VoucherServiceImpl extends VatAbstractService implements VoucherSer
for
(
QueryConditionDto
queryConditionDto
:
listQueryCondition
)
{
switch
(
queryConditionDto
.
getConditionName
())
{
case
VoucherSelect
.
S_CorpAcctCoding
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`AcctCode`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_CorpAcctName
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"EnterpriseAccount.`Name`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_VoucherType
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Group`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_VoucherVID
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`VID`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_VoucherSummary
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Summary`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_Period
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Period`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_Debit
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Debit`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_Credit
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Credit`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_Date
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"`Date`"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_CustomerCode
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"Voucher.CustomerCode"
,
mainRelation
,
null
));
break
;
case
VoucherSelect
.
S_CustomerName
:
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
split
(
"
"
))
tmpls
.
add
(
createQueryScriptByTmplList
(
Arrays
.
asList
(
queryConditionDto
.
getSearchValue
().
trim
().
split
(
"\\s+
"
))
,
VoucherSearchEnum
.
values
()[
queryConditionDto
.
getSearchKeyWord
()
-
1
]
,
"Voucher.CustomerName"
,
mainRelation
...
...
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