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
b041f54d
Commit
b041f54d
authored
Dec 11, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
636c7d75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+1
-1
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+4
-5
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+4
-3
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
b041f54d
...
...
@@ -14,7 +14,7 @@ public interface ReviewService {
Object
queryDoubtfulList
();
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
start_date
,
Date
end
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
Fc_review
queryReview
(
Integer
film_id
,
Integer
enroll_type_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
b041f54d
...
...
@@ -26,17 +26,16 @@ public class ReviewServiceImpl implements ReviewService {
JdbcTemplate
jdbcTemplate
;
@Override
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
start_date
,
Date
end
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
)
{
List
<
Integer
>
ids
=
jdbcTemplate
.
queryForObjects
(
"select ugf.fun_id from fc_user_group_fun ugf, fc_user u where ugf.group_id = u.group_id and u.uid = ?"
,
Integer
.
class
,
user_id
);
SqlWhere
where
=
new
SqlWhere
().
in
(
"r.review_round"
,
ids
.
toArray
()).
eq
(
"r.enroll_type_id"
,
enroll_type_id
).
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
);
SqlWhere
where
=
new
SqlWhere
().
ge
(
"r.push_time"
,
start_date
).
lt
(
"r.push_time"
,
end_date
==
null
?
null
:
DateUtil
.
end
(
end_date
)).
in
(
"r.review_round"
,
ids
.
toArray
()).
eq
(
"r.enroll_type_id"
,
enroll_type_id
).
lk
(
new
String
[]{
"en_name"
,
"cn_name"
},
keyword
);
if
(
is_review
)
{
where
.
ge
(
"r.review_state"
,
2
);
}
else
{
where
.
lt
(
"r.review_state"
,
2
);
}
if
(
push_date
!=
null
)
{
where
.
ge
(
"r.create_time"
,
DateUtil
.
start
(
push_date
)).
lt
(
"r.create_time"
,
DateUtil
.
end
(
push_date
));
}
String
sql
=
""
+
"select "
+
"mf.*, "
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
b041f54d
...
...
@@ -47,20 +47,21 @@ public class UserReviewController {
@PostMapping
(
"review_list"
)
@ApiOperation
(
"审核列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"push_date"
,
value
=
"推送日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"start_date"
,
value
=
"开始日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"end_date"
,
value
=
"结束日志"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_type_id"
,
value
=
"影片类型ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type_id"
,
value
=
"申报奖项ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"模糊匹配关键词"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"index"
,
value
=
"分页页码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"limit"
,
value
=
"分页大小"
),
})
public
Object
getReviewList
(
boolean
is_review
,
Date
push
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Long
index
,
Long
limit
)
{
public
Object
getReviewList
(
boolean
is_review
,
Date
start_date
,
Date
end
_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryReviewList
(
is_review
,
user_id
,
push
_date
,
film_type_id
,
enroll_type_id
,
keyword
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryReviewList
(
is_review
,
user_id
,
start_date
,
end
_date
,
film_type_id
,
enroll_type_id
,
keyword
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
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