Commit b987f141 by guojuxing

gic运营平台部门职位字段添加

parent 550f231d
......@@ -3,6 +3,7 @@ package com.gic.auth.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.auth.dto.AuthItemListDTO;
import com.gic.auth.dto.MenuAuthDepartDTO;
import com.gic.auth.dto.MenuDTO;
import com.gic.auth.qo.AuthItemSaveQO;
import com.gic.auth.qo.MenuListQO;
......@@ -168,6 +169,8 @@ public interface MenuApiService {

 */
ServiceResponse<List<MenuDTO>> listMenuTree(MenuListQO params);
ServiceResponse<List<MenuAuthDepartDTO>> listAllAuthDepart(List<String> menuCodeList);
/**
* 查询菜单树(页面&权限项)
* @Title: listMenuTreeForRole

......
......@@ -60,4 +60,6 @@ public interface TabSysMenuAuthDepartMapper {
void deleteByMenuCode(String menuCode);
List<TabSysMenuAuthDepart> listAuthDepartByMenuCode(String menuCode);
List<TabSysMenuAuthDepart> listAllAuthDepart(@Param("list") List<String> menuCodeList);
}
\ No newline at end of file
......@@ -26,4 +26,6 @@ public interface MenuAuthDepartService {
* @return java.util.List<com.gic.auth.entity.TabSysMenuAuthDepart>


*/
List<TabSysMenuAuthDepart> listAuthDepartByMenuCode(String menuCode);
List<TabSysMenuAuthDepart> listAllAuthDepart(List<String> menuCodeList);
}
......@@ -27,4 +27,9 @@ public class MenuAuthDepartServiceImpl implements MenuAuthDepartService{
public List<TabSysMenuAuthDepart> listAuthDepartByMenuCode(String menuCode) {
return tabSysMenuAuthDepartMapper.listAuthDepartByMenuCode(menuCode);
}
@Override
public List<TabSysMenuAuthDepart> listAllAuthDepart(List<String> menuCodeList) {
return tabSysMenuAuthDepartMapper.listAllAuthDepart(menuCodeList);
}
}
......@@ -213,6 +213,15 @@ public class MenuApiServiceImpl implements MenuApiService {
}
@Override
public ServiceResponse<List<MenuAuthDepartDTO>> listAllAuthDepart(List<String> menuCodeList) {
List<TabSysMenuAuthDepart> list = menuAuthDepartService.listAllAuthDepart(menuCodeList);
if (CollectionUtils.isNotEmpty(list)) {
return ServiceResponse.success(EntityUtil.changeEntityListNew(MenuAuthDepartDTO.class, list));
}
return ServiceResponse.success(new ArrayList<>());
}
@Override
public ServiceResponse<List<MenuDTO>> listMenuTreeForRole(String project, String versionCode) {
List<TabSysMenu> list = menuService.listMenuTree(project, versionCode);
if (CollectionUtils.isNotEmpty(list)) {
......
......@@ -175,4 +175,18 @@
where menu_code = #{menuCode}
and status = 1
</select>
<select id="listAllAuthDepart" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include>
from tab_sys_menu_auth_depart
where status = 1
<if test="list != null and list.size() > 0">
and menu_code in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
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