Commit e4e91598 authored by Quxl's avatar Quxl

x

parent 5852d447
...@@ -523,7 +523,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -523,7 +523,7 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
public void verifyFilmDuplicate(Long member_film_id) { public void verifyFilmDuplicate(Long member_film_id) {
String sql0 = "select f.* from fc_member_film f, fc_member_film f2 where f.apply_state = 2 and f.en_name = f2.en_name or f.cn_name = f2.ch_name and f2.id = ? and f.id != ?"; String sql0 = "select f.* from fc_member_film f, fc_member_film f2 where f.apply_state = 2 and (f.en_name = f2.en_name or f.cn_name = f2.cn_name) and f2.id = ? and f.id != ?";
List<Fc_member_film> list = jdbcTemplate.queryForBeans(sql0, Fc_member_film.class, member_film_id, member_film_id); List<Fc_member_film> list = jdbcTemplate.queryForBeans(sql0, Fc_member_film.class, member_film_id, member_film_id);
if(list.size() > 0) { if(list.size() > 0) {
String sql = "select count(fp.id) from fc_member_film_playactor fp, fc_member_film_playactor fp2 where fp.playactor_type = 'director' and fp.playactor_type = fp2.playactor_type and fp.playactor_name = fp2.playactor_name and fp2.film_id = ? and fp.film_id != ?"; String sql = "select count(fp.id) from fc_member_film_playactor fp, fc_member_film_playactor fp2 where fp.playactor_type = 'director' and fp.playactor_type = fp2.playactor_type and fp.playactor_name = fp2.playactor_name and fp2.film_id = ? and fp.film_id != ?";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment