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
d714a0db
Commit
d714a0db
authored
Dec 19, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b65e728c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+5
-0
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+11
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
d714a0db
...
@@ -86,4 +86,6 @@ public interface ReviewService {
...
@@ -86,4 +86,6 @@ public interface ReviewService {
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
deleteDoubtfulById
(
Integer
id
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
d714a0db
...
@@ -314,4 +314,9 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -314,4 +314,9 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
batchUpdate
(
sql
,
objs
);
jdbcTemplate
.
batchUpdate
(
sql
,
objs
);
jdbcTemplate
.
executeUpdate
(
"update fc_review set allot_state = 1, opt_state = 0 where id = ? and review_round = ?"
,
review_id
,
review_round
);
jdbcTemplate
.
executeUpdate
(
"update fc_review set allot_state = 1, opt_state = 0 where id = ? and review_round = ?"
,
review_id
,
review_round
);
}
}
@Override
public
void
deleteDoubtfulById
(
Integer
id
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_doubtful where id = ?"
,
id
);
}
}
}
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
d714a0db
...
@@ -103,6 +103,17 @@ public class UserReviewController {
...
@@ -103,6 +103,17 @@ public class UserReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
@ResponseBody
@PostMapping
(
"doubtful_del"
)
@ApiOperation
(
"查询疑点记录"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"review_id"
,
value
=
"审片ID"
),
})
public
Object
deleteDoubtfulById
(
Integer
id
)
{
service
.
deleteDoubtfulById
(
id
);
return
Rjx
.
jsonOk
();
}
@ResponseBody
@ResponseBody
@Transactional
@Transactional
@PostMapping
(
"saveReviewRecord"
)
@PostMapping
(
"saveReviewRecord"
)
...
...
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