Commit a41b9dc9 authored by Quxl's avatar Quxl

x

parent 59cdbc7f
......@@ -11,6 +11,7 @@ import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.PreparedStatementCreator;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.jdbc.support.KeyHolder;
......@@ -672,6 +673,10 @@ public class FilmServiceImpl implements FilmService {
@Override
public Fc_member_film_ext queryFilmExt(Integer id) {
return jdbcTemplate.queryForBean("select * from fc_member_film_ext where id = ?", Fc_member_film_ext.class, id);
try {
return jdbcTemplate.queryForBean("select * from fc_member_film_ext where id = ?", Fc_member_film_ext.class, id);
} catch (EmptyResultDataAccessException e) {
return null;
}
}
}
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