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
4ffdba2d
Commit
4ffdba2d
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
24a7c2af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+3
-3
Fc_review_record_ext.java
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
+16
-16
No files found.
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
4ffdba2d
...
...
@@ -131,7 +131,7 @@ public class UserReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"enroll_ext_id"
,
value
=
"参赛奖项ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"double"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"enroll_ext_score"
,
value
=
"参赛奖项得分"
),
})
public
Object
saveReviewRecord
(
Integer
review_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
,
Integer
[]
enroll_ext_id
,
Double
[]
enroll_ext_score
,
String
[]
enroll_ext_text
)
{
public
Object
saveReviewRecord
(
Integer
review_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
,
Integer
[]
playatcor_id
,
Integer
[]
enroll_ext_id
,
Double
[]
enroll_ext_score
)
{
LoginToken
token
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
Fc_review_record
ru
=
service
.
queryReviewRecord
(
user_id
,
review_id
);
...
...
@@ -143,13 +143,13 @@ public class UserReviewController {
ru
.
setReview_text_3
(
review_text_3
);
ru
.
setReview_text_4
(
review_text_4
);
List
<
Fc_review_record_ext
>
exts
=
new
ArrayList
<
Fc_review_record_ext
>();
if
(
enroll_ext_id
!=
null
&&
enroll_ext_score
!=
null
&&
enroll_ext_text
!=
null
&&
enroll_ext_id
.
length
==
enroll_ext_score
.
length
&&
enroll_ext_score
.
length
==
enroll_ext_text
.
length
)
{
if
(
enroll_ext_id
!=
null
&&
enroll_ext_score
!=
null
&&
playatcor_id
!=
null
&&
enroll_ext_id
.
length
==
enroll_ext_score
.
length
&&
enroll_ext_score
.
length
==
playatcor_id
.
length
)
{
for
(
int
i
=
0
;
i
<
enroll_ext_id
.
length
;
i
++)
{
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setEnroll_ext_id
(
enroll_ext_id
[
i
]);
ext
.
setEnroll_ext_score
(
enroll_ext_score
[
i
]);
ext
.
set
Enroll_ext_text
(
enroll_ext_text
[
i
]);
ext
.
set
Playactor_id
(
playatcor_id
[
i
]);
exts
.
add
(
ext
);
}
}
else
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
View file @
4ffdba2d
...
...
@@ -23,6 +23,11 @@ public class Fc_review_record_ext implements java.io.Serializable {
*/
private
Integer
record_id
;
/**
* 得奖人ID
*/
private
Integer
playactor_id
;
/**
* 影片申报奖项ID
*/
...
...
@@ -33,11 +38,6 @@ public class Fc_review_record_ext implements java.io.Serializable {
*/
private
Double
enroll_ext_score
;
/**
* 评委审片结论
*/
private
String
enroll_ext_text
;
/**
* 无参数构造方法
...
...
@@ -50,16 +50,16 @@ public class Fc_review_record_ext implements java.io.Serializable {
* 全参数构造方法
* @param id 影片ID
* @param record_id 评委评审记录ID
* @param playactor_id 得奖人ID
* @param enroll_ext_id 影片申报奖项ID
* @param enroll_ext_score 影片申报奖项评分
* @param enroll_ext_text 评委审片结论
*/
public
Fc_review_record_ext
(
Integer
id
,
Integer
record_id
,
Integer
enroll_ext_id
,
Double
enroll_ext_score
,
String
enroll_ext_text
)
{
public
Fc_review_record_ext
(
Integer
id
,
Integer
record_id
,
Integer
playactor_id
,
Integer
enroll_ext_id
,
Double
enroll_ext_score
)
{
this
.
id
=
id
;
this
.
record_id
=
record_id
;
this
.
playactor_id
=
playactor_id
;
this
.
enroll_ext_id
=
enroll_ext_id
;
this
.
enroll_ext_score
=
enroll_ext_score
;
this
.
enroll_ext_text
=
enroll_ext_text
;
}
public
void
setId
(
Integer
id
)
{
...
...
@@ -78,6 +78,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
return
record_id
;
}
public
void
setPlayactor_id
(
Integer
playactor_id
)
{
this
.
playactor_id
=
playactor_id
;
}
public
Integer
getPlayactor_id
()
{
return
playactor_id
;
}
public
void
setEnroll_ext_id
(
Integer
enroll_ext_id
)
{
this
.
enroll_ext_id
=
enroll_ext_id
;
}
...
...
@@ -94,13 +102,5 @@ public class Fc_review_record_ext implements java.io.Serializable {
return
enroll_ext_score
;
}
public
void
setEnroll_ext_text
(
String
enroll_ext_text
)
{
this
.
enroll_ext_text
=
enroll_ext_text
;
}
public
String
getEnroll_ext_text
()
{
return
enroll_ext_text
;
}
}
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