¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.moon.server.entity.data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | |
| | | /** |
| | | * å
æ°æ®åå¸ç±» |
| | | * @author WWW |
| | | * @date 2023-09-03 |
| | | */ |
| | | public class MetaPubEntity implements Serializable { |
| | | private static final long serialVersionUID = 161951681197440703L; |
| | | |
| | | private Integer id; |
| | | |
| | | private Integer metaid; |
| | | |
| | | private Integer pubid; |
| | | |
| | | private Integer createUser; |
| | | |
| | | private Timestamp createTime; |
| | | |
| | | private Integer updateUser; |
| | | |
| | | private Timestamp updateTime; |
| | | |
| | | public MetaPubEntity() { |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Integer getMetaid() { |
| | | return metaid; |
| | | } |
| | | |
| | | public void setMetaid(Integer metaid) { |
| | | this.metaid = metaid; |
| | | } |
| | | |
| | | public Integer getPubid() { |
| | | return pubid; |
| | | } |
| | | |
| | | public void setPubid(Integer pubid) { |
| | | this.pubid = pubid; |
| | | } |
| | | |
| | | public Integer getCreateUser() { |
| | | return createUser; |
| | | } |
| | | |
| | | public void setCreateUser(Integer createUser) { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Timestamp getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Timestamp createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Integer getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(Integer updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Timestamp getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Timestamp updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | } |
| | |
| | | package com.moon.server.mapper.data; |
| | | |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.MetaPubEntity; |
| | | import com.moon.server.entity.data.PublishEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | public List<PublishEntity> selectByIds(String ids); |
| | | |
| | | /** |
| | | * æ ¹æ®åå¸IDæ¥è¯¢å
æ°æ® |
| | | * |
| | | * @param pubid åå¸ID |
| | | * @return å
æ°æ®éå |
| | | */ |
| | | public List<MetaEntity> selectMetasByPubid(Integer pubid); |
| | | |
| | | /** |
| | | * æ ¹æ®ç®å½æ¥è¯¢DOMåDEMçç¼ç |
| | | * |
| | | * @param dircode ç®å½ |
| | |
| | | public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser); |
| | | |
| | | /** |
| | | * æå
¥å
æ°æ®åå¸ç±» |
| | | * |
| | | * @param mp å
æ°æ®åå¸ç±» |
| | | * @return å½±åè¡æ° |
| | | */ |
| | | public Integer insertMetaPub(MetaPubEntity mp); |
| | | |
| | | /** |
| | | * å é¤ä¸æ¡ |
| | | * |
| | | * @param id |
| | |
| | | import com.moon.server.entity.all.StaticData; |
| | | import com.moon.server.entity.ctrl.PubEntity; |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.MetaPubEntity; |
| | | import com.moon.server.entity.data.PublishEntity; |
| | | import com.moon.server.helper.RestHelper; |
| | | import com.moon.server.helper.StringHelper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MetaEntity> selectMetasByPubid(Integer pubid) { |
| | | return publishMapper.selectMetasByPubid(pubid); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectCodesForDir(String dircode, Integer isDom) { |
| | | return publishMapper.selectCodesForDir(dircode, isDom); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertMetaPub(MetaPubEntity mp) { |
| | | return publishMapper.insertMetaPub(mp); |
| | | } |
| | | |
| | | @Override |
| | | public Integer delete(int id) { |
| | | return publishMapper.delete(id); |
| | | } |
| | |
| | | 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 |