13693261870
2025-07-02 7c7cb1855b7f18802f55a70fa14ed70cbdb11bab
se-system/src/main/resources/mapper/sys/MenuAuthMapper.xml
@@ -1,6 +1,6 @@
<?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.lf.server.mapper.sys.MenuAuthMapper">
<mapper namespace="com.terra.system.mapper.sys.MenuAuthMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(*) from lf.sys_menu_auth
        <where>
@@ -10,7 +10,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.sys.MenuAuthEntity">
    <select id="selectByPage" resultType="com.terra.system.entity.sys.MenuAuthEntity">
        select a.*,b.name as authName  from lf.sys_menu_auth a inner join lf.sys_auth b
        on a.authid = b.id
        <where>
@@ -34,7 +34,7 @@
        </if>
    </select>
    <select id="selectByPageForRole" resultType="com.lf.server.entity.sys.MenuAuthEntity">
    <select id="selectByPageForRole" resultType="com.terra.system.entity.sys.MenuAuthEntity">
        select a.*,c.name from lf.sys_menu_auth a inner join lf.sys_auth c on a.authid = c.id
        where not exists (select b.id from lf.sys_role_menu_auth b where b.menu_auth_id = a.id
        <if test="roleid != null">
@@ -48,15 +48,15 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAll" resultType="com.lf.server.entity.sys.MenuAuthEntity">
    <select id="selectAll" resultType="com.terra.system.entity.sys.MenuAuthEntity">
        select * from lf.sys_menu_auth order by id;
    </select>
    <select id="selectById" resultType="com.lf.server.entity.sys.MenuAuthEntity">
    <select id="selectById" resultType="com.terra.system.entity.sys.MenuAuthEntity">
        select * from lf.sys_menu_auth where id = #{id}
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.sys.MenuAuthEntity">
    <insert id="insert" parameterType="com.terra.system.entity.sys.MenuAuthEntity">
       insert into lf.sys_menu_auth
       (menuid,authid,create_user,create_time)
       values