Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
customer-service
Commits
f33986b6
Commit
f33986b6
authored
Apr 03, 2024
by
yajun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决sql 没有空格
parent
9c72c4ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ThirdWorkOrderServiceImpl.java
...roup/customer/service/impl/ThirdWorkOrderServiceImpl.java
+6
-6
No files found.
src/main/java/cn/quantgroup/customer/service/impl/ThirdWorkOrderServiceImpl.java
View file @
f33986b6
...
...
@@ -70,16 +70,16 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService {
StringBuffer
conditionSql
=
new
StringBuffer
();
if
(
param
.
getId
()!=
null
){
conditionSql
.
append
(
"and lc.id="
+
param
.
getId
());
conditionSql
.
append
(
"and lc.id="
+
param
.
getId
()
+
" "
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getOrderId
())){
conditionSql
.
append
(
"and lc.field10='"
+
param
.
getOrderId
()+
"'"
);
conditionSql
.
append
(
"and lc.field10='"
+
param
.
getOrderId
()+
"'
"
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getProcessInstanceId
())){
conditionSql
.
append
(
"and lwpi.process_instance_id='"
+
param
.
getProcessInstanceId
()+
"'"
);
conditionSql
.
append
(
"and lwpi.process_instance_id='"
+
param
.
getProcessInstanceId
()+
"'
"
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getPriority
())){
conditionSql
.
append
(
"and lwpi.priority='"
+
param
.
getPriority
()+
"'"
);
conditionSql
.
append
(
"and lwpi.priority='"
+
param
.
getPriority
()+
"'
"
);
}
if
(
CollectionUtils
.
isNotEmpty
(
param
.
getStatusList
())){
StringBuffer
statusSb
=
new
StringBuffer
();
...
...
@@ -89,10 +89,10 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService {
conditionSql
.
append
(
"and lwpi.global_state in ("
+
statusSb
.
substring
(
1
)+
") "
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getCreateUser
())){
conditionSql
.
append
(
"and lc.create_user='"
+
param
.
getCreateUser
()+
"'"
);
conditionSql
.
append
(
"and lc.create_user='"
+
param
.
getCreateUser
()+
"'
"
);
}
if
(
StringUtils
.
isNotBlank
(
param
.
getAcceptUser
())){
conditionSql
.
append
(
"and assignee.assignee='"
+
param
.
getAcceptUser
()+
"'"
);
conditionSql
.
append
(
"and assignee.assignee='"
+
param
.
getAcceptUser
()+
"'
"
);
}
if
(
StringUtils
.
isNotBlank
(
conditionSql
.
toString
())){
...
...
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