Commit 35f6f442 authored by Quxl's avatar Quxl

x

parent d6166b7c
...@@ -10,7 +10,7 @@ import com.egolm.film.bean.Fc_member_film_issuer; ...@@ -10,7 +10,7 @@ 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_playactor;
import com.egolm.film.bean.Fc_member_film_show; import com.egolm.film.bean.Fc_member_film_show;
public interface MemberFilmService { public interface FilmService {
List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id); List<Fc_member_film_issuer> queryMemberFilmIssuerList(Long member_film_id);
...@@ -107,4 +107,8 @@ public interface MemberFilmService { ...@@ -107,4 +107,8 @@ public interface MemberFilmService {
Fc_member_film queryMemberFilmById(Long member_film_id); Fc_member_film queryMemberFilmById(Long member_film_id);
Object queryEnrollList();
Object queryTypeList();
} }
...@@ -19,7 +19,7 @@ import com.egolm.common.StringUtil; ...@@ -19,7 +19,7 @@ import com.egolm.common.StringUtil;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.common.web.ServletUtil; import com.egolm.common.web.ServletUtil;
import com.egolm.film.api.service.MemberFilmService; import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.Messages; import com.egolm.film.api.service.Messages;
import com.egolm.film.bean.Fc_film_enroll; import com.egolm.film.bean.Fc_film_enroll;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
...@@ -33,7 +33,7 @@ import com.egolm.film.util.SqlWhere; ...@@ -33,7 +33,7 @@ import com.egolm.film.util.SqlWhere;
@Service @Service
public class MemberFilmServiceImpl implements MemberFilmService { public class MemberFilmServiceImpl implements FilmService {
@Autowired @Autowired
private Messages messages; private Messages messages;
...@@ -410,4 +410,14 @@ public class MemberFilmServiceImpl implements MemberFilmService { ...@@ -410,4 +410,14 @@ public class MemberFilmServiceImpl implements MemberFilmService {
jdbcTemplate.executeUpdate(sql, 3, member_film_id); jdbcTemplate.executeUpdate(sql, 3, member_film_id);
} }
@Override
public List<Map<String, Object>> queryEnrollList() {
return jdbcTemplate.queryForList("select * from fc_film_enroll");
}
@Override
public List<Map<String, Object>> queryTypeList() {
return jdbcTemplate.queryForList("select * from fc_film_type");
}
} }
...@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.film.api.service.CountryService; import com.egolm.film.api.service.CountryService;
import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.LanguageService; import com.egolm.film.api.service.LanguageService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -24,6 +25,9 @@ public class CommonApiController { ...@@ -24,6 +25,9 @@ public class CommonApiController {
@Autowired @Autowired
private LanguageService languageService; private LanguageService languageService;
@Autowired
private FilmService filmService;
@ResponseBody @ResponseBody
@PostMapping("getCountryList") @PostMapping("getCountryList")
@ApiOperation("获取国家对照表") @ApiOperation("获取国家对照表")
...@@ -39,4 +43,18 @@ public class CommonApiController { ...@@ -39,4 +43,18 @@ public class CommonApiController {
return Rjx.jsonOk().setData(languageService.queryLanguageList()); return Rjx.jsonOk().setData(languageService.queryLanguageList());
} }
@ResponseBody
@PostMapping("getEnrollList")
@ApiOperation("获取影片性质列表")
public Object getEnrollList() {
return Rjx.jsonOk().setData(filmService.queryEnrollList());
}
@ResponseBody
@PostMapping("getTypeList")
@ApiOperation("获取影片类型列表")
public Object getTypeList() {
return Rjx.jsonOk().setData(filmService.queryTypeList());
}
} }
...@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminTokenService; import com.egolm.film.api.service.AdminTokenService;
import com.egolm.film.api.service.MemberFilmService; import com.egolm.film.api.service.FilmService;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_issuer; 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_playactor;
...@@ -35,7 +35,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -35,7 +35,7 @@ import io.swagger.annotations.ApiOperation;
public class AdminFirstController { public class AdminFirstController {
@Autowired @Autowired
MemberFilmService memberFilmService; FilmService memberFilmService;
@Autowired @Autowired
AdminTokenService tokenService; AdminTokenService tokenService;
......
...@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.film.api.service.MemberFilmService; import com.egolm.film.api.service.FilmService;
import com.egolm.film.api.service.MemberService; import com.egolm.film.api.service.MemberService;
import com.egolm.film.api.service.MemberTokenService; import com.egolm.film.api.service.MemberTokenService;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
...@@ -36,7 +36,7 @@ public class MemberApplyController { ...@@ -36,7 +36,7 @@ public class MemberApplyController {
private MemberService memberService; private MemberService memberService;
@Autowired @Autowired
private MemberFilmService memberFilmService; private FilmService memberFilmService;
@Autowired @Autowired
private MemberTokenService tokenService; private MemberTokenService tokenService;
......
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