fetch:人员添加字段
This commit is contained in:
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "|角色管理|")
|
||||
@RequestMapping("/sarRole/role")
|
||||
@RequestMapping("/api/sarRole/role")
|
||||
public class TsRoleController extends BaseController<TsRole> {
|
||||
@Autowired
|
||||
private ITsRoleService tsRoleService;
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.adc.da.slrs.sarRole.service.impl;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarMenu.entity.SarMenu;
|
||||
import com.adc.da.slrs.sarMenu.service.ISarMenuService;
|
||||
import com.adc.da.slrs.sarRole.entity.TsRole;
|
||||
import com.adc.da.slrs.sarRole.dao.TsRoleDao;
|
||||
import com.adc.da.slrs.sarRole.entity.TsRoleMenuVO;
|
||||
@@ -29,6 +30,8 @@ import java.util.Map;
|
||||
public class TsRoleServiceImpl extends ServiceImpl<TsRoleDao, TsRole> implements ITsRoleService {
|
||||
@Autowired
|
||||
private TsRoleDao tsRoleDao;
|
||||
@Autowired
|
||||
private ISarMenuService sarMenuService;
|
||||
|
||||
/**
|
||||
* 查询所有角色
|
||||
@@ -161,6 +164,8 @@ public class TsRoleServiceImpl extends ServiceImpl<TsRoleDao, TsRole> implements
|
||||
for(String menuId:deleteIds){
|
||||
tsRoleDao.delMenu(tsRoleMenuVO.getRoleId(),menuId);
|
||||
}
|
||||
//修改首页自定义目录
|
||||
// List<SarMenu> menus=sarMenuService.getMenusByIds(tsRoleMenuVO.getMenuIds());
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user