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
eddf7c37
Commit
eddf7c37
authored
Oct 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
31bd0064
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
6 deletions
+82
-6
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+28
-4
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+4
-0
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+50
-2
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
eddf7c37
...
@@ -66,9 +66,19 @@ public class MemberApplyController {
...
@@ -66,9 +66,19 @@ public class MemberApplyController {
@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
=
false
,
name
=
"enroll_type_name_other"
,
value
=
"申报奖项"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_country"
,
value
=
"制作国家"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"cn_name"
,
value
=
"中文名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"dialogue_lang"
,
value
=
"对白语言"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"en_name"
,
value
=
"英文名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"subtitle_lang"
,
value
=
"字幕语言"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"co_production_country"
,
value
=
"合拍国家"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_total_time"
,
value
=
"影片时长"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"completion_date"
,
value
=
"完成日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"show_date"
,
value
=
"公映日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_medium"
,
value
=
"影片色彩"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_format"
,
value
=
"样片规格"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_express_no"
,
value
=
"快递单号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_format_url"
,
value
=
"样片URL地址"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_format_passw"
,
value
=
"样片URL访问密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_format_other"
,
value
=
"其他样品信息"
),
})
})
public
Object
saveMemberFilmBase
(
public
Object
saveMemberFilmBase
(
Long
member_film_id
,
Long
member_film_id
,
...
@@ -101,6 +111,12 @@ public class MemberApplyController {
...
@@ -101,6 +111,12 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_total_time"
,
value
=
"影片时长"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_total_time"
,
value
=
"影片时长"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"completion_date"
,
value
=
"完成日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"completion_date"
,
value
=
"完成日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"show_date"
,
value
=
"公映日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"show_date"
,
value
=
"公映日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"first_show_date"
,
value
=
"首次上映日期"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"first_show_city"
,
value
=
"首次上映城市"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
required
=
true
,
name
=
"is_apply_other_filmfest"
,
value
=
"是否申请其他电影节"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"other_filmfest_name"
,
value
=
"申请其他电影节名称"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_medium"
,
value
=
"影片色彩"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_medium"
,
value
=
"影片色彩"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_format"
,
value
=
"样片规格"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_format"
,
value
=
"样片规格"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_express_no"
,
value
=
"快递单号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"film_express_no"
,
value
=
"快递单号"
),
...
@@ -117,6 +133,10 @@ public class MemberApplyController {
...
@@ -117,6 +133,10 @@ public class MemberApplyController {
String
film_total_time
,
String
film_total_time
,
String
completion_date
,
String
completion_date
,
String
show_date
,
String
show_date
,
String
first_show_date
,
String
first_show_city
,
Integer
is_apply_other_filmfest
,
String
other_filmfest_name
,
String
film_medium
,
String
film_medium
,
String
film_format
,
String
film_format
,
String
film_express_no
,
String
film_express_no
,
...
@@ -136,6 +156,10 @@ public class MemberApplyController {
...
@@ -136,6 +156,10 @@ public class MemberApplyController {
film_total_time
,
film_total_time
,
completion_date
,
completion_date
,
show_date
,
show_date
,
first_show_date
,
first_show_city
,
is_apply_other_filmfest
,
other_filmfest_name
,
film_medium
,
film_medium
,
film_format
,
film_format
,
film_express_no
,
film_express_no
,
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
eddf7c37
...
@@ -76,6 +76,10 @@ public interface MemberService {
...
@@ -76,6 +76,10 @@ public interface MemberService {
String
film_total_time
,
String
film_total_time
,
String
completion_date
,
String
completion_date
,
String
show_date
,
String
show_date
,
String
first_show_date
,
String
first_show_city
,
Integer
is_apply_other_filmfest
,
String
other_filmfest_name
,
String
film_medium
,
String
film_medium
,
String
film_format
,
String
film_format
,
String
film_express_no
,
String
film_express_no
,
...
...
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
eddf7c37
...
@@ -217,6 +217,10 @@ public class MemberServiceImpl implements MemberService {
...
@@ -217,6 +217,10 @@ public class MemberServiceImpl implements MemberService {
String
film_total_time
,
String
film_total_time
,
String
completion_date
,
String
completion_date
,
String
show_date
,
String
show_date
,
String
first_show_date
,
String
first_show_city
,
Integer
is_apply_other_filmfest
,
String
other_filmfest_name
,
String
film_medium
,
String
film_medium
,
String
film_format
,
String
film_format
,
String
film_express_no
,
String
film_express_no
,
...
@@ -225,9 +229,53 @@ public class MemberServiceImpl implements MemberService {
...
@@ -225,9 +229,53 @@ public class MemberServiceImpl implements MemberService {
String
film_format_other
)
{
String
film_format_other
)
{
Long
last_modify_time
=
System
.
currentTimeMillis
()/
1000
;
Long
last_modify_time
=
System
.
currentTimeMillis
()/
1000
;
String
sql
=
"update fc_member_film set film_country = ?, dialogue_lang = ?, subtitle_lang = ?, co_production_country = ?, film_total_time = ?, completion_date = ?, show_date = ?, film_medium = ?, film_format = ?, film_express_no = ?, film_format_url = ?, film_format_passw = ?, film_format_other = ?, last_modify_time = ? where member_id = ? and id = ?"
;
String
sql
=
""
+
"update "
+
"fc_member_film "
+
"set "
+
"film_country = ?, "
+
"dialogue_lang = ?, "
+
"subtitle_lang = ?, "
+
"co_production_country = ?, "
+
"film_total_time = ?, "
+
"completion_date = ?, "
+
"show_date = ?, "
+
"first_show_date = ?, "
+
"first_show_city = ?, "
+
"is_apply_other_filmfest = ?, "
+
"other_filmfest_name = ?, "
+
"film_medium = ?, "
+
"film_format = ?, "
+
"film_express_no = ?, "
+
"film_format_url = ?, "
+
"film_format_passw = ?, "
+
"film_format_other = ?, "
+
"last_modify_time = ? "
+
"where "
+
"member_id = ? "
+
"and id = ?"
;
String
str
=
StringUtil
.
join
(
","
,
""
,
""
,
""
,
co_production_country
);
String
str
=
StringUtil
.
join
(
","
,
""
,
""
,
""
,
co_production_country
);
Object
[]
args
=
new
Object
[]{
film_country
,
dialogue_lang
,
subtitle_lang
,
str
,
film_total_time
,
completion_date
,
show_date
,
film_medium
,
film_format
,
film_express_no
,
film_format_url
,
film_format_passw
,
film_format_other
,
last_modify_time
,
member_id
,
member_film_id
};
Object
[]
args
=
new
Object
[]{
film_country
,
dialogue_lang
,
subtitle_lang
,
str
,
film_total_time
,
completion_date
,
show_date
,
first_show_date
,
first_show_city
,
is_apply_other_filmfest
,
other_filmfest_name
,
film_medium
,
film_format
,
film_express_no
,
film_format_url
,
film_format_passw
,
film_format_other
,
last_modify_time
,
member_id
,
member_film_id
};
jdbcTemplate
.
executeUpdate
(
sql
,
args
);
jdbcTemplate
.
executeUpdate
(
sql
,
args
);
}
}
...
...
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