13693261870
2025-07-02 7c7cb1855b7f18802f55a70fa14ed70cbdb11bab
se-system/src/main/resources/mapper/sys/ResMapper.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.ResMapper">
<mapper namespace="com.terra.system.mapper.sys.ResMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(*) from lf.sys_res
        <where>
@@ -10,7 +10,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.sys.ResEntity">
    <select id="selectByPage" resultType="com.terra.system.entity.sys.ResEntity">
        select a.*,fn_rec_query(a.depid, 'dep') depName,fn_rec_query(a.dirid, 'dir') dirName,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_res a
        <where>
            <if test="name != null">
@@ -32,7 +32,7 @@
        )
    </select>
    <select id="selectByPageForRole" resultType="com.lf.server.entity.sys.ResEntity">
    <select id="selectByPageForRole" resultType="com.terra.system.entity.sys.ResEntity">
        select a.* from lf.sys_res a where not exists (select b.id from lf.sys_role_res b
        <where>
            b.resid = a.id
@@ -45,15 +45,15 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectResAll" resultType="com.lf.server.entity.sys.ResEntity">
    <select id="selectResAll" resultType="com.terra.system.entity.sys.ResEntity">
        select * from lf.sys_res order by id desc
    </select>
    <select id="selectRes" resultType="com.lf.server.entity.sys.ResEntity">
    <select id="selectRes" resultType="com.terra.system.entity.sys.ResEntity">
        select * from lf.sys_res where id = #{id}
    </select>
    <insert id="insertRes" parameterType="com.lf.server.entity.data.DictEntity">
    <insert id="insertRes" parameterType="com.terra.system.entity.data.DictEntity">
       insert into lf.sys_res
       (name,server,source,depid,dirid,code,descr,img,create_user,create_time,bak)
       values