13693261870
2025-07-02 7c7cb1855b7f18802f55a70fa14ed70cbdb11bab
se-system/src/main/resources/mapper/sys/AuthMapper.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.AuthMapper">
<mapper namespace="com.terra.system.mapper.sys.AuthMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(*) from lf.sys_auth
        <where>
@@ -10,7 +10,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.sys.AuthEntity">
    <select id="selectByPage" resultType="com.terra.system.entity.sys.AuthEntity">
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_auth a
        <where>
            <if test="name != null">
@@ -32,7 +32,7 @@
        )
    </select>
    <select id="selectByPageForMenu" resultType="com.lf.server.entity.sys.AuthEntity">
    <select id="selectByPageForMenu" resultType="com.terra.system.entity.sys.AuthEntity">
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b
        <where>
@@ -46,19 +46,19 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAuthAll" resultType="com.lf.server.entity.sys.AuthEntity">
    <select id="selectAuthAll" resultType="com.terra.system.entity.sys.AuthEntity">
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a
        order by id
    </select>
    <select id="selectAuth" resultType="com.lf.server.entity.sys.AuthEntity">
    <select id="selectAuth" resultType="com.terra.system.entity.sys.AuthEntity">
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a
        where id = #{id}
    </select>
    <insert id="insertAuth" parameterType="com.lf.server.entity.sys.AuthEntity">
    <insert id="insertAuth" parameterType="com.terra.system.entity.sys.AuthEntity">
       insert into lf.sys_auth
       (name,tag,create_user,create_time,bak)
       values