Commit 88c04861 authored by Quxl's avatar Quxl

x

parent 8d25c378
...@@ -28,7 +28,7 @@ public interface AdminAuthService { ...@@ -28,7 +28,7 @@ public interface AdminAuthService {
List<Integer> queryGroupEnrolltypeList(Integer group_id); List<Integer> queryGroupEnrolltypeList(Integer group_id);
void updateGroupAuth(Integer group_id, Integer[] menu_ids, Integer[] film_types, Integer[] enroll_types); void updateGroupAuth(Integer group_id, Integer[] menu_ids, Integer[] film_types);
void saveOrUpdateMenu(Fc_admin_menu menu); void saveOrUpdateMenu(Fc_admin_menu menu);
......
...@@ -14,7 +14,6 @@ import com.egolm.common.jdbc.Page; ...@@ -14,7 +14,6 @@ import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminAuthService; import com.egolm.film.api.service.AdminAuthService;
import com.egolm.film.bean.Fc_admin; import com.egolm.film.bean.Fc_admin;
import com.egolm.film.bean.Fc_admin_group; import com.egolm.film.bean.Fc_admin_group;
import com.egolm.film.bean.Fc_admin_group_enrolltype;
import com.egolm.film.bean.Fc_admin_group_filmtype; import com.egolm.film.bean.Fc_admin_group_filmtype;
import com.egolm.film.bean.Fc_admin_group_menu; import com.egolm.film.bean.Fc_admin_group_menu;
import com.egolm.film.bean.Fc_admin_menu; import com.egolm.film.bean.Fc_admin_menu;
...@@ -114,7 +113,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -114,7 +113,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override @Override
@Transactional @Transactional
public void updateGroupAuth(Integer group_id, Integer[] menu_ids, Integer[] film_types, Integer[] enroll_types) { public void updateGroupAuth(Integer group_id, Integer[] menu_ids, Integer[] film_types) {
jdbcTemplate.executeUpdate("delete from fc_admin_group_menu where group_id = ?", group_id); jdbcTemplate.executeUpdate("delete from fc_admin_group_menu where group_id = ?", group_id);
jdbcTemplate.executeUpdate("delete from fc_admin_group_filmtype where group_id = ?", group_id); jdbcTemplate.executeUpdate("delete from fc_admin_group_filmtype where group_id = ?", group_id);
jdbcTemplate.executeUpdate("delete from fc_admin_group_enrolltype where group_id = ?", group_id); jdbcTemplate.executeUpdate("delete from fc_admin_group_enrolltype where group_id = ?", group_id);
...@@ -138,17 +137,6 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -138,17 +137,6 @@ public class AdminAuthServiceImpl implements AdminAuthService {
} }
jdbcTemplate.batchSave(gtypeList); jdbcTemplate.batchSave(gtypeList);
} }
if(enroll_types != null && enroll_types.length > 0) {
List<Fc_admin_group_enrolltype> typeList = new ArrayList<Fc_admin_group_enrolltype>();
for(Integer enrollType : enroll_types) {
Fc_admin_group_enrolltype type = new Fc_admin_group_enrolltype();
type.setGroup_id(group_id);
type.setEnroll_type_id(enrollType);
typeList.add(type);
}
jdbcTemplate.batchSave(typeList);
}
} }
@Override @Override
......
...@@ -222,10 +222,9 @@ public class AdminAuthController { ...@@ -222,10 +222,9 @@ public class AdminAuthController {
@ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=false,name="group_id", value="组ID"), @ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=false,name="group_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="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"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, name="enroll_type_id", value="影片性质ID"),
}) })
public Object groupAuthUpdate(Integer group_id, Integer state, Integer[] menu_id, Integer[] film_type_id, Integer[] enroll_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, enroll_type_id); service.updateGroupAuth(group_id, menu_id, film_type_id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="enum_doubtful") @Entity(name="enum_doubtful")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="enum_enroll") @Entity(name="enum_enroll")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="enum_filmtype") @Entity(name="enum_filmtype")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin") @Entity(name="fc_admin")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin_group") @Entity(name="fc_admin_group")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin_group_filmtype") @Entity(name="fc_admin_group_filmtype")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin_group_menu") @Entity(name="fc_admin_group_menu")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin_menu") @Entity(name="fc_admin_menu")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_email_record") @Entity(name="fc_email_record")
public class Fc_email_record implements java.io.Serializable { public class Fc_email_record implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_film_group") @Entity(name="fc_film_group")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_logs") @Entity(name="fc_logs")
public class Fc_logs implements java.io.Serializable { public class Fc_logs implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_logs_ext") @Entity(name="fc_logs_ext")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_member") @Entity(name="fc_member")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_member_film") @Entity(name="fc_member_film")
public class Fc_member_film implements java.io.Serializable { public class Fc_member_film implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_member_film_enroll") @Entity(name="fc_member_film_enroll")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_member_film_issuer") @Entity(name="fc_member_film_issuer")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_member_film_playactor") @Entity(name="fc_member_film_playactor")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_member_film_show") @Entity(name="fc_member_film_show")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_review") @Entity(name="fc_review")
public class Fc_review implements java.io.Serializable { public class Fc_review implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_review_doubtful") @Entity(name="fc_review_doubtful")
public class Fc_review_doubtful implements java.io.Serializable { public class Fc_review_doubtful implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_review_history") @Entity(name="fc_review_history")
public class Fc_review_history implements java.io.Serializable { public class Fc_review_history implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_review_record") @Entity(name="fc_review_record")
public class Fc_review_record implements java.io.Serializable { public class Fc_review_record implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_review_record_ext") @Entity(name="fc_review_record_ext")
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_user") @Entity(name="fc_user")
public class Fc_user implements java.io.Serializable { public class Fc_user implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import java.util.Date; import javax.persistence.Entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import java.util.Date;
@Entity(name="fc_user_group") @Entity(name="fc_user_group")
public class Fc_user_group implements java.io.Serializable { public class Fc_user_group implements java.io.Serializable {
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_admin_group_enrolltype") @Entity(name="fc_user_group_enroll")
public class Fc_admin_group_enrolltype implements java.io.Serializable { public class Fc_user_group_enroll implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package com.egolm.film.bean; package com.egolm.film.bean;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
@Entity(name="fc_user_group_fun") @Entity(name="fc_user_group_fun")
......
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