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
8fb85982
Commit
8fb85982
authored
Dec 28, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
747df373
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+5
-1
Fc_review_record_ext.java
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
+22
-0
No files found.
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
8fb85982
...
@@ -143,8 +143,10 @@ public class UserReviewController {
...
@@ -143,8 +143,10 @@ public class UserReviewController {
@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
=
"string"
,
required
=
false
,
allowMultiple
=
true
,
name
=
"ext_title"
,
value
=
"获奖标题 例如: 最佳男演员-张三"
),
@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
=
"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
=
"获奖人名称"
),
})
})
public
Object
saveReviewRecord
(
Integer
review_id
,
Long
view_time
,
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
review_id
,
Long
view_time
,
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
)
{
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
);
...
@@ -165,6 +167,8 @@ public class UserReviewController {
...
@@ -165,6 +167,8 @@ public class UserReviewController {
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setExt_title
(
ext_title
[
i
]);
ext
.
setExt_title
(
ext_title
[
i
]);
ext
.
setExt_score
(
ext_score
[
i
]);
ext
.
setExt_score
(
ext_score
[
i
]);
ext
.
setExt_type
(
ext_type
[
i
]);
ext
.
setExt_name
(
ext_name
[
i
]);
exts
.
add
(
ext
);
exts
.
add
(
ext
);
}
}
}
else
{
}
else
{
...
...
src/main/java/com/egolm/film/bean/Fc_review_record_ext.java
View file @
8fb85982
...
@@ -24,6 +24,12 @@ public class Fc_review_record_ext implements java.io.Serializable {
...
@@ -24,6 +24,12 @@ public class Fc_review_record_ext implements java.io.Serializable {
@Column
(
columnDefinition
=
"double(10,2) COMMENT '奖项评分'"
)
@Column
(
columnDefinition
=
"double(10,2) COMMENT '奖项评分'"
)
private
Double
ext_score
;
private
Double
ext_score
;
@Column
(
columnDefinition
=
"varchar(255) COMMENT '演职员类型'"
)
private
String
ext_type
;
@Column
(
columnDefinition
=
"varchar(255) COMMENT '演职员名称'"
)
private
String
ext_name
;
public
void
setId
(
Integer
id
)
{
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -57,5 +63,21 @@ public class Fc_review_record_ext implements java.io.Serializable {
...
@@ -57,5 +63,21 @@ public class Fc_review_record_ext implements java.io.Serializable {
return
ext_score
;
return
ext_score
;
}
}
public
void
setExt_type
(
String
ext_type
)
{
this
.
ext_type
=
ext_type
;
}
public
String
getExt_type
()
{
return
ext_type
;
}
public
void
setExt_name
(
String
ext_name
)
{
this
.
ext_name
=
ext_name
;
}
public
String
getExt_name
()
{
return
ext_name
;
}
}
}
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