Commit 1ee4876c authored by 曲欣红's avatar 曲欣红
parents 381e307a a85cb364
...@@ -28,4 +28,6 @@ public interface AdminUserService { ...@@ -28,4 +28,6 @@ public interface AdminUserService {
List<Fc_user_group_fun> queryGroupFunList(Integer group_id); List<Fc_user_group_fun> queryGroupFunList(Integer group_id);
void deleteUserById(Integer uid);
} }
...@@ -5,6 +5,7 @@ import java.util.Map; ...@@ -5,6 +5,7 @@ import java.util.Map;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
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;
import com.egolm.film.bean.Fc_member_film_show; import com.egolm.film.bean.Fc_member_film_show;
...@@ -92,7 +93,7 @@ public interface FilmService { ...@@ -92,7 +93,7 @@ public interface FilmService {
List<Map<String, Object>> queryListAll(String keyword); List<Map<String, Object>> queryListAll(String keyword);
List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, String film_type, String enroll_type, String film_country, Page page); List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, Integer film_type, Integer enroll_type, String film_country, Page page);
void pass(Long member_film_id); void pass(Long member_film_id);
...@@ -118,7 +119,7 @@ public interface FilmService { ...@@ -118,7 +119,7 @@ public interface FilmService {
* 进入下一个审片环节 * 进入下一个审片环节
* @param member_film_id * @param member_film_id
*/ */
void toNextRound(Long member_film_id); void toNextRound(Long member_film_id, Integer enroll_type_id);
/** /**
* 检索审片列表 * 检索审片列表
...@@ -132,12 +133,14 @@ public interface FilmService { ...@@ -132,12 +133,14 @@ public interface FilmService {
* @return * @return
*/ */
List<Map<String, Object>> queryReviewList(String keyword, Integer group_id, Integer enroll_type_id, Integer film_type_name, Integer film_type_name_short, List<Map<String, Object>> queryReviewList(String keyword, Integer group_id, Integer enroll_type_id, Integer film_type_name, Integer film_type_name_short,
String film_country, Integer[] review_round, Integer[] review_state, Page page); String film_country, Integer review_round, Integer[] review_state, Page page);
void allot(Long member_film_id, Integer review_round, Integer[] user_id); void allot(Long member_film_id, Integer enroll_type_id, Integer review_round, Integer[] user_id);
void saveUploadId(Long member_film_id, String upload_id); void saveUploadId(Long member_film_id, String upload_id);
void saveUploadState(Long member_film_id, Integer upload_state); void saveUploadState(Long member_film_id, Integer upload_state);
List<Fc_member_film_enroll> queryFilmEnrollList(Long member_film_id);
} }
package com.egolm.film.api.service;
import java.util.List;
import java.util.Map;
import com.egolm.common.jdbc.Page;
public interface LogService {
List<Map<String, Object>> queryLogList(String type, Page page);
}
...@@ -33,7 +33,7 @@ public interface MemberService { ...@@ -33,7 +33,7 @@ public interface MemberService {
Fc_member getMemberByToken(String token); Fc_member getMemberByToken(String token);
void updateToken(Integer member_id, String token_string); void updateLoginInfo(Integer member_id, String login_ip, String token_string);
void updateLanguage(Integer id, String string); void updateLanguage(Integer id, String string);
......
package com.egolm.film.api.service; package com.egolm.film.api.service;
//package com.egolm.film.api.user.service;
// import java.util.Date;
//import java.util.Date; import java.util.List;
//import java.util.List; import java.util.Map;
//import java.util.Map;
// import com.egolm.common.jdbc.Page;
//import com.egolm.common.bean.Rjx;
//import com.egolm.common.jdbc.Page; public interface UserReviewService {
//import com.egolm.film.bean.Fc_film;
//import com.egolm.film.bean.Fc_film_doubtful_point; List<Map<String, Object>> queryReviewList(boolean is_review, Integer user_id, Date push_date, Integer film_type_id, Integer enroll_type_id, String keyword, Page page);
//import com.egolm.film.bean.Fc_film_review;
// }
//public interface UserReviewService { \ No newline at end of file
//
// List<Map<String, Object>> limitReviewList(Long user_id, Page page, Date push_date, String film_type_name, String keyword);
//
// List<Map<String, Object>> limitUnviewList(Long user_id, Page page, Date push_date, String film_type_name, String keyword);
//
// Long queryMemberFilmIdByFilmId(Long film_id);
//
// List<Fc_film_review> queryRoundReviewList(Long user_id, Integer round, Long film_id);
//
// List<Fc_film_doubtful_point> queryDoubtfulList(Long user_id, Long film_id);
//
// Fc_film queryFilmById(Long film_id);
//
// Integer queryRound(Long user_id, Long film_id);
//
// Rjx queryStatistics(Long user_id);
//
// void doubtfulAppend(Long user_id, Long film_id, Integer round, Integer type, String type_content, Long play_time, Long times);
//
// void playAppend(Long user_id, Long film_id, Integer round, Long playtime, Long watchtime);
//
// void doReject(Long user_id, Long film_id, Integer round, String veto);
//
// void doPass(Long user_id, Long film_id, Integer round, Double score, String content);
//
//}
...@@ -33,8 +33,8 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -33,8 +33,8 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override @Override
public List<Map<String, Object>> queryGroupList(String keyword, Page page) { public List<Map<String, Object>> queryGroupList(String keyword, Page page) {
SqlWhere argEdit = new SqlWhere().lk("group_name", keyword); SqlWhere argEdit = new SqlWhere().lk("ag.group_name", keyword);
String sql = "select * from fc_admin_group" + StringUtil.join(" and ", " where ", "", "", argEdit.getStringList()); String sql = "select ag.*, (select count(adminid) from fc_admin a where a.group_id = ag.group_id) user_count from fc_admin_group ag" + StringUtil.join(" and ", " where ", "", "", argEdit.getStringList());
return jdbcTemplate.limit(sql, page, argEdit.getObjectList()); return jdbcTemplate.limit(sql, page, argEdit.getObjectList());
} }
......
...@@ -45,8 +45,9 @@ public class AdminTokenServiceImpl implements AdminTokenService { ...@@ -45,8 +45,9 @@ public class AdminTokenServiceImpl implements AdminTokenService {
session.setAttribute(TOKEN_NAME, token); session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true); Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true);
if(cookie != null) { if(cookie != null) {
String sql = "update fc_admin set token = ? where adminid = ?"; String sql = "update fc_admin set token = ?, login_ip = ?, login_time = ? where adminid = ?";
jdbcTemplate.executeUpdate(sql, cookie.getValue(), adminid); String loginIp = ServletUtil.remoteIp(WebMvcConfig.getRequest());
jdbcTemplate.executeUpdate(sql, cookie.getValue(), loginIp, System.currentTimeMillis()/1000, adminid);
} }
return token; return token;
} else if(state == 2) { } else if(state == 2) {
......
...@@ -39,7 +39,7 @@ public class AdminUserServiceImpl implements AdminUserService { ...@@ -39,7 +39,7 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override @Override
public List<Map<String, Object>> queryUserList(String keyword, Integer group_id, Page page) { public List<Map<String, Object>> queryUserList(String keyword, Integer group_id, Page page) {
SqlWhere w = new SqlWhere().lk(new String[]{"u.uid", "u.username", "u.realname"}, keyword).eq("u.group_d", group_id); SqlWhere w = new SqlWhere().lk(new String[]{"u.uid", "u.username", "u.realname"}, keyword).eq("u.group_id", group_id);
String sql = "select u.*, ug.group_name from fc_user u left join fc_user_group ug on ug.group_id = u.group_id" + StringUtil.join(" and ", " where ", "", "", w.getStringList()); String sql = "select u.*, ug.group_name from fc_user u left join fc_user_group ug on ug.group_id = u.group_id" + StringUtil.join(" and ", " where ", "", "", w.getStringList());
return jdbcTemplate.limit(sql, page, w.getObjectList()); return jdbcTemplate.limit(sql, page, w.getObjectList());
} }
...@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService { ...@@ -83,4 +83,9 @@ public class AdminUserServiceImpl implements AdminUserService {
return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_fun.class, group_id); return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_fun.class, group_id);
} }
@Override
public void deleteUserById(Integer uid) {
jdbcTemplate.executeUpdate("delete from fc_user where uid = ?", uid);
}
} }
...@@ -367,9 +367,9 @@ public class FilmServiceImpl implements FilmService { ...@@ -367,9 +367,9 @@ public class FilmServiceImpl implements FilmService {
} }
@Override @Override
public List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, String film_type, String enroll_type, String film_country, Page page) { public List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, Integer film_type, Integer enroll_type, String film_country, Page page) {
SqlWhere where = new SqlWhere().lk(new String[]{"mf.en_name", "mf.cn_name"}, keyword).eq("mf.state", state).eq("mf.apply_state", apply_state).eq("mf.film_type_name", film_type).eq("mf.enroll_type_name", enroll_type).eq("mf.film_country", film_country); SqlWhere where = new SqlWhere().lk(new String[]{"mf.en_name", "mf.cn_name"}, keyword).eq("mf.state", state).eq("mf.apply_state", apply_state).lk("mf.enroll_type_name", enroll_type).eq("mf.film_type_name", film_type).eq("mf.film_country", film_country);
String sql = "select mf.*, ifnull(rv.review_state, 0) review_state, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf left join fc_review rv on rv.film_id = mf.id and rv.review_round = mf.review_round" + StringUtil.join(" and ", " where ", "", "", where.getStringList()); String sql = "select mf.*, ifnull(rv.review_state, 0) review_state, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf left join fc_review rv on rv.film_id = mf.id" + StringUtil.join(" and ", " where ", "", "", where.getStringList());
Object[] objs = where.getObjectList(); Object[] objs = where.getObjectList();
return jdbcTemplate.limit(sql, page, objs); return jdbcTemplate.limit(sql, page, objs);
} }
...@@ -456,44 +456,44 @@ public class FilmServiceImpl implements FilmService { ...@@ -456,44 +456,44 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void toNextRound(Long member_film_id) { public void toNextRound(Long member_film_id, Integer enroll_type_id) {
Fc_member_film film = this.jdbcTemplate.queryForBean("select * from fc_member_film where id = ?", Fc_member_film.class, member_film_id); Fc_member_film_enroll enroll = this.jdbcTemplate.queryForBean("select * from fc_member_film_enroll where film_id = ? and enroll_type_id = ?", Fc_member_film_enroll.class, member_film_id, enroll_type_id);
Integer round = film.getReview_round(); Integer round = enroll.getReview_round();
Integer nextRound = null; Integer nextRound = null;
if(round == null || round == 0) { if(round == null || round == 0) {
nextRound = 1; nextRound = 1;
} else { } else {
nextRound = round + 1; nextRound = round + 1;
} }
jdbcTemplate.executeUpdate("update fc_member_film set review_round = ? where id = ?", nextRound, member_film_id); jdbcTemplate.executeUpdate("update fc_member_film_enroll set review_round = ? where film_id = ? and enroll_type_id = ?", nextRound, member_film_id, enroll_type_id);
Integer count = jdbcTemplate.queryForInt("select count(id) from fc_review where film_id = ? and review_round = ?", member_film_id, nextRound); Integer count = jdbcTemplate.queryForInt("select count(id) from fc_review where film_id = ? and review_round = ? and enroll_type_id = ?", member_film_id, nextRound, enroll_type_id);
if(count == 0) { if(count == 0) {
Fc_review review = new Fc_review(); Fc_review review = new Fc_review();
review.setEnroll_type_id(enroll_type_id);
review.setFilm_id(member_film_id.intValue()); review.setFilm_id(member_film_id.intValue());
review.setReview_round(nextRound); review.setReview_round(nextRound);
review.setReview_state(0); review.setReview_state(0);
review.setCreate_time(new Date());
jdbcTemplate.save(review); jdbcTemplate.save(review);
} }
} }
/** /**
* 检索审片列表 * 检索审片列表
*/ */
@Override @Override
public List<Map<String, Object>> queryReviewList(String keyword, Integer group_id, Integer enroll_type_id, Integer film_type_name, public List<Map<String, Object>> queryReviewList(String keyword, Integer group_id, Integer enroll_type_id, Integer film_type_name,
Integer film_type_name_short, String film_country, Integer[] review_round, Integer[] review_state, Integer film_type_name_short, String film_country, Integer review_round, Integer[] review_state,
Page page) { Page page) {
SqlWhere w1 = new SqlWhere() SqlWhere w1 = new SqlWhere()
.where("mf.film_type_name in (select agft.film_type_id from fc_admin_group_filmtype agft where agft.group_id = ?)", new Object[]{group_id}) .where("mf.film_type_name in (select agft.film_type_id from fc_admin_group_filmtype agft where agft.group_id = ?)", new Object[]{group_id})
.gt("mf.review_round", 0) .gt("r.review_round", 0)
.lk(new String[]{"mf.en_name", "mf.cn_name"}, keyword) .lk(new String[]{"mf.en_name", "mf.cn_name"}, keyword)
.eq("mf.film_type_name", film_type_name) .eq("mf.film_type_name", film_type_name)
.eq("mf.film_type_name_short", film_type_name_short) .eq("mf.film_type_name_short", film_type_name_short)
.eq("mf.film_country", film_country) .eq("mf.film_country", film_country)
.in("mf.review_round", review_round) .eq("r.review_round", review_round);
; String sql = "select mf.id, r.review_round, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, r.review_state, r.result_text, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf, fc_review r where r.film_id = mf.id" + StringUtil.join(" and ", " and ", "", "", w1.getStringList());
String sql = "select mf.id, mf.review_round, mf.origion_name, mf.en_name, mf.cn_name, mf.film_type_name, mf.film_country, r.review_state, r.result_text, (select GROUP_CONCAT(mfd.playactor_name) from fc_member_film_playactor mfd where mfd.film_id = mf.id and mfd.playactor_type = 'director') director_name from fc_member_film mf left join fc_review r on r.film_id = mf.id and r.review_round = mf.review_round" + StringUtil.join(" and ", " where ", "", "", w1.getStringList());
if(enroll_type_id != null) { if(enroll_type_id != null) {
sql = "select t.* from (" + sql + ") t, fc_member_film_enroll mfe where t.id = mfe.film_id and mfe.enroll_type_id = " + enroll_type_id; sql = "select t.* from (" + sql + ") t, fc_member_film_enroll mfe where t.id = mfe.film_id and mfe.enroll_type_id = " + enroll_type_id;
} }
...@@ -502,16 +502,21 @@ public class FilmServiceImpl implements FilmService { ...@@ -502,16 +502,21 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
@Transactional @Transactional
public void allot(Long member_film_id, Integer review_round, Integer[] user_id) { public void allot(Long member_film_id, Integer enroll_type_id, Integer review_round, Integer[] user_id) {
jdbcTemplate.executeUpdate("delete from fc_review_user where film_id = ? and review_round = ?", member_film_id, review_round); Fc_review review = jdbcTemplate.queryForBean("select * from fc_review where film_id = ? and enroll_type_id = ? and review_round = ?", Fc_review.class, member_film_id, enroll_type_id, review_round);
jdbcTemplate.executeUpdate("delete from fc_review_user where review_id = ?", review.getId());
review.setReview_state(1);
jdbcTemplate.update(review);
if(user_id != null && user_id.length > 0) { if(user_id != null && user_id.length > 0) {
List<Fc_review_user> list = new ArrayList<Fc_review_user>(); List<Fc_review_user> list = new ArrayList<Fc_review_user>();
for(Integer i : user_id) { for(Integer i : user_id) {
list.add(new Fc_review_user(member_film_id.intValue(), review_round, i, 0)); Fc_review_user ru = new Fc_review_user();
ru.setReview_id(review.getId());
ru.setUser_id(i);
ru.setView_state(0);
} }
jdbcTemplate.batchSave(list); jdbcTemplate.batchSave(list);
} }
} }
@Override @Override
...@@ -524,4 +529,9 @@ public class FilmServiceImpl implements FilmService { ...@@ -524,4 +529,9 @@ public class FilmServiceImpl implements FilmService {
jdbcTemplate.executeUpdate("update fc_member_film set upload_state = ? where id = ?", upload_state, member_film_id); jdbcTemplate.executeUpdate("update fc_member_film set upload_state = ? where id = ?", upload_state, member_film_id);
} }
@Override
public List<Fc_member_film_enroll> queryFilmEnrollList(Long member_film_id) {
return jdbcTemplate.queryForBeans("select * from fc_member_film_enroll where film_id = ?", Fc_member_film_enroll.class, member_film_id.intValue());
}
} }
package com.egolm.film.api.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.LogService;
@Service
public class LogServiceImpl implements LogService {
@Autowired
JdbcTemplate jdbcTemplate;
@Override
public List<Map<String, Object>> queryLogList(String type, Page page) {
return jdbcTemplate.limit("select l.*, le.ext from fc_log l left join fc_log_ext le on le.path = l.path", page);
}
}
...@@ -104,9 +104,9 @@ public class MemberServiceImpl implements MemberService { ...@@ -104,9 +104,9 @@ public class MemberServiceImpl implements MemberService {
} }
@Override @Override
public void updateToken(Integer member_id, String token_string) { public void updateLoginInfo(Integer member_id, String login_ip, String token_string) {
String sql = "update fc_member set token = ? where id = ?"; String sql = "update fc_member set token = ?, login_time = ?, login_ip = ? where id = ?";
jdbcTemplate.executeUpdate(sql, token_string, member_id); jdbcTemplate.executeUpdate(sql, token_string, System.currentTimeMillis()/1000, login_ip, member_id);
} }
@Override @Override
......
...@@ -53,7 +53,8 @@ public class MemberTokenServiceImpl implements MemberTokenService { ...@@ -53,7 +53,8 @@ public class MemberTokenServiceImpl implements MemberTokenService {
session.setAttribute(TOKEN_NAME, token); session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60, true); Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60, true);
if(cookie != null) { if(cookie != null) {
memberService.updateToken(id, cookie.getValue()); String loginIp = ServletUtil.remoteIp(WebMvcConfig.getRequest());
memberService.updateLoginInfo(id, loginIp, cookie.getValue());
} }
return token; return token;
} else { } else {
......
...@@ -49,7 +49,9 @@ public class UserTokenServiceImpl implements UserTokenService { ...@@ -49,7 +49,9 @@ public class UserTokenServiceImpl implements UserTokenService {
session.setAttribute(TOKEN_NAME, token); session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true); Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true);
if(cookie != null) { if(cookie != null) {
jdbcTemplate.executeUpdate("update fc_user set token = ? where uid = ?", cookie.getValue(), uid); String sql = "update fc_user set token = ?, login_ip = ?, login_time = ? where uid = ?";
String loginIp = ServletUtil.remoteIp(WebMvcConfig.getRequest());
jdbcTemplate.executeUpdate(sql, cookie.getValue(), loginIp, System.currentTimeMillis()/1000, uid);
} }
return token; return token;
} else { } else {
......
...@@ -24,7 +24,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -24,7 +24,7 @@ import io.swagger.annotations.ApiOperation;
@Api @Api
@Controller @Controller
@RequestMapping({"member/apply", "admin/first"}) @RequestMapping({"member/apply", "admin/first", "user/base"})
public class FilmController { public class FilmController {
@Autowired @Autowired
......
...@@ -149,7 +149,7 @@ public class AdminAuthController { ...@@ -149,7 +149,7 @@ public class AdminAuthController {
@ResponseBody @ResponseBody
@PostMapping("adminEnabled") @PostMapping("adminEnabled")
@ApiOperation("用管理员") @ApiOperation("用管理员")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="adminid", value="管理员ID", allowMultiple=true), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="adminid", value="管理员ID", allowMultiple=true),
}) })
...@@ -222,7 +222,7 @@ public class AdminAuthController { ...@@ -222,7 +222,7 @@ public class AdminAuthController {
@ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, name="menu_id", value="菜单ID"), @ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, name="menu_id", value="菜单ID"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, name="film_type_id", value="影片类型ID"), @ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, name="film_type_id", value="影片类型ID"),
}) })
public Object groupAuthUpdate(Integer group_id, Integer[] menu_id, Integer[] film_type_id) { public Object groupAuthUpdate(Integer group_id, Integer state, Integer[] menu_id, Integer[] film_type_id) {
service.updateGroupAuth(group_id, menu_id, film_type_id); service.updateGroupAuth(group_id, menu_id, film_type_id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
......
...@@ -24,6 +24,7 @@ import com.egolm.film.api.service.MemberService; ...@@ -24,6 +24,7 @@ import com.egolm.film.api.service.MemberService;
import com.egolm.film.api.service.Messages; import com.egolm.film.api.service.Messages;
import com.egolm.film.bean.Fc_member; import com.egolm.film.bean.Fc_member;
import com.egolm.film.bean.Fc_member_film; import com.egolm.film.bean.Fc_member_film;
import com.egolm.film.bean.Fc_member_film_enroll;
import com.egolm.film.util.Common; import com.egolm.film.util.Common;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -69,7 +70,7 @@ public class AdminFirstController { ...@@ -69,7 +70,7 @@ public class AdminFirstController {
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
}) })
public Object list(String keyword, Integer state, Integer apply_state, String film_type, String enroll_type, String film_country, Long index, Long limit) { public Object list(String keyword, Integer state, Integer apply_state, Integer film_type, Integer enroll_type, String film_country, Long index, Long limit) {
index = index == null ? 1 : index; index = index == null ? 1 : index;
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
...@@ -88,7 +89,7 @@ public class AdminFirstController { ...@@ -88,7 +89,7 @@ public class AdminFirstController {
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", 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) { public Object pass_list(String keyword, Integer film_type, Integer enroll_type, String film_country, Long index, Long limit) {
index = index == null ? 1 : index; index = index == null ? 1 : index;
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
...@@ -111,7 +112,10 @@ public class AdminFirstController { ...@@ -111,7 +112,10 @@ public class AdminFirstController {
film.setFilm_type_name_short(film_type_name_short); film.setFilm_type_name_short(film_type_name_short);
memberFilmService.mergeMemberFilm(film); memberFilmService.mergeMemberFilm(film);
memberFilmService.pass(member_film_id); memberFilmService.pass(member_film_id);
memberFilmService.toNextRound(member_film_id); List<Fc_member_film_enroll> enrolls = memberFilmService.queryFilmEnrollList(member_film_id);
for(Fc_member_film_enroll enroll : enrolls) {
memberFilmService.toNextRound(member_film_id, enroll.getEnroll_type_id());
}
Fc_member_film memberFilm = memberFilmService.queryMemberFilmById(member_film_id); Fc_member_film memberFilm = memberFilmService.queryMemberFilmById(member_film_id);
Fc_member member = memberService.getMemberById(memberFilm.getMember_id()); Fc_member member = memberService.getMemberById(memberFilm.getMember_id());
Locale locale = new Locale("zh", "CN"); Locale locale = new Locale("zh", "CN");
......
package com.egolm.film.api.web.admin;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.LogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@Api
@Controller
@RequestMapping("admin/log")
public class AdminLogController {
@Autowired
LogService service;
@ResponseBody
@PostMapping("list")
@ApiOperation("查询日志")
public Object list(String type, 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 = service.queryLogList(type, page);
return Rjx.jsonOk().setData(list);
}
}
...@@ -45,7 +45,7 @@ public class AdminReviewController { ...@@ -45,7 +45,7 @@ public class AdminReviewController {
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
}) })
public Object list(String keyword, Integer enroll_type_id, Integer film_type_name, Integer film_type_name_short, String film_country, Integer[] review_round, Integer[] review_state, Long index, Long limit) { public Object list(String keyword, Integer enroll_type_id, Integer film_type_name, Integer film_type_name_short, String film_country, Integer review_round, Integer[] review_state, Long index, Long limit) {
index = index == null ? 1 : index; index = index == null ? 1 : index;
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
...@@ -58,12 +58,13 @@ public class AdminReviewController { ...@@ -58,12 +58,13 @@ public class AdminReviewController {
@PostMapping("allot") @PostMapping("allot")
@ApiOperation("分配审片评委") @ApiOperation("分配审片评委")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="影片ID"), @ApiImplicitParam(paramType="query", dataType="long", required=true, name="member_film_id", value="影片ID"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_round", value="审片环节"), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="enroll_type_id", value="影片性质[申报奖项]ID"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="user_id", value="审片评委ID"), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_round", value="审片环节"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="user_id", value="审片评委ID"),
}) })
public Object allot(Long member_film_id, Integer review_round, Integer[] user_id) { public Object allot(Long member_film_id, Integer enroll_type_id, Integer review_round, Integer[] user_id) {
filmService.allot(member_film_id, review_round, user_id); filmService.allot(member_film_id, enroll_type_id, review_round, user_id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
......
...@@ -51,7 +51,7 @@ public class AdminUserController { ...@@ -51,7 +51,7 @@ public class AdminUserController {
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
List<Map<String, Object>> list = service.queryGroupList(keyword, page); List<Map<String, Object>> list = service.queryGroupList(keyword, page);
return Rjx.jsonOk().setData(list); return Rjx.jsonOk().setData(list).setPage(page);
} }
@ResponseBody @ResponseBody
...@@ -76,19 +76,20 @@ public class AdminUserController { ...@@ -76,19 +76,20 @@ public class AdminUserController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="group_id", value="分组ID"), @ApiImplicitParam(paramType="query", dataType="int", required=false, name="group_id", value="分组ID"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="group_name", value="分组名称"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="group_name", value="分组名称"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="state", value="状态"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="job_desc", value="工作介绍"), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="job_desc", value="工作介绍"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="fun_id", value="权限[功能]ID [1-6]选权限,7快进后退权限"), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="fun_id", value="权限[功能]ID [1-6]选权限,7快进后退权限"),
}) })
public Rjx saveGroup(Integer group_id, String group_name, String job_desc, Integer[] fun_id) { public Rjx saveGroup(Integer group_id, String group_name, Integer state, String job_desc, Integer[] fun_id) {
Fc_user_group group = new Fc_user_group(); Fc_user_group group = new Fc_user_group();
group.setGroup_id(group_id); group.setGroup_id(group_id);
group.setGroup_name(group_name); group.setGroup_name(group_name);
group.setState(state);
group.setJob_desc(job_desc); group.setJob_desc(job_desc);
if(group_id == null) { if(group_id == null) {
group.setAdminid((Integer)tokenService.getToken().getId()); group.setAdminid((Integer)tokenService.getToken().getId());
group.setCreate_ip(WebMvcConfig.getRemoteIp()); group.setCreate_ip(WebMvcConfig.getRemoteIp());
group.setCreate_time(new Date()); group.setCreate_time(new Date());
group.setState(1);
} }
service.mergeGroup(group); service.mergeGroup(group);
service.saveGroupFun(group.getGroup_id(), fun_id); service.saveGroupFun(group.getGroup_id(), fun_id);
...@@ -109,7 +110,7 @@ public class AdminUserController { ...@@ -109,7 +110,7 @@ public class AdminUserController {
limit = limit == null ? 20 : limit; limit = limit == null ? 20 : limit;
Page page = new Page(index, limit); Page page = new Page(index, limit);
List<Map<String, Object>> list = service.queryUserList(keyword, group_id, page); List<Map<String, Object>> list = service.queryUserList(keyword, group_id, page);
return Rjx.jsonOk().setData(list); return Rjx.jsonOk().setData(list).setPage(page);
} }
@ResponseBody @ResponseBody
...@@ -153,4 +154,16 @@ public class AdminUserController { ...@@ -153,4 +154,16 @@ public class AdminUserController {
} }
return Rjx.jsonOk().setData(user); return Rjx.jsonOk().setData(user);
} }
@ResponseBody
@Transactional
@PostMapping("user_delete")
@ApiOperation("删除评委")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="uid", value="评委ID"),
})
public Rjx deleteUser(Integer uid) {
service.deleteUserById(uid);
return Rjx.jsonOk();
}
} }
...@@ -292,11 +292,6 @@ public class Fc_member_film implements java.io.Serializable { ...@@ -292,11 +292,6 @@ public class Fc_member_film implements java.io.Serializable {
*/ */
private Long pass_time; private Long pass_time;
/**
* 当前审片是第几轮
*/
private Integer review_round;
/** /**
* 上传影片标记 * 上传影片标记
*/ */
...@@ -378,12 +373,11 @@ public class Fc_member_film implements java.io.Serializable { ...@@ -378,12 +373,11 @@ public class Fc_member_film implements java.io.Serializable {
* @param film_district 区域 * @param film_district 区域
* @param is_check_director 状态 * @param is_check_director 状态
* @param pass_time 通过时间 * @param pass_time 通过时间
* @param review_round 当前审片是第几轮
* @param upload_id 上传影片标记 * @param upload_id 上传影片标记
* @param upload_state 上传影片状态(0上传中,1已完成) * @param upload_state 上传影片状态(0上传中,1已完成)
* @param upload_time 上传影片时间 * @param upload_time 上传影片时间
*/ */
public Fc_member_film(Long id, Integer film_no, String origion_name, String en_name, String cn_name, Integer type, Long film_group_id, Integer film_type, String film_type_name, String show_date, Long show_time, String first_show_date, String first_show_city, Integer is_apply_other_filmfest, String other_filmfest_name, String film_medium, String film_format, String completion_date, String film_country, String co_production_country, String film_producers, String production_company, String enroll_type_name, Integer enroll_type, Integer is_like_show, Long create_time, Integer member_id, String create_ip, Integer state, String prize, String dialogue_lang, String subtitle_lang, String play_shanghai, String has_joined_award, String intro, String en_intro, Long last_modify_time, String film_side_demand, String film_total_time, Integer is_show, String film_apply_company, String film_apply_realname, String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country, String enroll_type_name_other, String film_format_url, String film_format_passw, String film_format_other, String film_type_name_short, String lang, Integer apply_state, String film_district, Integer is_check_director, Long pass_time, Integer review_round, String upload_id, Integer upload_state, Date upload_time) { public Fc_member_film(Long id, Integer film_no, String origion_name, String en_name, String cn_name, Integer type, Long film_group_id, Integer film_type, String film_type_name, String show_date, Long show_time, String first_show_date, String first_show_city, Integer is_apply_other_filmfest, String other_filmfest_name, String film_medium, String film_format, String completion_date, String film_country, String co_production_country, String film_producers, String production_company, String enroll_type_name, Integer enroll_type, Integer is_like_show, Long create_time, Integer member_id, String create_ip, Integer state, String prize, String dialogue_lang, String subtitle_lang, String play_shanghai, String has_joined_award, String intro, String en_intro, Long last_modify_time, String film_side_demand, String film_total_time, Integer is_show, String film_apply_company, String film_apply_realname, String film_apply_email, String film_apply_tel, String film_apply_mobile, String film_apply_country, String enroll_type_name_other, String film_format_url, String film_format_passw, String film_format_other, String film_type_name_short, String lang, Integer apply_state, String film_district, Integer is_check_director, Long pass_time, String upload_id, Integer upload_state, Date upload_time) {
this.id = id; this.id = id;
this.film_no = film_no; this.film_no = film_no;
this.origion_name = origion_name; this.origion_name = origion_name;
...@@ -440,7 +434,6 @@ public class Fc_member_film implements java.io.Serializable { ...@@ -440,7 +434,6 @@ public class Fc_member_film implements java.io.Serializable {
this.film_district = film_district; this.film_district = film_district;
this.is_check_director = is_check_director; this.is_check_director = is_check_director;
this.pass_time = pass_time; this.pass_time = pass_time;
this.review_round = review_round;
this.upload_id = upload_id; this.upload_id = upload_id;
this.upload_state = upload_state; this.upload_state = upload_state;
this.upload_time = upload_time; this.upload_time = upload_time;
...@@ -894,14 +887,6 @@ public class Fc_member_film implements java.io.Serializable { ...@@ -894,14 +887,6 @@ public class Fc_member_film implements java.io.Serializable {
return pass_time; return pass_time;
} }
public void setReview_round(Integer review_round) {
this.review_round = review_round;
}
public Integer getReview_round() {
return review_round;
}
public void setUpload_id(String upload_id) { public void setUpload_id(String upload_id) {
this.upload_id = upload_id; this.upload_id = upload_id;
} }
......
...@@ -18,6 +18,8 @@ public class Fc_member_film_enroll implements java.io.Serializable { ...@@ -18,6 +18,8 @@ public class Fc_member_film_enroll implements java.io.Serializable {
@Id @Id
private Integer enroll_type_id; private Integer enroll_type_id;
private Integer review_round;
/** /**
* 无参数构造方法 * 无参数构造方法
...@@ -30,10 +32,12 @@ public class Fc_member_film_enroll implements java.io.Serializable { ...@@ -30,10 +32,12 @@ public class Fc_member_film_enroll implements java.io.Serializable {
* 全参数构造方法 * 全参数构造方法
* @param film_id * @param film_id
* @param enroll_type_id * @param enroll_type_id
* @param review_round
*/ */
public Fc_member_film_enroll(Integer film_id, Integer enroll_type_id) { public Fc_member_film_enroll(Integer film_id, Integer enroll_type_id, Integer review_round) {
this.film_id = film_id; this.film_id = film_id;
this.enroll_type_id = enroll_type_id; this.enroll_type_id = enroll_type_id;
this.review_round = review_round;
} }
public void setFilm_id(Integer film_id) { public void setFilm_id(Integer film_id) {
...@@ -52,5 +56,13 @@ public class Fc_member_film_enroll implements java.io.Serializable { ...@@ -52,5 +56,13 @@ public class Fc_member_film_enroll implements java.io.Serializable {
return enroll_type_id; return enroll_type_id;
} }
public void setReview_round(Integer review_round) {
this.review_round = review_round;
}
public Integer getReview_round() {
return review_round;
}
} }
...@@ -4,6 +4,8 @@ import javax.persistence.Entity; ...@@ -4,6 +4,8 @@ import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
/** /**
* @author 曲欣亮 * @author 曲欣亮
*/ */
...@@ -24,20 +26,27 @@ public class Fc_review implements java.io.Serializable { ...@@ -24,20 +26,27 @@ public class Fc_review implements java.io.Serializable {
private Integer film_id; private Integer film_id;
/** /**
* 审片状态 0未分配评委,1已分配评委评选中,2通过,3否决,4参赛,5参赛备选,6参展 * 影片性质(申报奖项)ID
*/ */
private Integer review_state; private Integer enroll_type_id;
/** /**
* 审片轮数,第几轮审片 * 审片轮数,第几轮审片
*/ */
private Integer review_round; private Integer review_round;
/**
* 审片状态 0未分配评委,1已分配评委评选中,2通过,3否决,4参赛,5参赛备选,6参展
*/
private Integer review_state;
/** /**
* 审片结论 * 审片结论
*/ */
private String result_text; private String result_text;
private Date create_time;
/** /**
* 无参数构造方法 * 无参数构造方法
...@@ -50,16 +59,20 @@ public class Fc_review implements java.io.Serializable { ...@@ -50,16 +59,20 @@ public class Fc_review implements java.io.Serializable {
* 全参数构造方法 * 全参数构造方法
* @param id 审片记录ID * @param id 审片记录ID
* @param film_id 参审影片ID * @param film_id 参审影片ID
* @param review_state 审片状态 0未分配评委,1已分配评委评选中,2通过,3否决,4参赛,5参赛备选,6参展 * @param enroll_type_id 影片性质(申报奖项)ID
* @param review_round 审片轮数,第几轮审片 * @param review_round 审片轮数,第几轮审片
* @param review_state 审片状态 0未分配评委,1已分配评委评选中,2通过,3否决,4参赛,5参赛备选,6参展
* @param result_text 审片结论 * @param result_text 审片结论
* @param create_time
*/ */
public Fc_review(Integer id, Integer film_id, Integer review_state, Integer review_round, String result_text) { public Fc_review(Integer id, Integer film_id, Integer enroll_type_id, Integer review_round, Integer review_state, String result_text, Date create_time) {
this.id = id; this.id = id;
this.film_id = film_id; this.film_id = film_id;
this.review_state = review_state; this.enroll_type_id = enroll_type_id;
this.review_round = review_round; this.review_round = review_round;
this.review_state = review_state;
this.result_text = result_text; this.result_text = result_text;
this.create_time = create_time;
} }
public void setId(Integer id) { public void setId(Integer id) {
...@@ -78,12 +91,12 @@ public class Fc_review implements java.io.Serializable { ...@@ -78,12 +91,12 @@ public class Fc_review implements java.io.Serializable {
return film_id; return film_id;
} }
public void setReview_state(Integer review_state) { public void setEnroll_type_id(Integer enroll_type_id) {
this.review_state = review_state; this.enroll_type_id = enroll_type_id;
} }
public Integer getReview_state() { public Integer getEnroll_type_id() {
return review_state; return enroll_type_id;
} }
public void setReview_round(Integer review_round) { public void setReview_round(Integer review_round) {
...@@ -94,6 +107,14 @@ public class Fc_review implements java.io.Serializable { ...@@ -94,6 +107,14 @@ public class Fc_review implements java.io.Serializable {
return review_round; return review_round;
} }
public void setReview_state(Integer review_state) {
this.review_state = review_state;
}
public Integer getReview_state() {
return review_state;
}
public void setResult_text(String result_text) { public void setResult_text(String result_text) {
this.result_text = result_text; this.result_text = result_text;
} }
...@@ -102,5 +123,13 @@ public class Fc_review implements java.io.Serializable { ...@@ -102,5 +123,13 @@ public class Fc_review implements java.io.Serializable {
return result_text; return result_text;
} }
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public Date getCreate_time() {
return create_time;
}
} }
...@@ -4,59 +4,82 @@ import javax.persistence.Entity; ...@@ -4,59 +4,82 @@ import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
/** /**
* @author 曲欣亮 * @author 曲欣亮
*/ */
@Entity(name="fc_review_user_result_ext") @Entity(name="fc_review_doubtful")
public class Fc_review_user_result_ext implements java.io.Serializable { public class Fc_review_doubtful implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
private Integer id; private Integer id;
/**
* 影片ID
*/
private Integer film_id; private Integer film_id;
/**
* 影片性质
*/
private Integer enroll_type_id;
/**
* 第几轮审核
*/
private Integer review_round; private Integer review_round;
/**
* 评委ID
*/
private Integer user_id; private Integer user_id;
private Integer result_id; /**
* 疑点类型
private Integer enroll_type_id; */
private Integer doubtful_type_id;
private Double enroll_score;
/**
* 疑点介绍
*/
private String review_text; private String review_text;
/**
* 疑点时间
*/
private Date play_time;
/** /**
* 无参数构造方法 * 无参数构造方法
*/ */
public Fc_review_user_result_ext () { public Fc_review_doubtful () {
super(); super();
} }
/** /**
* 全参数构造方法 * 全参数构造方法
* @param id * @param id
* @param film_id * @param film_id 影片ID
* @param review_round * @param enroll_type_id 影片性质
* @param user_id * @param review_round 第几轮审核
* @param result_id * @param user_id 评委ID
* @param enroll_type_id * @param doubtful_type_id 疑点类型
* @param enroll_score * @param review_text 疑点介绍
* @param review_text * @param play_time 疑点时间
*/ */
public Fc_review_user_result_ext(Integer id, Integer film_id, Integer review_round, Integer user_id, Integer result_id, Integer enroll_type_id, Double enroll_score, String review_text) { public Fc_review_doubtful(Integer id, Integer film_id, Integer enroll_type_id, Integer review_round, Integer user_id, Integer doubtful_type_id, String review_text, Date play_time) {
this.id = id; this.id = id;
this.film_id = film_id; this.film_id = film_id;
this.enroll_type_id = enroll_type_id;
this.review_round = review_round; this.review_round = review_round;
this.user_id = user_id; this.user_id = user_id;
this.result_id = result_id; this.doubtful_type_id = doubtful_type_id;
this.enroll_type_id = enroll_type_id;
this.enroll_score = enroll_score;
this.review_text = review_text; this.review_text = review_text;
this.play_time = play_time;
} }
public void setId(Integer id) { public void setId(Integer id) {
...@@ -75,6 +98,14 @@ public class Fc_review_user_result_ext implements java.io.Serializable { ...@@ -75,6 +98,14 @@ public class Fc_review_user_result_ext implements java.io.Serializable {
return film_id; return film_id;
} }
public void setEnroll_type_id(Integer enroll_type_id) {
this.enroll_type_id = enroll_type_id;
}
public Integer getEnroll_type_id() {
return enroll_type_id;
}
public void setReview_round(Integer review_round) { public void setReview_round(Integer review_round) {
this.review_round = review_round; this.review_round = review_round;
} }
...@@ -91,28 +122,12 @@ public class Fc_review_user_result_ext implements java.io.Serializable { ...@@ -91,28 +122,12 @@ public class Fc_review_user_result_ext implements java.io.Serializable {
return user_id; return user_id;
} }
public void setResult_id(Integer result_id) { public void setDoubtful_type_id(Integer doubtful_type_id) {
this.result_id = result_id; this.doubtful_type_id = doubtful_type_id;
}
public Integer getResult_id() {
return result_id;
} }
public void setEnroll_type_id(Integer enroll_type_id) { public Integer getDoubtful_type_id() {
this.enroll_type_id = enroll_type_id; return doubtful_type_id;
}
public Integer getEnroll_type_id() {
return enroll_type_id;
}
public void setEnroll_score(Double enroll_score) {
this.enroll_score = enroll_score;
}
public Double getEnroll_score() {
return enroll_score;
} }
public void setReview_text(String review_text) { public void setReview_text(String review_text) {
...@@ -123,5 +138,13 @@ public class Fc_review_user_result_ext implements java.io.Serializable { ...@@ -123,5 +138,13 @@ public class Fc_review_user_result_ext implements java.io.Serializable {
return review_text; return review_text;
} }
public void setPlay_time(Date play_time) {
this.play_time = play_time;
}
public Date getPlay_time() {
return play_time;
}
} }
...@@ -12,17 +12,13 @@ public class Fc_review_user implements java.io.Serializable { ...@@ -12,17 +12,13 @@ public class Fc_review_user implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 影片ID
*/
@Id @Id
private Integer film_id; private Integer id;
/** /**
* 审片环节 * 审片记录ID
*/ */
@Id private Integer review_id;
private Integer review_round;
/** /**
* 评委ID * 评委ID
...@@ -30,10 +26,45 @@ public class Fc_review_user implements java.io.Serializable { ...@@ -30,10 +26,45 @@ public class Fc_review_user implements java.io.Serializable {
private Integer user_id; private Integer user_id;
/** /**
* 是否观看 0否,1是 * 0未观看,1已观看
*/ */
private Integer view_state; private Integer view_state;
/**
* 2通过,3否决,4参赛,5参赛备选,6参展
*/
private Integer review_state;
/**
* 得分分数
*/
private Double review_score;
/**
* 影片评论
*/
private String review_text;
/**
* 影片概述
*/
private String review_text_summary;
/**
* 叙事/题材
*/
private String review_text_theme;
/**
* 风格/美学
*/
private String review_text_style;
/**
* 突出/优缺点
*/
private String review_text_keynote;
/** /**
* 无参数构造方法 * 无参数构造方法
...@@ -44,32 +75,46 @@ public class Fc_review_user implements java.io.Serializable { ...@@ -44,32 +75,46 @@ public class Fc_review_user implements java.io.Serializable {
/** /**
* 全参数构造方法 * 全参数构造方法
* @param film_id 影片ID * @param id
* @param review_round 审片环节 * @param review_id 审片记录ID
* @param user_id 评委ID * @param user_id 评委ID
* @param view_state 是否观看 0否,1是 * @param view_state 0未观看,1已观看
* @param review_state 2通过,3否决,4参赛,5参赛备选,6参展
* @param review_score 得分分数
* @param review_text 影片评论
* @param review_text_summary 影片概述
* @param review_text_theme 叙事/题材
* @param review_text_style 风格/美学
* @param review_text_keynote 突出/优缺点
*/ */
public Fc_review_user(Integer film_id, Integer review_round, Integer user_id, Integer view_state) { public Fc_review_user(Integer id, Integer review_id, Integer user_id, Integer view_state, Integer review_state, Double review_score, String review_text, String review_text_summary, String review_text_theme, String review_text_style, String review_text_keynote) {
this.film_id = film_id; this.id = id;
this.review_round = review_round; this.review_id = review_id;
this.user_id = user_id; this.user_id = user_id;
this.view_state = view_state; this.view_state = view_state;
this.review_state = review_state;
this.review_score = review_score;
this.review_text = review_text;
this.review_text_summary = review_text_summary;
this.review_text_theme = review_text_theme;
this.review_text_style = review_text_style;
this.review_text_keynote = review_text_keynote;
} }
public void setFilm_id(Integer film_id) { public void setId(Integer id) {
this.film_id = film_id; this.id = id;
} }
public Integer getFilm_id() { public Integer getId() {
return film_id; return id;
} }
public void setReview_round(Integer review_round) { public void setReview_id(Integer review_id) {
this.review_round = review_round; this.review_id = review_id;
} }
public Integer getReview_round() { public Integer getReview_id() {
return review_round; return review_id;
} }
public void setUser_id(Integer user_id) { public void setUser_id(Integer user_id) {
...@@ -88,5 +133,61 @@ public class Fc_review_user implements java.io.Serializable { ...@@ -88,5 +133,61 @@ public class Fc_review_user implements java.io.Serializable {
return view_state; return view_state;
} }
public void setReview_state(Integer review_state) {
this.review_state = review_state;
}
public Integer getReview_state() {
return review_state;
}
public void setReview_score(Double review_score) {
this.review_score = review_score;
}
public Double getReview_score() {
return review_score;
}
public void setReview_text(String review_text) {
this.review_text = review_text;
}
public String getReview_text() {
return review_text;
}
public void setReview_text_summary(String review_text_summary) {
this.review_text_summary = review_text_summary;
}
public String getReview_text_summary() {
return review_text_summary;
}
public void setReview_text_theme(String review_text_theme) {
this.review_text_theme = review_text_theme;
}
public String getReview_text_theme() {
return review_text_theme;
}
public void setReview_text_style(String review_text_style) {
this.review_text_style = review_text_style;
}
public String getReview_text_style() {
return review_text_style;
}
public void setReview_text_keynote(String review_text_keynote) {
this.review_text_keynote = review_text_keynote;
}
public String getReview_text_keynote() {
return review_text_keynote;
}
} }
...@@ -7,47 +7,62 @@ import javax.persistence.Id; ...@@ -7,47 +7,62 @@ import javax.persistence.Id;
/** /**
* @author 曲欣亮 * @author 曲欣亮
*/ */
@Entity(name="fc_review_user_result_doubtful") @Entity(name="fc_review_user_ext")
public class Fc_review_user_result_doubtful implements java.io.Serializable { public class Fc_review_user_ext implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
private Integer id; private Integer id;
private Integer film_id; /**
* 总审片记录ID
private Integer review_round; */
private Integer review_id;
/**
* 评委ID
*/
private Integer user_id; private Integer user_id;
private Integer result_id; /**
* 影片申报奖项ID
*/
private Integer enroll_ext_id;
/**
* 影片申报奖项评分
*/
private Double enroll_ext_score;
/**
* 评委审片结论
*/
private String review_text; private String review_text;
/** /**
* 无参数构造方法 * 无参数构造方法
*/ */
public Fc_review_user_result_doubtful () { public Fc_review_user_ext () {
super(); super();
} }
/** /**
* 全参数构造方法 * 全参数构造方法
* @param id * @param id
* @param film_id * @param review_id 总审片记录ID
* @param review_round * @param user_id 评委ID
* @param user_id * @param enroll_ext_id 影片申报奖项ID
* @param result_id * @param enroll_ext_score 影片申报奖项评分
* @param review_text * @param review_text 评委审片结论
*/ */
public Fc_review_user_result_doubtful(Integer id, Integer film_id, Integer review_round, Integer user_id, Integer result_id, String review_text) { public Fc_review_user_ext(Integer id, Integer review_id, Integer user_id, Integer enroll_ext_id, Double enroll_ext_score, String review_text) {
this.id = id; this.id = id;
this.film_id = film_id; this.review_id = review_id;
this.review_round = review_round;
this.user_id = user_id; this.user_id = user_id;
this.result_id = result_id; this.enroll_ext_id = enroll_ext_id;
this.enroll_ext_score = enroll_ext_score;
this.review_text = review_text; this.review_text = review_text;
} }
...@@ -59,20 +74,12 @@ public class Fc_review_user_result_doubtful implements java.io.Serializable { ...@@ -59,20 +74,12 @@ public class Fc_review_user_result_doubtful implements java.io.Serializable {
return id; return id;
} }
public void setFilm_id(Integer film_id) { public void setReview_id(Integer review_id) {
this.film_id = film_id; this.review_id = review_id;
}
public Integer getFilm_id() {
return film_id;
}
public void setReview_round(Integer review_round) {
this.review_round = review_round;
} }
public Integer getReview_round() { public Integer getReview_id() {
return review_round; return review_id;
} }
public void setUser_id(Integer user_id) { public void setUser_id(Integer user_id) {
...@@ -83,12 +90,20 @@ public class Fc_review_user_result_doubtful implements java.io.Serializable { ...@@ -83,12 +90,20 @@ public class Fc_review_user_result_doubtful implements java.io.Serializable {
return user_id; return user_id;
} }
public void setResult_id(Integer result_id) { public void setEnroll_ext_id(Integer enroll_ext_id) {
this.result_id = result_id; this.enroll_ext_id = enroll_ext_id;
}
public Integer getEnroll_ext_id() {
return enroll_ext_id;
}
public void setEnroll_ext_score(Double enroll_ext_score) {
this.enroll_ext_score = enroll_ext_score;
} }
public Integer getResult_id() { public Double getEnroll_ext_score() {
return result_id; return enroll_ext_score;
} }
public void setReview_text(String review_text) { public void setReview_text(String review_text) {
......
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author 曲欣亮
*/
@Entity(name="fc_review_user_result")
public class Fc_review_user_result implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Integer id;
private Integer film_id;
private Integer user_id;
private Integer review_id;
private Integer review_round;
/**
* 2通过,3否决,4参赛,5参赛备选,6参展
*/
private Integer review_state;
/**
* 得分分数
*/
private Double review_score;
/**
* 影片评论
*/
private String review_text;
/**
* 影片概述
*/
private String review_text_summary;
/**
* 叙事/题材
*/
private String review_text_theme;
/**
* 风格/美学
*/
private String review_text_style;
/**
* 突出/优缺点
*/
private String review_text_keynote;
/**
* 无参数构造方法
*/
public Fc_review_user_result () {
super();
}
/**
* 全参数构造方法
* @param id
* @param film_id
* @param user_id
* @param review_id
* @param review_round
* @param review_state 2通过,3否决,4参赛,5参赛备选,6参展
* @param review_score 得分分数
* @param review_text 影片评论
* @param review_text_summary 影片概述
* @param review_text_theme 叙事/题材
* @param review_text_style 风格/美学
* @param review_text_keynote 突出/优缺点
*/
public Fc_review_user_result(Integer id, Integer film_id, Integer user_id, Integer review_id, Integer review_round, Integer review_state, Double review_score, String review_text, String review_text_summary, String review_text_theme, String review_text_style, String review_text_keynote) {
this.id = id;
this.film_id = film_id;
this.user_id = user_id;
this.review_id = review_id;
this.review_round = review_round;
this.review_state = review_state;
this.review_score = review_score;
this.review_text = review_text;
this.review_text_summary = review_text_summary;
this.review_text_theme = review_text_theme;
this.review_text_style = review_text_style;
this.review_text_keynote = review_text_keynote;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setFilm_id(Integer film_id) {
this.film_id = film_id;
}
public Integer getFilm_id() {
return film_id;
}
public void setUser_id(Integer user_id) {
this.user_id = user_id;
}
public Integer getUser_id() {
return user_id;
}
public void setReview_id(Integer review_id) {
this.review_id = review_id;
}
public Integer getReview_id() {
return review_id;
}
public void setReview_round(Integer review_round) {
this.review_round = review_round;
}
public Integer getReview_round() {
return review_round;
}
public void setReview_state(Integer review_state) {
this.review_state = review_state;
}
public Integer getReview_state() {
return review_state;
}
public void setReview_score(Double review_score) {
this.review_score = review_score;
}
public Double getReview_score() {
return review_score;
}
public void setReview_text(String review_text) {
this.review_text = review_text;
}
public String getReview_text() {
return review_text;
}
public void setReview_text_summary(String review_text_summary) {
this.review_text_summary = review_text_summary;
}
public String getReview_text_summary() {
return review_text_summary;
}
public void setReview_text_theme(String review_text_theme) {
this.review_text_theme = review_text_theme;
}
public String getReview_text_theme() {
return review_text_theme;
}
public void setReview_text_style(String review_text_style) {
this.review_text_style = review_text_style;
}
public String getReview_text_style() {
return review_text_style;
}
public void setReview_text_keynote(String review_text_keynote) {
this.review_text_keynote = review_text_keynote;
}
public String getReview_text_keynote() {
return review_text_keynote;
}
}
...@@ -18,8 +18,10 @@ public class SqlWhere { ...@@ -18,8 +18,10 @@ public class SqlWhere {
public SqlWhere where(String where, Object[] obj) { public SqlWhere where(String where, Object[] obj) {
if(StringUtil.isNotBlank(where)) { if(StringUtil.isNotBlank(where)) {
this.strList.add(where); this.strList.add(where);
for(Object o : obj) { if(obj != null){
this.objList.add(o); for(Object o : obj) {
this.objList.add(o);
}
} }
} }
return this; return this;
......
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