Commit 8beedc76 authored by Quxl's avatar Quxl

xxx

parent c2689e40
......@@ -156,14 +156,24 @@ public class AdminAuthController {
@ResponseBody
@PostMapping("groupAuthUpdate")
@ApiOperation("保存或更新管理组权限")
public Object groupAuthUpdate(Integer group_id, Integer[] menu_id, Integer[] film_type) {
service.updateGroupAuth(group_id, menu_id, film_type);
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, allowMultiple=true, 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="film_type_id", value="影片类型ID"),
})
public Object groupAuthUpdate(Integer group_id, Integer[] menu_id, Integer[] film_type_id) {
service.updateGroupAuth(group_id, menu_id, film_type_id);
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("groupSaveOrUpdate")
@ApiOperation("保存或更新管理组")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="group_id", value="组ID"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="group_name", value="组名"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="state", value="状态"),
})
public Object groupSaveOrUpdate(Integer group_id, String group_name, Integer state) {
Fc_admin_group group = new Fc_admin_group();
group.setGroup_id(group_id);
......
......@@ -111,7 +111,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
for(Integer film_type : film_types) {
Fc_admin_group_filmtype gtype = new Fc_admin_group_filmtype();
gtype.setGroup_id(group_id);
gtype.setFilm_type(film_type);
gtype.setFilm_type_id(film_type);
gtypeList.add(gtype);
}
jdbcTemplate.executeUpdate("delete from fc_admin_group_menu where group_id = ?", group_id);
......
......@@ -18,7 +18,7 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
private Integer group_id;
@Id
private Integer film_type;
private Integer film_type_id;
/**
......@@ -31,11 +31,11 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
/**
* 全参数构造方法
* @param group_id
* @param film_type
* @param film_type_id
*/
public Fc_admin_group_filmtype(Integer group_id, Integer film_type) {
public Fc_admin_group_filmtype(Integer group_id, Integer film_type_id) {
this.group_id = group_id;
this.film_type = film_type;
this.film_type_id = film_type_id;
}
public void setGroup_id(Integer group_id) {
......@@ -46,12 +46,12 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
return group_id;
}
public void setFilm_type(Integer film_type) {
this.film_type = film_type;
public void setFilm_type_id(Integer film_type_id) {
this.film_type_id = film_type_id;
}
public Integer getFilm_type() {
return film_type;
public Integer getFilm_type_id() {
return film_type_id;
}
}
......
......@@ -18,7 +18,7 @@ public class Fc_admin_menu implements java.io.Serializable {
private Integer menu_id;
/**
* 0 目录, 1 菜单, 2 按钮,其他
* 0 目录, 1 菜单, 2 按钮,其他功能
*/
private Integer menu_type;
......@@ -45,7 +45,7 @@ public class Fc_admin_menu implements java.io.Serializable {
/**
* 全参数构造方法
* @param menu_id
* @param menu_type 0 目录, 1 菜单, 2 按钮,其他
* @param menu_type 0 目录, 1 菜单, 2 按钮,其他功能
* @param parent_id
* @param order_num
* @param menu_name
......
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