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
c52c77cd
Commit
c52c77cd
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bf8eee48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
12 deletions
+27
-12
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+4
-2
WebUtilController.java
.../java/com/egolm/film/api/web/admin/WebUtilController.java
+12
-1
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+11
-9
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
c52c77cd
...
...
@@ -211,9 +211,11 @@ public class ReviewServiceImpl implements ReviewService {
@Transactional
public
void
saveReviewRecord
(
Fc_review_record
ru
,
List
<
Fc_review_record_ext
>
exts
)
{
jdbcTemplate
.
update
(
ru
);
if
(
exts
!=
null
&&
exts
.
size
()
>
0
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_record_ext where record_id = ?"
,
ru
.
getId
());
jdbcTemplate
.
batchSave
(
exts
);
}
}
@Override
public
List
<
Fc_review_record_ext
>
queryReviewRecordExtList
(
Integer
record_id
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/WebUtilController.java
View file @
c52c77cd
...
...
@@ -86,7 +86,18 @@ public class WebUtilController {
}
}
if
(!
film_type_name
.
equals
(
"4"
))
{
String
s
=
enroll_type_name_other
.
replace
(
",6,"
,
","
).
replace
(
"6,"
,
""
).
replace
(
",6"
,
""
).
replace
(
"6"
,
""
).
replace
(
",,"
,
","
);
String
s
=
enroll_type_name_other
;
s
=
s
.
replace
(
",6,"
,
","
).
replace
(
"6,"
,
""
).
replace
(
",6"
,
""
).
replace
(
"6"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",7,"
,
","
).
replace
(
"7,"
,
""
).
replace
(
",7"
,
""
).
replace
(
"7"
,
""
).
replace
(
",,"
,
","
);
objList
.
add
(
new
Object
[]
{
s
,
id
});
}
else
{
String
s
=
enroll_type_name_other
;
s
=
s
.
replace
(
",1,"
,
","
).
replace
(
"1,"
,
""
).
replace
(
",1"
,
""
).
replace
(
"1"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",2,"
,
","
).
replace
(
"2,"
,
""
).
replace
(
",2"
,
""
).
replace
(
"2"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",3,"
,
","
).
replace
(
"3,"
,
""
).
replace
(
",3"
,
""
).
replace
(
"3"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",4,"
,
","
).
replace
(
"4,"
,
""
).
replace
(
",4"
,
""
).
replace
(
"4"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",5,"
,
","
).
replace
(
"5,"
,
""
).
replace
(
",5"
,
""
).
replace
(
"5"
,
""
).
replace
(
",,"
,
","
);
s
=
s
.
replace
(
",8,"
,
","
).
replace
(
"8,"
,
""
).
replace
(
",8"
,
""
).
replace
(
"8"
,
""
).
replace
(
",,"
,
","
);
objList
.
add
(
new
Object
[]
{
s
,
id
});
}
}
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
c52c77cd
...
...
@@ -142,7 +142,8 @@ 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
(
ext_title
!=
null
&&
ext_score
!=
null
&&
ext_title
.
length
==
ext_score
.
length
)
{
if
(
ext_title
!=
null
&&
ext_score
!=
null
)
{
if
(
ext_title
.
length
==
ext_score
.
length
)
{
for
(
int
i
=
0
;
i
<
ext_title
.
length
;
i
++)
{
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
ext
.
setRecord_id
(
ru
.
getId
());
...
...
@@ -153,6 +154,7 @@ public class UserReviewController {
}
else
{
throw
new
XException
(
"评奖项目参数数量错误"
);
}
}
service
.
saveReviewRecord
(
ru
,
exts
);
service
.
tryNextRound
(
review_id
);
return
Rjx
.
jsonOk
();
...
...
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