| | |
| | | <?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"> |
| | | <mapper namespace="com.terra.system.mapper.data.DictMapper"> |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_dict |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectByPage" resultType="com.terra.system.entity.data.DictEntity"> |
| | | select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_dict a |
| | | <where> |
| | | status = 0 |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.data.DictEntity"> |
| | | <select id="selectById" resultType="com.terra.system.entity.data.DictEntity"> |
| | | select * from lf.sys_dict where status = 0 and id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectDictTab" resultType="com.lf.server.entity.ctrl.TabEntity"> |
| | | <select id="selectDictTab" resultType="com.terra.system.entity.ctrl.TabEntity"> |
| | | select ns, tab, tab_desc, fn_get_entity(tab) entity, tableType, bak |
| | | from lf.sys_dict |
| | | <where> |
| | |
| | | order by id; |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.data.DictEntity"> |
| | | <insert id="insert" parameterType="com.terra.system.entity.data.DictEntity"> |
| | | insert into lf.sys_dict |
| | | (ns,tab,tab_desc,field,alias,type,len,precision,order_num,create_user,create_time,tabletype,unit,domain_na,showtype,editable,bak) |
| | | values |