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
464820bf
Commit
464820bf
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4ffdba2d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
41 deletions
+24
-41
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+7
-9
Fc_review_record_ext.java
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
+17
-32
No files found.
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
464820bf
...
@@ -127,11 +127,10 @@ public class UserReviewController {
...
@@ -127,11 +127,10 @@ public class UserReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"review_text_2"
,
value
=
"评语2"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"review_text_2"
,
value
=
"评语2"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"review_text_3"
,
value
=
"评语3"
),
@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
,
name
=
"review_text_4"
,
value
=
"评语4"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"playatcor_id"
,
value
=
"获奖人ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_title"
,
value
=
"获奖标题 例如: 最佳男演员-张三"
),
@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
=
"ext_score"
,
value
=
"奖项得分"
),
@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
[]
playatcor_id
,
Integer
[]
enroll_ext_id
,
Double
[]
enroll_
ext_score
)
{
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
,
String
[]
ext_title
,
Double
[]
ext_score
)
{
LoginToken
token
=
tokenService
.
getToken
();
LoginToken
token
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
Fc_review_record
ru
=
service
.
queryReviewRecord
(
user_id
,
review_id
);
Fc_review_record
ru
=
service
.
queryReviewRecord
(
user_id
,
review_id
);
...
@@ -143,13 +142,12 @@ public class UserReviewController {
...
@@ -143,13 +142,12 @@ public class UserReviewController {
ru
.
setReview_text_3
(
review_text_3
);
ru
.
setReview_text_3
(
review_text_3
);
ru
.
setReview_text_4
(
review_text_4
);
ru
.
setReview_text_4
(
review_text_4
);
List
<
Fc_review_record_ext
>
exts
=
new
ArrayList
<
Fc_review_record_ext
>();
List
<
Fc_review_record_ext
>
exts
=
new
ArrayList
<
Fc_review_record_ext
>();
if
(
e
nroll_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
)
{
if
(
e
xt_title
!=
null
&&
ext_score
!=
null
&&
ext_title
.
length
==
ext_score
.
length
)
{
for
(
int
i
=
0
;
i
<
e
nroll_ext_id
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
e
xt_title
.
length
;
i
++)
{
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setEnroll_ext_id
(
enroll_ext_id
[
i
]);
ext
.
setExt_title
(
ext_title
[
i
]);
ext
.
setEnroll_ext_score
(
enroll_ext_score
[
i
]);
ext
.
setExt_score
(
ext_score
[
i
]);
ext
.
setPlayactor_id
(
playatcor_id
[
i
]);
exts
.
add
(
ext
);
exts
.
add
(
ext
);
}
}
}
else
{
}
else
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
View file @
464820bf
...
@@ -24,19 +24,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
...
@@ -24,19 +24,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
private
Integer
record_id
;
private
Integer
record_id
;
/**
/**
*
得奖人ID
*
获奖标题 例如: 最佳男演员-张三
*/
*/
private
Integer
playactor_id
;
private
String
ext_title
;
/**
/**
*
影片申报奖项ID
*
奖项评分
*/
*/
private
Integer
enroll_ext_id
;
private
Double
ext_score
;
/**
* 影片申报奖项评分
*/
private
Double
enroll_ext_score
;
/**
/**
...
@@ -50,16 +45,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
...
@@ -50,16 +45,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
* 全参数构造方法
* 全参数构造方法
* @param id 影片ID
* @param id 影片ID
* @param record_id 评委评审记录ID
* @param record_id 评委评审记录ID
* @param playactor_id 得奖人ID
* @param ext_title 获奖标题 例如: 最佳男演员-张三
* @param enroll_ext_id 影片申报奖项ID
* @param ext_score 奖项评分
* @param enroll_ext_score 影片申报奖项评分
*/
*/
public
Fc_review_record_ext
(
Integer
id
,
Integer
record_id
,
Integer
playactor_id
,
Integer
enroll_ext_id
,
Double
enroll_
ext_score
)
{
public
Fc_review_record_ext
(
Integer
id
,
Integer
record_id
,
String
ext_title
,
Double
ext_score
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
record_id
=
record_id
;
this
.
record_id
=
record_id
;
this
.
playactor_id
=
playactor_id
;
this
.
ext_title
=
ext_title
;
this
.
enroll_ext_id
=
enroll_ext_id
;
this
.
ext_score
=
ext_score
;
this
.
enroll_ext_score
=
enroll_ext_score
;
}
}
public
void
setId
(
Integer
id
)
{
public
void
setId
(
Integer
id
)
{
...
@@ -78,28 +71,20 @@ public class Fc_review_record_ext implements java.io.Serializable {
...
@@ -78,28 +71,20 @@ public class Fc_review_record_ext implements java.io.Serializable {
return
record_id
;
return
record_id
;
}
}
public
void
setPlayactor_id
(
Integer
playactor_id
)
{
public
void
setExt_title
(
String
ext_title
)
{
this
.
playactor_id
=
playactor_id
;
this
.
ext_title
=
ext_title
;
}
public
Integer
getPlayactor_id
()
{
return
playactor_id
;
}
public
void
setEnroll_ext_id
(
Integer
enroll_ext_id
)
{
this
.
enroll_ext_id
=
enroll_ext_id
;
}
}
public
Integer
getEnroll_ext_id
()
{
public
String
getExt_title
()
{
return
e
nroll_ext_id
;
return
e
xt_title
;
}
}
public
void
setE
nroll_ext_score
(
Double
enroll_
ext_score
)
{
public
void
setE
xt_score
(
Double
ext_score
)
{
this
.
e
nroll_ext_score
=
enroll_
ext_score
;
this
.
e
xt_score
=
ext_score
;
}
}
public
Double
getE
nroll_e
xt_score
()
{
public
Double
getExt_score
()
{
return
e
nroll_e
xt_score
;
return
ext_score
;
}
}
}
}
...
...
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