| | |
| | | select * from lf.sys_publish where id in (${ids}) order by id desc; |
| | | </select> |
| | | |
| | | <select id="selectMetasByPubid" resultType="com.moon.server.entity.data.MetaEntity"> |
| | | select a.* |
| | | from lf.sys_meta a |
| | | inner join lf.sys_meta_pub b |
| | | on a.id = b.metaid |
| | | where b.pubid = #{pubid}; |
| | | </select> |
| | | |
| | | <select id="selectCodesForDir" resultType="java.lang.String"> |
| | | select code |
| | | from lf.sys_dir |
| | |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.moon.server.entity.data.PublishEntity"> |
| | | <selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id"> |
| | | select currval('lf.sys_publish_id_seq'::regclass) as id |
| | | </selectKey> |
| | | |
| | | insert into lf.sys_publish |
| | | (layerid,serviceid,name,url,path,type,status,dirid,depid,min,max,json,create_user,create_time,geom,bak) |
| | | values |
| | |
| | | <insert id="insertPubDown"> |
| | | insert into lf.sys_pub_down (pubid, downid, create_user) values (#{pubid}, #{downid}, #{createUser}) |
| | | </insert> |
| | | |
| | | <insert id="insertMetaPub" parameterType="com.moon.server.entity.data.MetaPubEntity"> |
| | | insert into lf.sys_meta_pub(metaid, pubid, create_user, create_time) |
| | | values |
| | | (#{metaid}, #{pubid}, #{createUser}, now()); |
| | | </insert> |
| | | |
| | | <insert id="inserts"> |
| | | insert into lf.sys_publish |