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
07a30085
Commit
07a30085
authored
Feb 24, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a52eb83f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
WebUtilController.java
.../java/com/egolm/film/api/web/admin/WebUtilController.java
+19
-20
No files found.
src/main/java/com/egolm/film/api/web/admin/WebUtilController.java
View file @
07a30085
...
@@ -29,7 +29,6 @@ import com.egolm.film.api.service.FilmService;
...
@@ -29,7 +29,6 @@ import com.egolm.film.api.service.FilmService;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_logs_ext
;
import
com.egolm.film.bean.Fc_logs_ext
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_enroll
;
import
com.egolm.film.bean.Fc_member_film_enroll
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.config.XRException
;
...
@@ -123,25 +122,25 @@ public class WebUtilController {
...
@@ -123,25 +122,25 @@ public class WebUtilController {
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
}
}
@ResponseBody
//
@ResponseBody
@Transactional
//
@Transactional
@PostMapping
(
"initAllReview"
)
//
@PostMapping("initAllReview")
@ApiOperation
(
"初始化所有审片流程"
)
//
@ApiOperation("初始化所有审片流程")
public
Object
initAllReview
()
{
//
public Object initAllReview() {
this
.
verifyAuth
();
//
this.verifyAuth();
jdbcTemplate
.
executeUpdate
(
"delete from fc_review"
);
//
jdbcTemplate.executeUpdate("delete from fc_review");
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_record"
);
//
jdbcTemplate.executeUpdate("delete from fc_review_record");
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_history"
);
//
jdbcTemplate.executeUpdate("delete from fc_review_history");
jdbcTemplate
.
executeUpdate
(
"delete from fc_review_record_ext"
);
//
jdbcTemplate.executeUpdate("delete from fc_review_record_ext");
List
<
Fc_member_film
>
films
=
jdbcTemplate
.
queryForBeans
(
"select * from fc_member_film where apply_state = 2"
,
Fc_member_film
.
class
);
//
List<Fc_member_film> films = jdbcTemplate.queryForBeans("select * from fc_member_film where apply_state = 2", Fc_member_film.class);
for
(
Fc_member_film
film
:
films
)
{
//
for(Fc_member_film film : films) {
String
enroll_type_name
=
film
.
getEnroll_type_name
();
//
String enroll_type_name = film.getEnroll_type_name();
if
(
enroll_type_name
!=
null
&&
enroll_type_name
.
length
()
>
0
)
{
//
if(enroll_type_name != null && enroll_type_name.length() > 0) {
service
.
toFirstRound
(
film
.
getId
());
//
service.toFirstRound(film.getId());
}
//
}
}
//
}
return
Rjx
.
jsonOk
();
//
return Rjx.jsonOk();
}
//
}
@ResponseBody
@ResponseBody
@Transactional
@Transactional
...
...
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