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
1458ddf9
Commit
1458ddf9
authored
Dec 17, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2279fd65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
16 deletions
+47
-16
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+1
-1
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+8
-3
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+38
-12
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
1458ddf9
...
@@ -111,7 +111,7 @@ public interface FilmService {
...
@@ -111,7 +111,7 @@ public interface FilmService {
Integer
pass
(
Long
member_film_id
);
Integer
pass
(
Long
member_film_id
);
void
reject
(
Long
member_film_id
,
String
apply_state_intro
);
void
reject
(
Boolean
is_stop_apply
,
Long
member_film_id
,
String
apply_state_intro
);
Fc_member_film
queryMemberFilmById
(
Long
member_film_id
);
Fc_member_film
queryMemberFilmById
(
Long
member_film_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
1458ddf9
...
@@ -478,9 +478,14 @@ public class FilmServiceImpl implements FilmService {
...
@@ -478,9 +478,14 @@ public class FilmServiceImpl implements FilmService {
}
}
@Override
@Override
public
void
reject
(
Long
member_film_id
,
String
apply_state_intro
)
{
public
void
reject
(
Boolean
is_stop_apply
,
Long
member_film_id
,
String
apply_state_intro
)
{
String
sql
=
"update fc_member_film set state = ?, pass_time = ?, apply_state = ?, apply_state_intro = ? where id = ?"
;
if
(
is_stop_apply
)
{
jdbcTemplate
.
executeUpdate
(
sql
,
1
,
System
.
currentTimeMillis
()/
1000L
,
3
,
apply_state_intro
,
member_film_id
);
String
sql
=
"update fc_member_film pass_time = ?, apply_state = 3, apply_state_intro = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
System
.
currentTimeMillis
()/
1000L
,
apply_state_intro
,
member_film_id
);
}
else
{
String
sql
=
"update fc_member_film pass_time = ?, state = 1, apply_state = 1, apply_state_intro = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
System
.
currentTimeMillis
()/
1000L
,
apply_state_intro
,
member_film_id
);
}
}
}
@Override
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
1458ddf9
...
@@ -84,14 +84,36 @@ public class AdminFirstController {
...
@@ -84,14 +84,36 @@ public class AdminFirstController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_type"
,
value
=
"影片类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_type"
,
value
=
"影片类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_type_short"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type"
,
value
=
"影片性质"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type"
,
value
=
"影片性质"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_country"
,
value
=
"影片国家地区"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_country"
,
value
=
"影片国家地区"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"upload_state"
,
value
=
"影片文件上传状态(0,1)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_type_short"
,
value
=
"影片扩展分类"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"upload_state"
,
value
=
"影片文件上传状态(0,1)"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"play_shanghai"
,
value
=
"首映情况"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"review_round"
,
value
=
"审片轮数,第几轮审片"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"review_state"
,
value
=
"审片结论 1通过 2否决 3参赛 4参赛备选 5参展"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"allot_atate"
,
value
=
"评委分配状态 0未分配评委 1已分配评委评选中"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"r_state"
,
value
=
"评选状态 0未评选 1有争议 2管理员分配 3已完成"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"limit"
,
value
=
"分页大小"
),
})
})
public
Object
pass_list
(
String
keyword
,
Integer
film_type
,
Integer
enroll_type
,
Integer
upload_state
,
String
film_country
,
Integer
film_type_short
,
Long
index
,
Long
limit
)
{
public
Object
pass_list
(
String
keyword
,
Integer
film_type
,
Integer
enroll_type
,
Integer
upload_state
,
String
film_country
,
Integer
film_type_short
,
String
play_shanghai
,
Integer
review_round
,
Integer
review_state
,
Integer
allot_atate
,
Integer
r_state
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
);
Page
page
=
new
Page
(
index
,
limit
);
...
@@ -140,14 +162,18 @@ public class AdminFirstController {
...
@@ -140,14 +162,18 @@ public class AdminFirstController {
@ResponseBody
@ResponseBody
@PostMapping
(
"reject"
)
@PostMapping
(
"reject"
)
@ApiOperation
(
"初审
拒绝
"
)
@ApiOperation
(
"初审
驳回
"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"申报影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"申报影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"apply_state_intro"
,
value
=
"拒绝理由,初审结论"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"apply_state_intro"
,
value
=
"拒绝理由,初审结论"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"boolean"
,
required
=
false
,
name
=
"is_stop_apply"
,
value
=
"true否决 false驳回"
),
})
})
public
Object
reject
(
Long
member_film_id
,
String
apply_state_intro
)
{
public
Object
reject
(
Boolean
is_stop_apply
,
Long
member_film_id
,
String
apply_state_intro
)
{
if
(
is_stop_apply
==
null
)
{
is_stop_apply
=
false
;
}
memberFilmService
.
verifyFilmDuplicate
(
member_film_id
);
memberFilmService
.
verifyFilmDuplicate
(
member_film_id
);
memberFilmService
.
reject
(
member_film_id
,
apply_state_intro
);
memberFilmService
.
reject
(
is_stop_apply
,
member_film_id
,
apply_state_intro
);
return
Rjx
.
jsonOk
();
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