13693261870
2025-07-08 2691194cb3ea13de13aa5fda4af2f7ff78daa7b3
se-system/src/main/resources/mapper/sys/ResOpMapper.xml
@@ -6,7 +6,7 @@
        <where>
            1 = 1
            <if test="name != null">
                and upper(c.name) like #{name}
                and upper(c.cn_name) like #{name}
            </if>
            <if test="type != null">
                and a.type = #{type}
@@ -21,11 +21,13 @@
    </select>
    <select id="selectByPage" resultType="com.terra.system.entity.sys.ResOpEntity">
        select a.*,b.uname,c.name from lf.sys_res_op a inner join lf.sys_user b on a.userid = b.id inner join lf.sys_res c on a.resid=c.id
        select a.*, b.uname, c.cn_name "name"
        from lf.sys_res_op a
        inner join lf.sys_user b on a.userid = b.id inner join lf.sys_res c on a.resid=c.id
        <where>
            1 = 1
            <if test="name != null">
                and upper(c.name) like #{name}
                and upper(c.cn_name) like #{name}
            </if>
            <if test="type != null">
                and a.type = #{type}