Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
01b5bb24
Commit
01b5bb24
authored
Jan 25, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4151e47c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+1
-1
SqlWhere.java
src/main/java/com/egolm/film/util/SqlWhere.java
+9
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
01b5bb24
...
...
@@ -766,7 +766,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
from_round
==
0
)
{
where
.
eq
(
"t.enroll_type_name"
,
4
);
}
else
{
where
.
eq
(
"t.state_3_round"
,
from_round
);
where
.
ne
(
"t.t.enroll_type_name"
,
4
).
eq
(
"t.state_3_round"
,
from_round
);
}
}
sql
=
"select t.* from ("
+
sql
+
") t "
+
StringUtil
.
join
(
" and "
,
" where "
,
""
,
where
.
getStringList
())
+
" order by t.film_id desc"
;
...
...
src/main/java/com/egolm/film/util/SqlWhere.java
View file @
01b5bb24
...
...
@@ -42,6 +42,14 @@ public class SqlWhere {
return
this
;
}
public
SqlWhere
ne
(
String
name
,
Object
obj
)
{
if
(
StringUtil
.
isNotBlank
(
obj
))
{
this
.
strList
.
add
(
name
+
" != ?"
);
this
.
objList
.
add
(
obj
);
}
return
this
;
}
public
SqlWhere
gt
(
String
name
,
Object
obj
)
{
if
(
StringUtil
.
isNotBlank
(
obj
))
{
this
.
strList
.
add
(
name
+
" > ?"
);
...
...
@@ -125,5 +133,5 @@ public class SqlWhere {
public
List
<
Object
>
getObjectList
()
{
return
objList
;
}
}
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