| | |
| | | <?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.data.DictMapper"> |
| | | <resultMap id="resultMap" type="com.lf.server.entity.data.DictEntity"> |
| | | <!--<resultMap id="resultMap" type="com.lf.server.entity.data.DictEntity"> |
| | | <id property="id" column="id"></id> |
| | | <result property="tabDesc" column="tab_desc"></result> |
| | | <result property="orderNum" column="order_num"></result> |
| | |
| | | <result property="createTime" column="create_time"></result> |
| | | <result property="updateUser" column="update_user"></result> |
| | | <result property="updateTime" column="update_time"></result> |
| | | </resultMap> |
| | | </resultMap>--> |
| | | |
| | | <!-- ç»è®¡è¡æ° --> |
| | | <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | |
| | | </select> |
| | | |
| | | <!-- å页æ¥è¯¢ --> |
| | | <select id="selectByPage" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectByPage" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select * from lf.sys_dict |
| | | <where> |
| | | <if test="tab != null"> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectDictTab" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectDictTab" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select Distinct tab,tab_desc from lf.sys_dict; |
| | | </select> |
| | | |
| | | <select id="selectDictAll" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectDictAll" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select * from lf.sys_dict |
| | | </select> |
| | | |
| | | <select id="selectDict" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectDict" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select * from lf.sys_dict where id = #{id} |
| | | </select> |
| | | |