Commit 908ef506 authored by Quxl's avatar Quxl

x

parent 8d8e454b
......@@ -26,6 +26,8 @@ public interface AdminAuthService {
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 saveOrUpdateMenu(Fc_admin_menu menu);
......
......@@ -105,6 +105,13 @@ public class AdminAuthServiceImpl implements AdminAuthService {
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
@Transactional
public void updateGroupAuth(Integer group_id, Integer[] menu_ids, Integer[] film_types, Integer[] enroll_types) {
......
......@@ -184,7 +184,8 @@ public class AdminAuthController {
public Object groupAuthQuery(Integer group_id) throws FileNotFoundException {
List<Map<String, Object>> groupMenuList = service.queryGroupMenuList(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
......
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