| | |
| | | <?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.PublishMapper"> |
| | | <mapper namespace="com.terra.system.mapper.data.PublishMapper"> |
| | | <select id="selectMetasByCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_meta |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMetasByPage" resultType="com.lf.server.entity.data.MetaEntity"> |
| | | <select id="selectMetasByPage" resultType="com.terra.system.entity.data.MetaEntity"> |
| | | select |
| | | (select c.url from lf.sys_meta_pub b inner join lf.sys_publish c on b.pubid = c.id where b.metaid = a.id limit 1) "url", |
| | | (select ST_AsText(c.geom) from lf.sys_meta_pub b inner join lf.sys_publish c on b.pubid = c.id where b.metaid = a.id limit 1) "geom", |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.lf.server.entity.data.PublishEntity"> |
| | | <select id="selectByPage" resultType="com.terra.system.entity.data.PublishEntity"> |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName |
| | | from lf.sys_publish a |
| | | <where> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.lf.server.entity.data.PublishEntity"> |
| | | <select id="selectAll" resultType="com.terra.system.entity.data.PublishEntity"> |
| | | select * from lf.sys_publish order by id desc; |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.data.PublishEntity"> |
| | | <select id="selectById" resultType="com.terra.system.entity.data.PublishEntity"> |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName |
| | | from lf.sys_publish a |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectByIds" resultType="com.lf.server.entity.data.PublishEntity"> |
| | | <select id="selectByIds" resultType="com.terra.system.entity.data.PublishEntity"> |
| | | select * from lf.sys_publish where id in (${ids}) order by id desc; |
| | | </select> |
| | | |
| | |
| | | order by code; |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.data.PublishEntity"> |
| | | <insert id="insert" parameterType="com.terra.system.entity.data.PublishEntity"> |
| | | insert into lf.sys_publish |
| | | (regid,name,url,path,type,status,dirid,depid,min,max,json,create_user,create_time,bak) |
| | | values |