去除一些不需要的表
This commit is contained in:
@@ -77,30 +77,10 @@ public interface MenuEODao extends BaseDao<MenuEO> {
|
|||||||
*/
|
*/
|
||||||
int isBelong(@Param("roleId") String roleId, @Param("menuId") String menuId);
|
int isBelong(@Param("roleId") String roleId, @Param("menuId") String menuId);
|
||||||
|
|
||||||
/**
|
|
||||||
* Dao 根据菜单名进行菜单查询,返回关联菜单以及父级菜单信息
|
|
||||||
*
|
|
||||||
* @param menuName 菜单名
|
|
||||||
* @return 查询结果
|
|
||||||
* @author Lee Kwanho 李坤澔
|
|
||||||
* date 2018-08-22
|
|
||||||
**/
|
|
||||||
List<MenuEO> listMenuEOByMenuName(@Param("menuName") String menuName);
|
|
||||||
|
|
||||||
|
|
||||||
int queryConflict(@Param("name") String name ,@Param("id") String id , @Param("parentId") String parentId);
|
int queryConflict(@Param("name") String name ,@Param("id") String id , @Param("parentId") String parentId);
|
||||||
|
|
||||||
List<String> findIndustryAll();
|
|
||||||
|
|
||||||
List<String> listIndustryByUserId(String userId);
|
|
||||||
|
|
||||||
List<MenuEO> listMenuEOByMenuIds(@Param("ids") List<String> ids);
|
List<MenuEO> listMenuEOByMenuIds(@Param("ids") List<String> ids);
|
||||||
|
|
||||||
List<MenuEO> listMenuEOByRoleId(@Param("roleId")String roleId);
|
List<MenuEO> listMenuEOByRoleId(@Param("roleId")String roleId);
|
||||||
|
|
||||||
// String queryInformation();
|
|
||||||
//
|
|
||||||
// int updateInformation(@Param("information") String information);
|
|
||||||
//
|
|
||||||
// int insertInformation(@Param("information") String information );
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.adc.da.sys.dao.mysql.MailEODao">
|
|
||||||
<insert id="insert" parameterType="com.adc.da.sys.entity.MailEO">
|
|
||||||
insert into ts_mail(id
|
|
||||||
,to_mail
|
|
||||||
,cc_mail
|
|
||||||
,subject
|
|
||||||
,content
|
|
||||||
,send_date)
|
|
||||||
values (#{id},#{toMail},#{ccMail}, #{subject}, #{content}, #{sendDate})
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<select id="list" resultType="com.adc.da.sys.entity.MailEO">
|
|
||||||
select * from ts_mail order by send_date desc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
@@ -285,41 +285,12 @@
|
|||||||
SELECT <include refid="Base_Column_List"/> FROM TS_MENU M LEFT JOIN TR_ROLE_MENU RM ON M.ID = RM.MENU_ID where RM.ROLE_ID = #{roleId}
|
SELECT <include refid="Base_Column_List"/> FROM TS_MENU M LEFT JOIN TR_ROLE_MENU RM ON M.ID = RM.MENU_ID where RM.ROLE_ID = #{roleId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<!-- 2018-08-22 -->
|
|
||||||
<!-- Lee Kwanho -->
|
|
||||||
<!--查询菜单功能,根据菜单名进行查询,返回菜单以及上级信息-->
|
|
||||||
<select id="listMenuEOByMenuName" resultMap="BaseResultMap" >
|
|
||||||
SELECT DISTINCT <include refid="Base_Column_List_V2"/> FROM TS_MENU right join (
|
|
||||||
SELECT <include refid="Base_Column_List"/> FROM TS_MENU
|
|
||||||
WHERE TS_MENU.del_flag !=1
|
|
||||||
<if test="menuName != null">
|
|
||||||
AND TS_MENU.NAME LIKE '%${menuName}%'
|
|
||||||
</if>
|
|
||||||
) b on TS_MENU.id=b.id
|
|
||||||
<if test="menuName != null">
|
|
||||||
or b.parent_ids like '%'||TS_MENU.id||'%'
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="queryConflict" resultType="java.lang.Integer">
|
<select id="queryConflict" resultType="java.lang.Integer">
|
||||||
select count(1) from TS_MENU
|
select count(1) from TS_MENU
|
||||||
where name = #{name} and parent_id = #{parentId} and id != #{id} and del_flag='0'
|
where name = #{name} and parent_id = #{parentId} and id != #{id} and del_flag='0'
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="findIndustryAll" resultType="string">
|
|
||||||
select MODULENAME from TS_GLOD_MODULE
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="listIndustryByUserId">
|
|
||||||
select MODULENAME from TS_GLOD_MODULE M
|
|
||||||
LEFT JOIN TR_ROLE_MODULE RM ON RM.GMID = M.ID
|
|
||||||
LEFT JOIN TR_USER_ROLE UR ON UR.ROLE_ID = RM.ROLE_ID
|
|
||||||
WHERE UR.USER_ID = #{userId}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="listMenuEOByMenuIds" resultMap="BaseResultMap">
|
<select id="listMenuEOByMenuIds" resultMap="BaseResultMap">
|
||||||
SELECT distinct
|
SELECT distinct
|
||||||
<include refid="Base_Column_List"/>
|
<include refid="Base_Column_List"/>
|
||||||
@@ -340,14 +311,5 @@
|
|||||||
LEFT JOIN TR_ROLE_MENU RM ON RM.MENU_ID = M.ID
|
LEFT JOIN TR_ROLE_MENU RM ON RM.MENU_ID = M.ID
|
||||||
WHERE RM.ROLE_ID = #{roleId}
|
WHERE RM.ROLE_ID = #{roleId}
|
||||||
</select>
|
</select>
|
||||||
<!-- <select id="queryInformation" resultType="java.lang.String">-->
|
|
||||||
<!-- select information from ts_information-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <update id="updateInformation">-->
|
|
||||||
<!-- update ts_information set information = #{information}-->
|
|
||||||
<!-- </update>-->
|
|
||||||
<!-- <insert id="insertInformation">-->
|
|
||||||
<!-- insert into ts_information(information) values(#{information})-->
|
|
||||||
<!-- </insert>-->
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user