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
9c8fb07c
Commit
9c8fb07c
authored
Feb 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6ee1c7d7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
43 deletions
+58
-43
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-0
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+46
-43
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+10
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
9c8fb07c
...
...
@@ -136,4 +136,6 @@ public interface ReviewService {
boolean
isBeginReview
(
Long
film_id
);
Map
<
String
,
Object
>
queryFilmReport
(
Integer
user_id
);
Fc_review_record
queryReviewRecord
(
Integer
record_id
);
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
9c8fb07c
...
...
@@ -235,7 +235,9 @@ public class ExportServiceImpl implements ExportService {
map
.
put
(
"enroll_type_name_other"
,
StringUtil
.
join
(
","
,
others
));
}
Integer
review_id
=
((
Number
)
map
.
get
(
"review_id"
)).
intValue
();
Object
obj_review_id
=
map
.
get
(
"review_id"
);
if
(
obj_review_id
!=
null
)
{
Integer
review_id
=
((
Number
)
obj_review_id
).
intValue
();
for
(
int
i
=
1
;
i
<=
6
&&
i
<=
reviewRound
;
i
++)
{
StringBuffer
sb
=
new
StringBuffer
();
List
<
Map
<
String
,
Object
>>
recordList
=
recordML
.
get
(
review_id
+
","
+
i
);
...
...
@@ -284,6 +286,7 @@ public class ExportServiceImpl implements ExportService {
map
.
put
(
"round_"
+
i
+
"_text"
,
sb
.
toString
());
}
}
}
Map
<
String
,
String
>
columnMap
=
this
.
getApplyPassListColumns
();
List
<
String
>
titleList
=
new
ArrayList
<
String
>();
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
9c8fb07c
...
...
@@ -260,6 +260,11 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Transactional
public
void
saveReviewRecord
(
Fc_review_record
ru
,
List
<
Fc_review_record_ext
>
exts
)
{
Fc_review
review
=
this
.
queryReviewById
(
ru
.
getReview_id
());
Fc_review_record
record
=
this
.
queryReviewRecord
(
ru
.
getId
());
if
(!
ru
.
getReview_state
().
equals
(
record
.
getReview_state
())
&&
review
.
getReview_round
().
intValue
()
!=
ru
.
getReview_round
().
intValue
())
{
throw
new
XRException
(
"不能修改历史审片结论"
);
}
jdbcTemplate
.
update
(
ru
);
jdbcTemplate
.
executeUpdate
(
"update fc_review set review_time = now() where id = ?"
,
ru
.
getReview_id
());
if
(
exts
!=
null
&&
exts
.
size
()
>
0
)
{
...
...
@@ -268,6 +273,11 @@ public class ReviewServiceImpl implements ReviewService {
}
}
@Override
public
Fc_review_record
queryReviewRecord
(
Integer
record_id
)
{
return
jdbcTemplate
.
queryForBean
(
"select * from fc_review_record where id = ?"
,
Fc_review_record
.
class
,
record_id
);
}
@Override
public
List
<
Fc_review_record_ext
>
queryReviewRecordExtList
(
Integer
record_id
)
{
return
jdbcTemplate
.
queryForBeans
(
"select * from fc_review_record_ext where record_id = ?"
,
Fc_review_record_ext
.
class
,
record_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