Commit b2c7b5ea authored by Quxl's avatar Quxl

获取申报信息详情

parent d565a2ed
......@@ -12,6 +12,11 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx;
import com.egolm.film.api.member.model.ApplyModel;
import com.egolm.film.api.member.service.MemberService;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_director;
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.login.service.MemberTokenService;
import com.egolm.film.model.LoginToken;
......@@ -51,9 +56,14 @@ public class MemberApplyController {
@ResponseBody
@PostMapping("get")
@ApiOperation("获取申报详情")
@ApiImplicitParams({@ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "id")})
public Object get(String id) {
return Rjx.jsonOk();
@ApiImplicitParams({@ApiImplicitParam(paramType = "query", dataType = "long", required = true, name = "id")})
public Object get(Long id) {
Fc_member_film memberFilm = memberService.queryMemberFilmById(id);
List<Fc_member_film_director> directorList = memberService.queryMemberFilmDirectorList(memberFilm.getId());
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);
}
@ResponseBody
......
......@@ -4,6 +4,11 @@ import java.util.List;
import java.util.Map;
import com.egolm.film.bean.Fc_member;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_director;
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;
public interface MemberService {
......@@ -23,4 +28,14 @@ public interface MemberService {
boolean exists(String email);
Fc_member_film queryMemberFilmById(Long id);
List<Fc_member_film_director> queryMemberFilmDirectorList(Long member_film_id);
List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id);
List<Fc_member_film_playactor> queryMemberFilmPlayactorList(Long member_film_id);
List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id);
}
......@@ -9,6 +9,11 @@ import org.springframework.stereotype.Service;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.film.api.member.service.MemberService;
import com.egolm.film.bean.Fc_member;
import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_director;
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;
@Service
......@@ -62,4 +67,29 @@ public class MemberServiceImpl implements MemberService {
return jdbcTemplate.queryForInt("select count(*) from fc_member where email = ?", email) > 0;
}
@Override
public Fc_member_film queryMemberFilmById(Long id) {
return jdbcTemplate.queryForBean("select * from fc_member_film where id = ?", Fc_member_film.class, id);
}
@Override
public List<Fc_member_film_director> queryMemberFilmDirectorList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_director where film_id = ?", Fc_member_film_director.class, member_film_id);
}
@Override
public List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_issuer where film_id = ?", Fc_member_film_issuer.class, member_film_id);
}
@Override
public List<Fc_member_film_playactor> queryMemberFilmPlayactorList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_playactor where film_id = ?", Fc_member_film_playactor.class, member_film_id);
}
@Override
public List<Fc_member_film_show> queryMemberFilmShowList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_show where film_id = ?", Fc_member_film_show.class, member_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