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
c52c77cd
Commit
c52c77cd
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bf8eee48
Hide 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,8 +211,10 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -211,8 +211,10 @@ public class ReviewServiceImpl implements ReviewService {
@Transactional
@Transactional
public
void
saveReviewRecord
(
Fc_review_record
ru
,
List
<
Fc_review_record_ext
>
exts
)
{
public
void
saveReviewRecord
(
Fc_review_record
ru
,
List
<
Fc_review_record_ext
>
exts
)
{
jdbcTemplate
.
update
(
ru
);
jdbcTemplate
.
update
(
ru
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_record_ext where record_id = ?"
,
ru
.
getId
());
if
(
exts
!=
null
&&
exts
.
size
()
>
0
)
{
jdbcTemplate
.
batchSave
(
exts
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_record_ext where record_id = ?"
,
ru
.
getId
());
jdbcTemplate
.
batchSave
(
exts
);
}
}
}
@Override
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/WebUtilController.java
View file @
c52c77cd
...
@@ -86,7 +86,18 @@ public class WebUtilController {
...
@@ -86,7 +86,18 @@ public class WebUtilController {
}
}
}
}
if
(!
film_type_name
.
equals
(
"4"
))
{
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
});
objList
.
add
(
new
Object
[]
{
s
,
id
});
}
}
}
}
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
c52c77cd
...
@@ -142,16 +142,18 @@ public class UserReviewController {
...
@@ -142,16 +142,18 @@ 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
(
ext_title
!=
null
&&
ext_score
!=
null
&&
ext_title
.
length
==
ext_score
.
length
)
{
if
(
ext_title
!=
null
&&
ext_score
!=
null
)
{
for
(
int
i
=
0
;
i
<
ext_title
.
length
;
i
++)
{
if
(
ext_title
.
length
==
ext_score
.
length
)
{
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
for
(
int
i
=
0
;
i
<
ext_title
.
length
;
i
++)
{
ext
.
setRecord_id
(
ru
.
getId
());
Fc_review_record_ext
ext
=
new
Fc_review_record_ext
();
ext
.
setExt_title
(
ext_title
[
i
]);
ext
.
setRecord_id
(
ru
.
getId
());
ext
.
setExt_score
(
ext_score
[
i
]);
ext
.
setExt_title
(
ext_title
[
i
]);
exts
.
add
(
ext
);
ext
.
setExt_score
(
ext_score
[
i
]);
exts
.
add
(
ext
);
}
}
else
{
throw
new
XException
(
"评奖项目参数数量错误"
);
}
}
}
else
{
throw
new
XException
(
"评奖项目参数数量错误"
);
}
}
service
.
saveReviewRecord
(
ru
,
exts
);
service
.
saveReviewRecord
(
ru
,
exts
);
service
.
tryNextRound
(
review_id
);
service
.
tryNextRound
(
review_id
);
...
...
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