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
29cc427c
Commit
29cc427c
authored
Feb 12, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
3ec8aece
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+1
-3
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+3
-1
No files found.
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
29cc427c
...
@@ -14,7 +14,6 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -14,7 +14,6 @@ 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
;
...
@@ -88,10 +87,9 @@ public class AdminReviewController {
...
@@ -88,10 +87,9 @@ public class AdminReviewController {
Integer
opt_state
,
Integer
opt_state
,
Long
index
,
Long
index
,
Long
limit
,
Long
limit
,
String
limitKey
)
{
String
[]
limitKey
)
{
index
=
index
==
null
?
1
:
index
;
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
limit
=
limit
==
null
?
20
:
limit
;
limitKey
=
StringUtil
.
isBlank
(
limitKey
)
?
"film_no desc"
:
limitKey
;
Page
page
=
new
Page
(
index
,
limit
,
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
(
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
29cc427c
...
@@ -57,6 +57,7 @@ public class UserReviewController {
...
@@ -57,6 +57,7 @@ public class UserReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type_id"
,
value
=
"申报奖项ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type_id"
,
value
=
"申报奖项ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"index"
,
value
=
"分页页码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"index"
,
value
=
"分页页码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"limitKey"
,
value
=
"分页排序"
),
})
})
public
Object
getReviewList
(
public
Object
getReviewList
(
boolean
is_review
,
boolean
is_review
,
...
@@ -67,11 +68,12 @@ public class UserReviewController {
...
@@ -67,11 +68,12 @@ public class UserReviewController {
Integer
film_type_id
,
Integer
film_type_id
,
Integer
enroll_type_id
,
Integer
enroll_type_id
,
String
keyword
,
String
keyword
,
String
[]
limitKey
,
Long
index
,
Long
index
,
Long
limit
)
{
Long
limit
)
{
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
);
Page
page
=
new
Page
(
index
,
limit
,
limitKey
);
LoginToken
loginToken
=
tokenService
.
getToken
();
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryReviewListForUser
(
is_review
,
user_id
,
keyword
,
start_date
,
end_date
,
review_start_date
,
review_end_date
,
film_type_id
,
enroll_type_id
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryReviewListForUser
(
is_review
,
user_id
,
keyword
,
start_date
,
end_date
,
review_start_date
,
review_end_date
,
film_type_id
,
enroll_type_id
,
page
);
...
...
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