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
04531caa
Commit
04531caa
authored
Nov 29, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
358385b2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+1
-1
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+2
-2
AdminAuthController.java
...ava/com/egolm/film/api/web/admin/AdminAuthController.java
+1
-1
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+3
-2
SqlWhere.java
src/main/java/com/egolm/film/util/SqlWhere.java
+4
-2
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
04531caa
...
@@ -136,7 +136,7 @@ public interface FilmService {
...
@@ -136,7 +136,7 @@ public interface FilmService {
* @param page
* @param page
* @return
* @return
*/
*/
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
group_id
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Page
page
);
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Page
page
);
void
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
allot
(
Long
member_film_id
,
Integer
review_round
,
Integer
[]
user_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
04531caa
...
@@ -494,11 +494,11 @@ public class FilmServiceImpl implements FilmService {
...
@@ -494,11 +494,11 @@ public class FilmServiceImpl implements FilmService {
* 检索审片列表
* 检索审片列表
*/
*/
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
public
List
<
Map
<
String
,
Object
>>
queryReviewList
(
String
keyword
,
Integer
group_id
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Integer
film_type_name_short
,
String
film_country
,
Integer
[]
review_round
,
Integer
[]
review_state
,
Page
page
)
{
Page
page
)
{
SqlWhere
w1
=
new
SqlWhere
()
SqlWhere
w1
=
new
SqlWhere
()
.
append
(
"mf.film_type_name in (select film_type_id from fc_admin_group_filmtype where group_id = ?)"
,
group_id
)
.
where
(
"mf.film_type_name in (select film_type_id from fc_admin_group_filmtype where group_id = ?)"
,
group_id
)
.
gt
(
"mf.review_round"
,
0
)
.
gt
(
"mf.review_round"
,
0
)
.
lk
(
new
String
[]{
"mf.en_name"
,
"mf.cn_name"
},
keyword
)
.
lk
(
new
String
[]{
"mf.en_name"
,
"mf.cn_name"
},
keyword
)
.
eq
(
"mf.film_type_name"
,
film_type_name
)
.
eq
(
"mf.film_type_name"
,
film_type_name
)
...
...
src/main/java/com/egolm/film/api/web/admin/AdminAuthController.java
View file @
04531caa
...
@@ -206,7 +206,7 @@ public class AdminAuthController {
...
@@ -206,7 +206,7 @@ public class AdminAuthController {
group
.
setCreate_time
(
System
.
currentTimeMillis
());
group
.
setCreate_time
(
System
.
currentTimeMillis
());
}
}
service
.
mergeGroup
(
group
);
service
.
mergeGroup
(
group
);
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
()
.
setData
(
group
)
;
}
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
04531caa
...
@@ -13,6 +13,7 @@ import com.egolm.common.bean.Rjx;
...
@@ -13,6 +13,7 @@ import com.egolm.common.bean.Rjx;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.bean.Fc_admin
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
...
@@ -48,8 +49,8 @@ public class AdminReviewController {
...
@@ -48,8 +49,8 @@ public class AdminReviewController {
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
);
Integer
adminid
=
(
Integer
)
tokenService
.
getToken
().
getId
();
Fc_admin
admin
=
(
Fc_admin
)
tokenService
.
getTokenObj
();
List
<
Map
<
String
,
Object
>>
list
=
filmService
.
queryReviewList
(
keyword
,
enroll_type_id
,
film_type_name
,
film_type_name_short
,
film_country
,
review_round
,
review_state
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
filmService
.
queryReviewList
(
keyword
,
admin
.
getGroup_id
(),
enroll_type_id
,
film_type_name
,
film_type_name_short
,
film_country
,
review_round
,
review_state
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
...
...
src/main/java/com/egolm/film/util/SqlWhere.java
View file @
04531caa
...
@@ -15,11 +15,13 @@ public class SqlWhere {
...
@@ -15,11 +15,13 @@ public class SqlWhere {
this
.
objList
=
new
ArrayList
<
Object
>();
this
.
objList
=
new
ArrayList
<
Object
>();
}
}
public
SqlWhere
append
(
String
where
,
Object
obj
)
{
public
SqlWhere
where
(
String
where
,
Object
[]
obj
)
{
if
(
StringUtil
.
isNotBlank
(
where
))
{
if
(
StringUtil
.
isNotBlank
(
where
))
{
this
.
strList
.
add
(
where
);
this
.
strList
.
add
(
where
);
for
(
Object
o
:
obj
)
{
this
.
objList
.
add
(
obj
);
this
.
objList
.
add
(
obj
);
}
}
}
return
this
;
return
this
;
}
}
...
...
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