Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
3ec8aece
Commit
3ec8aece
authored
Feb 12, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
40b2e046
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+1
-1
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+6
-2
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
3ec8aece
...
@@ -125,7 +125,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -125,7 +125,7 @@ public class ReviewServiceImpl implements ReviewService {
}
else
{
}
else
{
w2
.
where
(
"(t.en_name like ? or t.cn_name like ? or t.director_name like ?)"
,
new
Object
[]
{
lkstr
,
lkstr
,
lkstr
});
w2
.
where
(
"(t.en_name like ? or t.cn_name like ? or t.director_name like ?)"
,
new
Object
[]
{
lkstr
,
lkstr
,
lkstr
});
}
}
sql
=
"select t.* from ("
+
sql
+
") t"
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
w2
.
getStringList
())
+
" order by t.id desc"
;
sql
=
"select t.* from ("
+
sql
+
") t"
+
StringUtil
.
join
(
" and "
,
" where "
,
" "
,
" "
,
w2
.
getStringList
());
w1
.
getObjectList
().
addAll
(
w2
.
getObjectList
());
w1
.
getObjectList
().
addAll
(
w2
.
getObjectList
());
}
}
return
jdbcTemplate
.
limit
(
sql
,
page
,
w1
.
getObjectArray
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
w1
.
getObjectArray
());
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
3ec8aece
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.Util
;
import
com.egolm.common.Util
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
...
@@ -73,6 +74,7 @@ public class AdminReviewController {
...
@@ -73,6 +74,7 @@ public class AdminReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"opt_state"
,
value
=
"评选状态 0未评选 1有争议 2管理员分配 3已完成"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"opt_state"
,
value
=
"评选状态 0未评选 1有争议 2管理员分配 3已完成"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"limitKey"
,
value
=
"排序关键字"
),
})
})
public
Object
list
(
public
Object
list
(
String
keyword
,
String
keyword
,
...
@@ -85,10 +87,12 @@ public class AdminReviewController {
...
@@ -85,10 +87,12 @@ public class AdminReviewController {
Integer
allot_state
,
Integer
allot_state
,
Integer
opt_state
,
Integer
opt_state
,
Long
index
,
Long
index
,
Long
limit
)
{
Long
limit
,
String
limitKey
)
{
index
=
index
==
null
?
1
:
index
;
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
limitKey
=
StringUtil
.
isBlank
(
limitKey
)
?
"film_no desc"
:
limitKey
;
Page
page
=
new
Page
(
index
,
limit
,
limitKey
);
Fc_admin
admin
=
Util
.
mapTo
(
tokenService
.
getTokenObj
(),
Fc_admin
.
class
);
Fc_admin
admin
=
Util
.
mapTo
(
tokenService
.
getTokenObj
(),
Fc_admin
.
class
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryReviewListForAdmin
(
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryReviewListForAdmin
(
keyword
,
keyword
,
...
...
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