Commit 908ef506 authored by Quxl's avatar Quxl

x

parent 8d8e454b
...@@ -25,6 +25,8 @@ public interface AdminAuthService { ...@@ -25,6 +25,8 @@ public interface AdminAuthService {
List<Map<String, Object>> queryGroupMenuList(Integer group_id); List<Map<String, Object>> queryGroupMenuList(Integer group_id);
List<Integer> queryGroupFilmtypeList(Integer group_id); List<Integer> queryGroupFilmtypeList(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, Integer[] enroll_types);
......
...@@ -105,6 +105,13 @@ public class AdminAuthServiceImpl implements AdminAuthService { ...@@ -105,6 +105,13 @@ public class AdminAuthServiceImpl implements AdminAuthService {
return list; return list;
} }
@Override
public List<Integer> queryGroupEnrolltypeList(Integer group_id) {
String s = "select film_type_id from fc_admin_group_enrolltype where group_id = ?";
List<Integer> list = jdbcTemplate.queryForObjects(s, Integer.class, group_id);
return list;
}
@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, Integer[] enroll_types) {
......
...@@ -184,7 +184,8 @@ public class AdminAuthController { ...@@ -184,7 +184,8 @@ public class AdminAuthController {
public Object groupAuthQuery(Integer group_id) throws FileNotFoundException { public Object groupAuthQuery(Integer group_id) throws FileNotFoundException {
List<Map<String, Object>> groupMenuList = service.queryGroupMenuList(group_id); List<Map<String, Object>> groupMenuList = service.queryGroupMenuList(group_id);
List<Integer> groupFilmtypeList = service.queryGroupFilmtypeList(group_id); List<Integer> groupFilmtypeList = service.queryGroupFilmtypeList(group_id);
return Rjx.jsonOk().set("groupMenuList", groupMenuList).set("groupFilmtypeList", groupFilmtypeList); List<Integer> groupEnrolltypeList = service.queryGroupEnrolltypeList(group_id);
return Rjx.jsonOk().set("groupMenuList", groupMenuList).set("groupFilmtypeList", groupFilmtypeList).set("groupEnrolltypeList", groupEnrolltypeList);
} }
@ResponseBody @ResponseBody
......
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