Commit 136757b2 authored by Quxl's avatar Quxl

xxx

parent 824426f7
......@@ -6,6 +6,7 @@ import java.util.Map;
import com.egolm.common.jdbc.Page;
import com.egolm.film.bean.Fc_user;
import com.egolm.film.bean.Fc_user_group;
import com.egolm.film.bean.Fc_user_group_fun;
public interface AdminUserService {
......@@ -23,4 +24,8 @@ public interface AdminUserService {
void saveGroupFun(Integer group_id, Integer[] fun_id);
Fc_user_group queryGroupById(Integer group_id);
List<Fc_user_group_fun> queryGroupFunList(Integer group_id);
}
......@@ -73,4 +73,14 @@ public class AdminUserServiceImpl implements AdminUserService {
jdbcTemplate.batchSave(list);
}
@Override
public Fc_user_group queryGroupById(Integer group_id) {
return jdbcTemplate.queryForBean("select * from fc_user_group where group_id = ?", Fc_user_group.class, group_id);
}
@Override
public List<Fc_user_group_fun> queryGroupFunList(Integer group_id) {
return jdbcTemplate.queryForBeans("select * from fc_user_group_fun where group_id = ?", Fc_user_group_fun.class, group_id);
}
}
......@@ -17,6 +17,7 @@ import com.egolm.film.api.service.AdminTokenService;
import com.egolm.film.api.service.AdminUserService;
import com.egolm.film.bean.Fc_user;
import com.egolm.film.bean.Fc_user_group;
import com.egolm.film.bean.Fc_user_group_fun;
import com.egolm.film.config.WebMvcConfig;
import com.egolm.film.util.Common;
......@@ -52,6 +53,22 @@ public class AdminUserController {
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@Transactional
@PostMapping("group_detail")
@ApiOperation("查询分组及分组权限")
@ApiImplicitParams({
@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="job_desc", value="工作介绍"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="fun_id", value="权限[功能]ID [1-6]选权限,7快进后退权限"),
})
public Rjx groupDetail(Integer group_id) {
Fc_user_group group = service.queryGroupById(group_id);
List<Fc_user_group_fun> funList = service.queryGroupFunList(group_id);
return Rjx.jsonOk().setData(group).set("funList", funList);
}
@ResponseBody
@Transactional
@PostMapping("group_save")
......
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