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
0fea197e
Commit
0fea197e
authored
Nov 24, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
cf703a26
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
417 additions
and
0 deletions
+417
-0
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+3
-0
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+6
-0
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+116
-0
Fc_member_film_base_model.java
.../com/egolm/film/bean/model/Fc_member_film_base_model.java
+292
-0
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
0fea197e
...
...
@@ -9,6 +9,7 @@ import com.egolm.film.bean.Fc_member_film_all;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
public
interface
FilmService
{
...
...
@@ -113,4 +114,6 @@ public interface FilmService {
void
mergeMemberFilm
(
Fc_member_film
film
);
void
updateFilmBase
(
Fc_member_film_base_model
filmBase
);
}
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
0fea197e
...
...
@@ -27,6 +27,7 @@ import com.egolm.film.bean.Fc_member_film_all;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.XException
;
import
com.egolm.film.util.SqlWhere
;
...
...
@@ -425,4 +426,9 @@ public class FilmServiceImpl implements FilmService {
jdbcTemplate
.
merge
(
film
);
}
@Override
public
void
updateFilmBase
(
Fc_member_film_base_model
filmBase
)
{
jdbcTemplate
.
update
(
filmBase
);
}
}
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
0fea197e
...
...
@@ -18,6 +18,8 @@ import com.egolm.film.bean.Fc_member_film;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_show
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.model.LoginToken
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -127,5 +129,119 @@ public class AdminFirstController {
.
set
(
"showList"
,
showList
);
}
@ResponseBody
@PostMapping
(
"update_base"
)
@ApiOperation
(
"保存电影主要信息"
)
@ApiImplicitParams
({
})
public
Object
update_base
(
Fc_member_film_base_model
filmBase
)
{
memberFilmService
.
updateFilmBase
(
filmBase
);
return
Rjx
.
jsonOk
();
}
@Transactional
@ResponseBody
@PostMapping
(
"save_show"
)
@ApiOperation
(
"保存影片放映信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"play_shanghai"
,
value
=
"该片在上海电影节放映是"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"show_filmfest"
,
value
=
"参加过什么电影节"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"show_filmfest_type"
,
value
=
"参与类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"show_filmfest_intro"
,
value
=
"简介(获奖或报名奖项等)"
),
})
public
Object
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberFilmService
.
saveMemberFilmShow
(
member_id
,
member_film_id
,
play_shanghai
,
show_filmfest
,
show_filmfest_type
,
show_filmfest_intro
);
return
Rjx
.
jsonOk
();
}
@Transactional
@ResponseBody
@PostMapping
(
"save_issuer"
)
@ApiOperation
(
"保存影片发行信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"issuer_company"
,
value
=
"发行公司"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"issuer_contacts"
,
value
=
"发行方联系人"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"issuer_email"
,
value
=
"发行方Email"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"issuer_tel"
,
value
=
"发行方电话"
),
})
public
Object
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberFilmService
.
saveMemberFilmIssuer
(
member_id
,
member_film_id
,
issuer_company
,
issuer_contacts
,
issuer_email
,
issuer_tel
);
return
Rjx
.
jsonOk
();
}
@Transactional
@ResponseBody
@PostMapping
(
"save_playactor"
)
@ApiOperation
(
"保存影片演职员信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
allowMultiple
=
false
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_type"
,
value
=
"演职员类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_role_name"
,
value
=
"饰演的角色名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_name"
,
value
=
"演职员名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_film_nums"
,
value
=
"演职员第几部长片"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"playactor_country"
,
value
=
"演职员国家"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"playactor_birthday"
,
value
=
"演职员生日"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_intro"
,
value
=
"演职员简介"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"is_play_shanghai"
,
value
=
"演职员作品是否参加过上海电影节"
),
})
public
Object
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_role_name
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
memberFilmService
.
saveMemberFilmPlayactor
(
member_id
,
member_film_id
,
playactor_type
,
playactor_role_name
,
playactor_name
,
playactor_film_nums
,
playactor_country
,
playactor_birthday
,
playactor_intro
,
is_play_shanghai
);
return
Rjx
.
jsonOk
();
}
}
src/main/java/com/egolm/film/bean/model/Fc_member_film_base_model.java
0 → 100644
View file @
0fea197e
package
com
.
egolm
.
film
.
bean
.
model
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
@ApiModel
@Entity
(
name
=
"fc_member_film"
)
public
class
Fc_member_film_base_model
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
@Column
(
name
=
"id"
)
@ApiModelProperty
(
"影片编号"
)
Long
member_film_id
;
@ApiModelProperty
(
"影片类型"
)
String
film_type_name
;
@ApiModelProperty
(
"影片类型扩展分类"
)
String
film_type_name_short
;
@ApiModelProperty
(
"报名性质"
)
String
enroll_type_name
;
@ApiModelProperty
(
"报名性质扩展分类"
)
String
[]
enroll_type_name_other
;
@ApiModelProperty
(
"影片原名"
)
String
original_name
;
@ApiModelProperty
(
"中文名称"
)
String
cn_name
;
@ApiModelProperty
(
"英文名称"
)
String
en_name
;
@ApiModelProperty
(
"影片简介"
)
String
intro
;
@ApiModelProperty
(
"制片国家"
)
String
film_country
;
@ApiModelProperty
(
"对白语言"
)
String
dialogue_lang
;
@ApiModelProperty
(
"字幕语言"
)
String
subtitle_lang
;
@ApiModelProperty
(
"合拍国家"
)
String
[]
co_production_country
;
@ApiModelProperty
(
"总时长"
)
String
film_total_time
;
@ApiModelProperty
(
"完成时间"
)
String
completion_date
;
@ApiModelProperty
(
"放映时间"
)
String
show_date
;
@ApiModelProperty
(
"首映时间"
)
String
first_show_date
;
@ApiModelProperty
(
"首映城市"
)
String
first_show_city
;
@ApiModelProperty
(
"是否同时参加其他电影节"
)
Integer
is_apply_other_filmfest
;
@ApiModelProperty
(
"同时参加的电影节的名字"
)
String
other_filmfest_name
;
@ApiModelProperty
(
"影片色彩"
)
String
film_medium
;
@ApiModelProperty
(
"样片规格"
)
String
film_format
;
@ApiModelProperty
(
"样片提取地址"
)
String
film_format_url
;
@ApiModelProperty
(
"样片提取密码"
)
String
film_format_passw
;
@ApiModelProperty
(
"样片其他信息"
)
String
film_format_other
;
@ApiModelProperty
(
"影片申请公司"
)
String
film_apply_company
;
@ApiModelProperty
(
"影片申请人"
)
String
film_apply_realname
;
@ApiModelProperty
(
"影片申请人邮箱"
)
String
film_apply_email
;
@ApiModelProperty
(
"影片申请人电话"
)
String
film_apply_tel
;
@ApiModelProperty
(
"影片申请人手机"
)
String
film_apply_mobile
;
@ApiModelProperty
(
"影片申请人国籍"
)
String
film_apply_country
;
public
Long
getMember_film_id
()
{
return
member_film_id
;
}
public
void
setMember_film_id
(
Long
member_film_id
)
{
this
.
member_film_id
=
member_film_id
;
}
public
String
getFilm_type_name
()
{
return
film_type_name
;
}
public
void
setFilm_type_name
(
String
film_type_name
)
{
this
.
film_type_name
=
film_type_name
;
}
public
String
getFilm_type_name_short
()
{
return
film_type_name_short
;
}
public
void
setFilm_type_name_short
(
String
film_type_name_short
)
{
this
.
film_type_name_short
=
film_type_name_short
;
}
public
String
getEnroll_type_name
()
{
return
enroll_type_name
;
}
public
void
setEnroll_type_name
(
String
enroll_type_name
)
{
this
.
enroll_type_name
=
enroll_type_name
;
}
public
String
[]
getEnroll_type_name_other
()
{
return
enroll_type_name_other
;
}
public
void
setEnroll_type_name_other
(
String
[]
enroll_type_name_other
)
{
this
.
enroll_type_name_other
=
enroll_type_name_other
;
}
public
String
getCn_name
()
{
return
cn_name
;
}
public
void
setCn_name
(
String
cn_name
)
{
this
.
cn_name
=
cn_name
;
}
public
String
getEn_name
()
{
return
en_name
;
}
public
void
setEn_name
(
String
en_name
)
{
this
.
en_name
=
en_name
;
}
public
String
getIntro
()
{
return
intro
;
}
public
void
setIntro
(
String
intro
)
{
this
.
intro
=
intro
;
}
public
String
getFilm_country
()
{
return
film_country
;
}
public
void
setFilm_country
(
String
film_country
)
{
this
.
film_country
=
film_country
;
}
public
String
getDialogue_lang
()
{
return
dialogue_lang
;
}
public
void
setDialogue_lang
(
String
dialogue_lang
)
{
this
.
dialogue_lang
=
dialogue_lang
;
}
public
String
getSubtitle_lang
()
{
return
subtitle_lang
;
}
public
void
setSubtitle_lang
(
String
subtitle_lang
)
{
this
.
subtitle_lang
=
subtitle_lang
;
}
public
String
[]
getCo_production_country
()
{
return
co_production_country
;
}
public
void
setCo_production_country
(
String
[]
co_production_country
)
{
this
.
co_production_country
=
co_production_country
;
}
public
String
getFilm_total_time
()
{
return
film_total_time
;
}
public
void
setFilm_total_time
(
String
film_total_time
)
{
this
.
film_total_time
=
film_total_time
;
}
public
String
getCompletion_date
()
{
return
completion_date
;
}
public
void
setCompletion_date
(
String
completion_date
)
{
this
.
completion_date
=
completion_date
;
}
public
String
getShow_date
()
{
return
show_date
;
}
public
void
setShow_date
(
String
show_date
)
{
this
.
show_date
=
show_date
;
}
public
String
getFirst_show_date
()
{
return
first_show_date
;
}
public
void
setFirst_show_date
(
String
first_show_date
)
{
this
.
first_show_date
=
first_show_date
;
}
public
String
getFirst_show_city
()
{
return
first_show_city
;
}
public
void
setFirst_show_city
(
String
first_show_city
)
{
this
.
first_show_city
=
first_show_city
;
}
public
Integer
getIs_apply_other_filmfest
()
{
return
is_apply_other_filmfest
;
}
public
void
setIs_apply_other_filmfest
(
Integer
is_apply_other_filmfest
)
{
this
.
is_apply_other_filmfest
=
is_apply_other_filmfest
;
}
public
String
getOther_filmfest_name
()
{
return
other_filmfest_name
;
}
public
void
setOther_filmfest_name
(
String
other_filmfest_name
)
{
this
.
other_filmfest_name
=
other_filmfest_name
;
}
public
String
getFilm_medium
()
{
return
film_medium
;
}
public
void
setFilm_medium
(
String
film_medium
)
{
this
.
film_medium
=
film_medium
;
}
public
String
getFilm_format
()
{
return
film_format
;
}
public
void
setFilm_format
(
String
film_format
)
{
this
.
film_format
=
film_format
;
}
public
String
getFilm_format_url
()
{
return
film_format_url
;
}
public
void
setFilm_format_url
(
String
film_format_url
)
{
this
.
film_format_url
=
film_format_url
;
}
public
String
getFilm_format_passw
()
{
return
film_format_passw
;
}
public
void
setFilm_format_passw
(
String
film_format_passw
)
{
this
.
film_format_passw
=
film_format_passw
;
}
public
String
getFilm_format_other
()
{
return
film_format_other
;
}
public
void
setFilm_format_other
(
String
film_format_other
)
{
this
.
film_format_other
=
film_format_other
;
}
public
String
getFilm_apply_company
()
{
return
film_apply_company
;
}
public
void
setFilm_apply_company
(
String
film_apply_company
)
{
this
.
film_apply_company
=
film_apply_company
;
}
public
String
getFilm_apply_realname
()
{
return
film_apply_realname
;
}
public
void
setFilm_apply_realname
(
String
film_apply_realname
)
{
this
.
film_apply_realname
=
film_apply_realname
;
}
public
String
getFilm_apply_email
()
{
return
film_apply_email
;
}
public
void
setFilm_apply_email
(
String
film_apply_email
)
{
this
.
film_apply_email
=
film_apply_email
;
}
public
String
getFilm_apply_tel
()
{
return
film_apply_tel
;
}
public
void
setFilm_apply_tel
(
String
film_apply_tel
)
{
this
.
film_apply_tel
=
film_apply_tel
;
}
public
String
getFilm_apply_mobile
()
{
return
film_apply_mobile
;
}
public
void
setFilm_apply_mobile
(
String
film_apply_mobile
)
{
this
.
film_apply_mobile
=
film_apply_mobile
;
}
public
String
getFilm_apply_country
()
{
return
film_apply_country
;
}
public
void
setFilm_apply_country
(
String
film_apply_country
)
{
this
.
film_apply_country
=
film_apply_country
;
}
}
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