| | |
| | | <?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> |
| | |
| | | </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"> |
| | |
| | | ) |
| | | </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> |
| | |
| | | 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 |