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
14c85e78
Commit
14c85e78
authored
Feb 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
5dec4d52
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
16 deletions
+22
-16
FilmController.java
src/main/java/com/egolm/film/api/web/FilmController.java
+2
-0
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+13
-10
MemberApplyController.java
.../com/egolm/film/api/web/member/MemberApplyController.java
+7
-6
No files found.
src/main/java/com/egolm/film/api/web/FilmController.java
View file @
14c85e78
...
...
@@ -156,6 +156,7 @@ public class FilmController {
playactor_birthday
,
playactor_intro
,
is_play_shanghai
);
filmService
.
initKeywords
(
member_film_id
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -179,6 +180,7 @@ public class FilmController {
String
create_ip
=
WebMvcConfig
.
getRemoteIp
();
filmService
.
saveCreateBase
(
filmBase
.
getId
(),
admin_id
,
member_id
,
create_ip
);
}
filmService
.
initKeywords
(
filmBase
.
getId
());
return
Rjx
.
jsonOk
().
set
(
"id"
,
filmBase
.
getId
());
}
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
14c85e78
...
...
@@ -52,7 +52,7 @@ public class AdminFirstController {
Logger
logger
=
LoggerFactory
.
getLogger
(
AdminFirstController
.
class
);
@Autowired
FilmService
memberF
ilmService
;
FilmService
f
ilmService
;
@Autowired
AdminTokenService
tokenService
;
...
...
@@ -101,7 +101,7 @@ public class AdminFirstController {
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
,
limitKey
);
Fc_admin
admin
=
Util
.
mapTo
(
tokenService
.
getTokenObj
(),
Fc_admin
.
class
);
List
<
Map
<
String
,
Object
>>
list
=
memberF
ilmService
.
queryFilmList
(
admin
.
getGroup_id
(),
keyword
,
state
,
apply_state
,
upload_state
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
play_shanghai
,
review_round
,
review_state
,
allot_atate
,
opt_state
,
film_group_id
,
page
);
List
<
Map
<
String
,
Object
>>
list
=
f
ilmService
.
queryFilmList
(
admin
.
getGroup_id
(),
keyword
,
state
,
apply_state
,
upload_state
,
film_type
,
enroll_type
,
film_country
,
film_type_short
,
play_shanghai
,
review_round
,
review_state
,
allot_atate
,
opt_state
,
film_group_id
,
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
...
...
@@ -114,7 +114,7 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_type_name_short"
,
value
=
"影片分类扩展分类"
),
})
public
Object
pass
(
Long
member_film_id
,
String
film_type_name_short
)
{
memberF
ilmService
.
verifyFilmDuplicate
(
member_film_id
);
f
ilmService
.
verifyFilmDuplicate
(
member_film_id
);
Fc_member_film
film
=
new
Fc_member_film
();
LoginToken
token
=
tokenService
.
getToken
();
Integer
adminid
=
(
Integer
)
token
.
getId
();
...
...
@@ -124,12 +124,13 @@ public class AdminFirstController {
film
.
setApply_state
(
2
);
film
.
setUpload_state
(
0
);
film
.
setPass_time
(
System
.
currentTimeMillis
()/
1000
);
memberF
ilmService
.
mergeMemberFilm
(
film
);
memberF
ilmService
.
pass
(
member_film_id
);
f
ilmService
.
mergeMemberFilm
(
film
);
f
ilmService
.
pass
(
member_film_id
);
reviewService
.
toFirstRound
(
member_film_id
);
Map
<
String
,
Object
>
map
=
emailService
.
sendByTemplate_01
(
member_film_id
,
"doc/first_pass"
);
Rjx
rjx
=
Rjx
.
jsonOk
();
rjx
.
putAll
(
map
);
filmService
.
initKeywords
(
member_film_id
);
return
rjx
;
}
...
...
@@ -145,7 +146,7 @@ public class AdminFirstController {
if
(
is_stop_apply
==
null
)
{
is_stop_apply
=
false
;
}
memberF
ilmService
.
reject
(
is_stop_apply
,
member_film_id
,
apply_state_intro
);
f
ilmService
.
reject
(
is_stop_apply
,
member_film_id
,
apply_state_intro
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -175,7 +176,7 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"upload_id"
,
value
=
"影片上传ID"
),
})
public
Object
save_upload_id
(
Long
member_film_id
,
String
upload_id
)
{
memberF
ilmService
.
saveUploadId
(
member_film_id
,
upload_id
);
f
ilmService
.
saveUploadId
(
member_film_id
,
upload_id
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -187,7 +188,7 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"upload_state"
,
value
=
"影片上传状态(0未上传, 1已上传)"
),
})
public
Object
save_upload_state
(
Long
member_film_id
,
Integer
upload_state
)
{
memberF
ilmService
.
saveUploadState
(
member_film_id
,
upload_state
);
f
ilmService
.
saveUploadState
(
member_film_id
,
upload_state
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -199,7 +200,7 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"state"
,
value
=
"影片状态:1未提交 2已提交"
),
})
public
Object
update_state
(
Long
member_film_id
,
Integer
state
)
{
memberF
ilmService
.
updateFilmState
(
member_film_id
,
state
);
f
ilmService
.
updateFilmState
(
member_film_id
,
state
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -211,7 +212,9 @@ public class AdminFirstController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"id2"
,
value
=
"编号会被替换,并且状态会重置为初审否决"
),
})
public
Object
exchangeFilmNo
(
Integer
id1
,
Integer
id2
)
{
memberFilmService
.
exchangeFilmNo
(
id1
,
id2
);
filmService
.
exchangeFilmNo
(
id1
,
id2
);
filmService
.
initKeywords
(
id1
.
longValue
());
filmService
.
initKeywords
(
id2
.
longValue
());
return
Rjx
.
jsonOk
();
}
...
...
src/main/java/com/egolm/film/api/web/member/MemberApplyController.java
View file @
14c85e78
...
...
@@ -31,7 +31,7 @@ public class MemberApplyController {
private
MemberService
memberService
;
@Autowired
private
FilmService
memberF
ilmService
;
private
FilmService
f
ilmService
;
@Autowired
private
MemberTokenService
tokenService
;
...
...
@@ -61,7 +61,7 @@ public class MemberApplyController {
public
Object
saveMemberFilmType
(
String
film_type_name
,
String
enroll_type_name
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
Long
member_film_id
=
memberF
ilmService
.
saveMemberFilmType
(
member_id
,
film_type_name
,
enroll_type_name
);
Long
member_film_id
=
f
ilmService
.
saveMemberFilmType
(
member_id
,
film_type_name
,
enroll_type_name
);
return
Rjx
.
jsonOk
().
set
(
"member_film_id"
,
member_film_id
);
}
...
...
@@ -85,13 +85,14 @@ public class MemberApplyController {
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
String
[]
enroll_type_name_other
=
req
.
getParameterValues
(
"enroll_type_name_other"
);
memberF
ilmService
.
saveMemberFilmBase
(
f
ilmService
.
saveMemberFilmBase
(
member_id
,
member_film_id
,
enroll_type_name_other
,
cn_name
,
en_name
,
intro
);
filmService
.
initKeywords
(
member_film_id
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -142,7 +143,7 @@ public class MemberApplyController {
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
String
[]
co_production_country
=
req
.
getParameterValues
(
"co_production_country"
);
memberF
ilmService
.
saveMemberFilmInfo
(
f
ilmService
.
saveMemberFilmInfo
(
member_id
,
member_film_id
,
film_country
,
...
...
@@ -188,7 +189,7 @@ public class MemberApplyController {
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberF
ilmService
.
saveMemberFilmCompany
(
f
ilmService
.
saveMemberFilmCompany
(
member_id
,
member_film_id
,
film_apply_company
,
...
...
@@ -209,7 +210,7 @@ public class MemberApplyController {
public
Object
doApply
(
Long
member_film_id
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberF
ilmService
.
doApply
(
member_id
,
member_film_id
);
f
ilmService
.
doApply
(
member_id
,
member_film_id
);
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