data/db.sql | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/data/StyleMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
data/db.sql
@@ -749,7 +749,8 @@ update lf.sys_dict set create_user=1,create_time=now() where 1=1; update lf.sys_dict set bak=null where bak=' '; */ select * from lf.sys_dict order by id; select count(*) from lf.sys_dict where tab='sys_user'; select * from lf.sys_dict order by ns,tab,order_num limit 10 offset 0; ----------------------------------------------------------------------------------------------------- 21.样式表 -- DROP TABLE IF EXISTS lf.sys_style; create table lf.sys_style( @@ -791,7 +792,8 @@ --insert into lf.sys_style (name,type,precision,descr) values ('line.edp','edp','1:1000','管道中心线样式文件'); select * from lf.sys_style; select count(*) from lf.sys_style where name like '%.edp'; select * from lf.sys_style order by ns,tab,order_num limit 10 offset 0; ----------------------------------------------------------------------------------------------------- 22.下载记录表 -- DROP TABLE IF EXISTS lf.sys_download; create table lf.sys_download( src/main/resources/mapper/data/StyleMapper.xml
@@ -10,6 +10,29 @@ <result property="updateUser" column="update_user"></result> <result property="updateTime" column="update_time"></result> </resultMap> <!-- 统计行数 --> <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String"> select count(*) from lf.sys_style <where> <if test="name != null"> tab like #{tab} </if> </where> </select> <!-- 分页查询 --> <select id="selectByPage" resultMap="resultMap" resultType="com.lf.server.entity.data.StyleEntity"> select * from lf.sys_style <where> <if test="name != null"> tab like #{tab} </if> </where> order by ns,tab,order_num limit #{limit} offset #{offset} </select> <select id="selectStyleAll" resultMap="resultMap" resultType="com.lf.server.entity.data.StyleEntity"> select * from lf.sys_style </select>