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