Commit c81c6f81 authored by Quxl's avatar Quxl

初审

parent 2b7715ae
......@@ -12,7 +12,13 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.admin.service.AdminFirstService;
import com.egolm.film.api.admin.service.AdminTokenService;
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 io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -35,6 +41,9 @@ public class AdminFirstController {
@Autowired
MemberService memberService;
@Autowired
AdminTokenService tokenService;
@ResponseBody
@PostMapping("list")
@ApiOperation("初审列表分页查询")
......@@ -56,5 +65,67 @@ public class AdminFirstController {
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("pass_list")
@ApiOperation("初审通过列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="film_type", value="影片类型"),
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="enroll_type", value="影片性质"),
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="film_country",value="影片国家地区"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
public Object pass_list(String keyword, String film_type, String enroll_type, String film_country, Long index, Long limit) {
index = index == null ? 1 : index;
limit = limit == null ? 20 : limit;
Page page = new Page(index, limit);
List<Map<String, Object>> list = memberService.queryChuShenList(keyword, 2, 2, film_type, enroll_type, film_country, page);
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("pass")
@ApiOperation("初审通过")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="member_film_id", value="申报影片ID"),
})
public Object pass(Integer member_film_id) {
// LoginToken loginToken = tokenService.getToken();
// Integer adminid = (Integer)loginToken.getId();
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("reject")
@ApiOperation("初审拒绝")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="member_film_id", value="申报影片ID"),
})
public Object reject(Integer member_film_id) {
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("get_apply_detail")
@ApiOperation("获取全部申报信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="申报影片ID")
})
public Object getDetail(Long member_film_id) {
Fc_member_film memberFilm = memberService.queryMemberFilmById(member_film_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);
}
}
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