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
60d906d0
Commit
60d906d0
authored
Jan 03, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
c5875195
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
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
+1
-1
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+8
-3
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
60d906d0
...
...
@@ -42,7 +42,7 @@ public interface ReviewService {
Integer
opt_state
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryNewAsianRoundList
(
String
keyword
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryNewAsianRoundList
(
String
keyword
,
Integer
user_group_id
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
,
Page
page
);
/**
* 查询评委审片列表
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
60d906d0
...
...
@@ -130,7 +130,7 @@ public class ReviewServiceImpl implements ReviewService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryNewAsianRoundList
(
String
keyword
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
,
Page
page
)
{
public
List
<
Map
<
String
,
Object
>>
queryNewAsianRoundList
(
String
keyword
,
Integer
user_group_id
,
Integer
review_state
,
Integer
review_round
,
String
ext_type
,
Page
page
)
{
XRException
.
assertNotBlank
(
"获奖类型不能未空"
,
ext_type
);
XRException
.
assertNotBlank
(
"选片轮数不能为空"
,
review_round
);
if
(
review_round
.
intValue
()
==
3
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
60d906d0
...
...
@@ -107,7 +107,8 @@ public class AdminReviewController {
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryNewAsianRoundList
(
keyword
,
review_state
,
review_round
,
ext_type
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
null
;
//reviewService.queryNewAsianRoundList(keyword, review_state, review_round, ext_type, page);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
...
...
@@ -175,9 +176,11 @@ public class AdminReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"review_text_3"
,
value
=
"评语3"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"review_text_4"
,
value
=
"评语4"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_title"
,
value
=
"获奖标题 例如: 最佳男演员-张三"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"double"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_score"
,
value
=
"奖项得分"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_type"
,
value
=
"评奖类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_name"
,
value
=
"评奖主体名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"double"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_score"
,
value
=
"评奖得分"
),
})
public
Object
saveReviewRecord
(
Integer
record_id
,
Integer
review_state
,
Double
review_score
,
String
review_text
,
String
review_text_1
,
String
review_text_2
,
String
review_text_3
,
String
review_text_4
,
String
[]
ext_title
,
Double
[]
ext_score
)
{
public
Object
saveReviewRecord
(
Integer
record_id
,
Integer
review_state
,
Double
review_score
,
String
review_text
,
String
review_text_1
,
String
review_text_2
,
String
review_text_3
,
String
review_text_4
,
String
[]
ext_title
,
String
[]
ext_type
,
String
[]
ext_name
,
Double
[]
ext_score
)
{
Map
<
String
,
Object
>
recordMap
=
reviewService
.
queryReviewRecordMapById
(
record_id
);
Fc_review_record
ru
=
Util
.
mapTo
(
recordMap
,
Fc_review_record
.
class
);
ru
.
setReview_score
(
review_score
);
...
...
@@ -195,6 +198,8 @@ public class AdminReviewController {
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setExt_title
(
ext_title
[
i
]);
ext
.
setExt_score
(
ext_score
[
i
]);
ext
.
setExt_type
(
ext_type
[
i
]);
ext
.
setExt_name
(
ext_name
[
i
]);
exts
.
add
(
ext
);
}
}
else
{
...
...
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