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
77dcedf8
Commit
77dcedf8
authored
Oct 12, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化申报接口
parent
1eb17e57
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
314 additions
and
58 deletions
+314
-58
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+86
-11
MemberService.java
...java/com/egolm/film/api/member/service/MemberService.java
+66
-23
MemberServiceImpl.java
...egolm/film/api/member/service/impl/MemberServiceImpl.java
+162
-24
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
77dcedf8
...
...
@@ -89,8 +89,28 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_medium"
,
value
=
"影片色彩"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_format"
,
value
=
"样片规格"
),
})
public
Object
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
)
{
memberService
.
saveMemberFilmInfo
(
member_film_id
,
film_country
,
dialogue_lang
,
subtitle_lang
,
co_production_country
,
film_total_time
,
completion_date
,
show_date
,
film_medium
,
film_format
);
public
Object
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
)
{
memberService
.
saveMemberFilmInfo
(
member_film_id
,
film_country
,
dialogue_lang
,
subtitle_lang
,
co_production_country
,
film_total_time
,
completion_date
,
show_date
,
film_medium
,
film_format
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -108,8 +128,24 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"playactor_intro"
,
value
=
"演职员简介"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"is_play_shanghai"
,
value
=
"演职员作品是否参加过上海电影节"
),
})
public
Object
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
memberService
.
saveMemberFilmPlayactor
(
member_film_id
,
playactor_type
,
playactor_name
,
playactor_film_nums
,
playactor_country
,
playactor_birthday
,
playactor_intro
,
is_play_shanghai
);
public
Object
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
memberService
.
saveMemberFilmPlayactor
(
member_film_id
,
playactor_type
,
playactor_name
,
playactor_film_nums
,
playactor_country
,
playactor_birthday
,
playactor_intro
,
is_play_shanghai
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -124,8 +160,18 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
allowMultiple
=
true
,
required
=
false
,
name
=
"issuer_email"
,
value
=
"发行方Email"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
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
)
{
memberService
.
saveMemberFilmIssuer
(
member_film_id
,
issuer_company
,
issuer_contacts
,
issuer_email
,
issuer_tel
);
public
Object
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
)
{
memberService
.
saveMemberFilmIssuer
(
member_film_id
,
issuer_company
,
issuer_contacts
,
issuer_email
,
issuer_tel
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -140,8 +186,18 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
allowMultiple
=
true
,
required
=
true
,
name
=
"show_filmfest_type"
,
value
=
"参与类型"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"array"
,
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
)
{
memberService
.
saveMemberFilmShow
(
member_film_id
,
play_shanghai
,
show_filmfest
,
show_filmfest_type
,
show_filmfest_intro
);
public
Object
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
)
{
memberService
.
saveMemberFilmShow
(
member_film_id
,
play_shanghai
,
show_filmfest
,
show_filmfest_type
,
show_filmfest_intro
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -157,8 +213,22 @@ public class MemberApplyController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_apply_mobile"
,
value
=
"申报手机"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"film_apply_country"
,
value
=
"申报国家"
),
})
public
Object
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
)
{
memberService
.
saveMemberFilmCompany
(
member_film_id
,
film_apply_company
,
film_apply_realname
,
film_apply_email
,
film_apply_tel
,
film_apply_mobile
,
film_apply_country
);
public
Object
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
)
{
memberService
.
saveMemberFilmCompany
(
member_film_id
,
film_apply_company
,
film_apply_realname
,
film_apply_email
,
film_apply_tel
,
film_apply_mobile
,
film_apply_country
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -172,7 +242,12 @@ public class MemberApplyController {
List
<
Fc_member_film_issuer
>
issuerList
=
memberService
.
queryMemberFilmIssuerList
(
memberFilm
.
getId
());
List
<
Fc_member_film_playactor
>
playactorList
=
memberService
.
queryMemberFilmPlayactorList
(
memberFilm
.
getId
());
List
<
Fc_member_film_show
>
showList
=
memberService
.
queryMemberFilmShowList
(
memberFilm
.
getId
());
return
Rjx
.
jsonOk
().
setData
(
memberFilm
).
set
(
"directorList"
,
directorList
).
set
(
"issuerList"
,
issuerList
).
set
(
"playactorList"
,
playactorList
).
set
(
"showList"
,
showList
);
return
Rjx
.
jsonOk
()
.
setData
(
memberFilm
)
.
set
(
"directorList"
,
directorList
)
.
set
(
"issuerList"
,
issuerList
)
.
set
(
"playactorList"
,
playactorList
)
.
set
(
"showList"
,
showList
);
}
@ResponseBody
...
...
src/main/java/com/egolm/film/api/member/service/MemberService.java
View file @
77dcedf8
...
...
@@ -23,7 +23,13 @@ public interface MemberService {
void
mergeMember
(
Fc_member
member
);
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
);
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
);
List
<
Map
<
String
,
Object
>>
queryListByMemberID
(
Integer
member_id
);
...
...
@@ -39,32 +45,69 @@ public interface MemberService {
List
<
Fc_member_film_show
>
queryMemberFilmShowList
(
Long
member_film_id
);
void
doApply
(
Integer
member_id
,
Long
member_film_id
);
void
doApply
(
Integer
member_id
,
Long
member_film_id
);
void
saveMore
(
Fc_member_film_all
more
);
Fc_member_film_all
queryMoreByNo
(
String
no
);
Long
saveMemberFilmType
(
Long
member_film_id
,
String
film_type_name
,
String
enroll_type_name
);
Long
saveMemberFilmType
(
Long
member_film_id
,
String
film_type_name
,
String
enroll_type_name
);
void
saveMemberFilmBase
(
Long
member_film_id
,
String
[]
enroll_type_name_other
,
String
cn_name
,
String
en_name
,
void
saveMemberFilmBase
(
Long
member_film_id
,
String
[]
enroll_type_name_other
,
String
cn_name
,
String
en_name
,
String
intro
);
void
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
);
void
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
);
void
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
);
void
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
);
void
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
);
void
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
);
void
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
);
void
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
);
void
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
);
void
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
);
}
src/main/java/com/egolm/film/api/member/service/impl/MemberServiceImpl.java
View file @
77dcedf8
...
...
@@ -66,9 +66,32 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
String
sql
=
"update fc_member set email = ?, realname = ?, address = ?, company = ?, tel = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
email
,
realname
,
address
,
company
,
tel
,
id
);
public
void
updateMember
(
Integer
id
,
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
String
sql
=
""
+
"update "
+
"fc_member "
+
"set "
+
"email = ?, "
+
"realname = ?, "
+
"address = ?, "
+
"company = ?, "
+
"tel = ? "
+
"where "
+
"id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
email
,
realname
,
address
,
company
,
tel
,
id
);
}
@Override
...
...
@@ -127,7 +150,11 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
Long
saveMemberFilmType
(
Long
member_film_id
,
String
film_type_name
,
String
enroll_type_name
)
{
public
Long
saveMemberFilmType
(
Long
member_film_id
,
String
film_type_name
,
String
enroll_type_name
)
{
String
sql
=
"insert into fc_member_film (film_type_name, enroll_type_name) values (?, ?)"
;
Object
[]
args
=
new
Object
[]{
film_type_name
,
enroll_type_name
};
KeyHolder
keyHolder
=
new
GeneratedKeyHolder
();
...
...
@@ -152,7 +179,12 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmBase
(
Long
member_film_id
,
String
[]
enroll_type_name_other
,
String
cn_name
,
String
en_name
,
String
intro
)
{
public
void
saveMemberFilmBase
(
Long
member_film_id
,
String
[]
enroll_type_name_other
,
String
cn_name
,
String
en_name
,
String
intro
)
{
String
sql
=
"update fc_member_film set enroll_type_name_other = ?, cn_name = ?, en_name = ?, intro = ? where id = ?"
;
String
str
=
StringUtil
.
join
(
","
,
""
,
""
,
""
,
enroll_type_name_other
);
Object
[]
args
=
new
Object
[]{
str
,
cn_name
,
en_name
,
intro
,
member_film_id
};
...
...
@@ -160,9 +192,17 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
)
{
public
void
saveMemberFilmInfo
(
Long
member_film_id
,
String
film_country
,
String
dialogue_lang
,
String
subtitle_lang
,
String
[]
co_production_country
,
String
film_total_time
,
String
completion_date
,
String
show_date
,
String
film_medium
,
String
film_format
)
{
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 = ? where id = ?"
;
String
str
=
StringUtil
.
join
(
","
,
""
,
""
,
""
,
co_production_country
);
Object
[]
args
=
new
Object
[]{
str
,
film_country
,
dialogue_lang
,
subtitle_lang
,
str
,
film_total_time
,
completion_date
,
show_date
,
film_medium
,
film_format
,
member_film_id
};
...
...
@@ -170,24 +210,75 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
if
(
playactor_type
.
length
==
playactor_name
.
length
&&
playactor_name
.
length
==
playactor_film_nums
.
length
&&
playactor_film_nums
.
length
==
playactor_country
.
length
&&
playactor_country
.
length
==
playactor_birthday
.
length
&&
playactor_birthday
.
length
==
playactor_intro
.
length
&&
playactor_intro
.
length
==
is_play_shanghai
.
length
)
{
public
void
saveMemberFilmPlayactor
(
Long
member_film_id
,
String
[]
playactor_type
,
String
[]
playactor_name
,
String
[]
playactor_film_nums
,
String
[]
playactor_country
,
String
[]
playactor_birthday
,
String
[]
playactor_intro
,
Integer
[]
is_play_shanghai
)
{
if
(
playactor_type
.
length
==
playactor_name
.
length
&&
playactor_name
.
length
==
playactor_film_nums
.
length
&&
playactor_film_nums
.
length
==
playactor_country
.
length
&&
playactor_country
.
length
==
playactor_birthday
.
length
&&
playactor_birthday
.
length
==
playactor_intro
.
length
&&
playactor_intro
.
length
==
is_play_shanghai
.
length
)
{
Long
create_time
=
System
.
currentTimeMillis
();
List
<
Object
[]>
playactors
=
new
ArrayList
<
Object
[]>();
List
<
Object
[]>
directors
=
new
ArrayList
<
Object
[]>();
for
(
int
i
=
0
;
i
<
playactor_type
.
length
;
i
++)
{
if
(!
playactor_type
[
i
].
equals
(
"0"
))
{
playactors
.
add
(
new
Object
[]{
member_film_id
,
playactor_name
[
i
],
playactor_film_nums
[
i
],
playactor_intro
[
i
],
playactor_country
[
i
],
playactor_birthday
[
i
],
create_time
,
playactor_type
[
i
]});
playactors
.
add
(
new
Object
[]{
member_film_id
,
playactor_name
[
i
],
playactor_film_nums
[
i
],
playactor_intro
[
i
],
playactor_country
[
i
],
playactor_birthday
[
i
],
create_time
,
playactor_type
[
i
]});
}
else
{
directors
.
add
(
new
Object
[]
{
member_film_id
,
playactor_name
[
i
],
playactor_film_nums
[
i
],
playactor_intro
[
i
],
playactor_country
[
i
],
playactor_birthday
[
i
],
create_time
,
is_play_shanghai
[
i
]});
directors
.
add
(
new
Object
[]
{
member_film_id
,
playactor_name
[
i
],
playactor_film_nums
[
i
],
playactor_intro
[
i
],
playactor_country
[
i
],
playactor_birthday
[
i
],
create_time
,
is_play_shanghai
[
i
]});
}
}
jdbcTemplate
.
executeUpdate
(
"delete from fc_member_film_playactor where film_id = ?"
,
member_film_id
);
jdbcTemplate
.
executeUpdate
(
"delete from fc_member_film_director where film_id = ?"
,
member_film_id
);
String
sql_playactor
=
"insert into fc_member_film_playactor(film_id, playactor_name, playactor_film_nums, playactor_film_intro, playactor_country, playactor_birthday, create_time, playactor_type) values (?, ?, ?, ?, ?, ?, ?, ?)"
;
String
sql_director
=
"insert into fc_member_film_director (film_id, director_name, director_film_nums, director_intro, playactor_country, playactor_birthday, create_time, director_is_play_shanghai) values (?, ?, ?, ?, ?, ?, ?, ?)"
;
String
sql_playactor
=
""
+
"insert into fc_member_film_playactor("
+
"film_id, "
+
"playactor_name, "
+
"playactor_film_nums, "
+
"playactor_film_intro, "
+
"playactor_country, "
+
"playactor_birthday, "
+
"create_time, "
+
"playactor_type)"
+
"values "
+
"(?, ?, ?, ?, ?, ?, ?, ?)"
;
String
sql_director
=
""
+
"insert into fc_member_film_director ("
+
"film_id, "
+
"director_name, "
+
"director_film_nums, "
+
"director_intro, "
+
"playactor_country, "
+
"playactor_birthday, "
+
"create_time, "
+
"director_is_play_shanghai) "
+
"values "
+
"(?, ?, ?, ?, ?, ?, ?, ?)"
;
jdbcTemplate
.
batchUpdate
(
sql_playactor
,
playactors
);
jdbcTemplate
.
batchUpdate
(
sql_director
,
directors
);
}
else
{
...
...
@@ -196,15 +287,33 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
)
{
if
(
issuer_company
.
length
==
issuer_contacts
.
length
&&
issuer_contacts
.
length
==
issuer_email
.
length
&&
issuer_email
.
length
==
issuer_tel
.
length
)
{
public
void
saveMemberFilmIssuer
(
Long
member_film_id
,
String
[]
issuer_company
,
String
[]
issuer_contacts
,
String
[]
issuer_email
,
String
[]
issuer_tel
)
{
if
(
issuer_company
.
length
==
issuer_contacts
.
length
&&
issuer_contacts
.
length
==
issuer_email
.
length
&&
issuer_email
.
length
==
issuer_tel
.
length
)
{
Long
create_time
=
System
.
currentTimeMillis
();
Object
[][]
args
=
new
Object
[
issuer_company
.
length
][];
for
(
int
i
=
0
;
i
<
issuer_company
.
length
;
i
++)
{
args
[
i
]
=
new
Object
[]{
member_film_id
,
issuer_company
[
i
],
issuer_contacts
[
i
],
issuer_email
[
i
],
issuer_tel
[
i
],
create_time
};
}
jdbcTemplate
.
executeUpdate
(
"delete from fc_member_film_issuer where film_id = ?"
,
member_film_id
);
String
sql
=
"insert into fc_member_film_issuer (film_id, issuer_company, issuer_contacts, issuer_email, issuer_tel, create_time) values (?, ?, ?, ?, ?, ?);"
;
String
sql
=
""
+
"insert into fc_member_film_issuer ("
+
"film_id, "
+
"issuer_company, "
+
"issuer_contacts, "
+
"issuer_email, "
+
"issuer_tel, "
+
"create_time) "
+
"values "
+
"(?, ?, ?, ?, ?, ?);"
;
jdbcTemplate
.
batchUpdate
(
sql
,
args
);
}
else
{
throw
new
XException
(
messages
.
get
(
"err.args_nums"
));
...
...
@@ -212,7 +321,12 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
)
{
public
void
saveMemberFilmShow
(
Long
member_film_id
,
String
play_shanghai
,
String
[]
show_filmfest
,
String
[]
show_filmfest_type
,
String
[]
show_filmfest_intro
)
{
if
(
show_filmfest
.
length
==
show_filmfest_type
.
length
&&
show_filmfest_type
.
length
==
show_filmfest_intro
.
length
)
{
Long
create_time
=
System
.
currentTimeMillis
();
Object
[][]
args
=
new
Object
[
show_filmfest
.
length
][];
...
...
@@ -229,11 +343,35 @@ public class MemberServiceImpl implements MemberService {
}
@Override
public
void
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
)
{
String
sql
=
"update fc_member_film set film_apply_company = ?, film_apply_realname = ?, film_apply_email = ?, film_apply_tel = ?, film_apply_mobile = ?, film_apply_country = ? where id = ?"
;
Object
[]
args
=
new
Object
[]{
film_apply_company
,
film_apply_realname
,
film_apply_email
,
film_apply_tel
,
film_apply_mobile
,
film_apply_country
,
member_film_id
};
public
void
saveMemberFilmCompany
(
Long
member_film_id
,
String
film_apply_company
,
String
film_apply_realname
,
String
film_apply_email
,
String
film_apply_tel
,
String
film_apply_mobile
,
String
film_apply_country
)
{
String
sql
=
""
+
"update "
+
"fc_member_film "
+
"set "
+
"film_apply_company = ?, "
+
"film_apply_realname = ?, "
+
"film_apply_email = ?, "
+
"film_apply_tel = ?, "
+
"film_apply_mobile = ?, "
+
"film_apply_country = ? "
+
"where "
+
"id = ?"
;
Object
[]
args
=
new
Object
[]{
film_apply_company
,
film_apply_realname
,
film_apply_email
,
film_apply_tel
,
film_apply_mobile
,
film_apply_country
,
member_film_id
};
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