| | |
| | | comment on column lf.sys_meta.bak is '夿³¨'; |
| | | comment on column lf.sys_meta.geom is '空é´ä½ç½®'; |
| | | -- insert into lf.sys_meta(dirid,depid,geom,sizes,name,path) values (1,1,ST_PolygonFromText('MultiPolygon (((100 0,120 0,120 20,100 20,100 0)))', 4490),0.001,'a.jpg','c:\a.jpg'); |
| | | -- create table lf.sys_meta as select * from lf.sys_meta_new; |
| | | |
| | | select * from lf.sys_meta_new; select a.*,st_astext(geom) from lf.sys_meta a; |
| | | ----------------------------------------------------------------------------------------------------- 32.FMEæ¥å¿è¡¨ |
| | | create table lf.sys_fme_log ( |
| | | id serial primary key, |
| | | parentid varchar(38), |
| | | dirpath varchar(1024), |
| | | pg_ns varchar(10), |
| | | tcmc varchar(150), |
| | | tcdm varchar(50), |
| | | count integer default 0 |
| | | ); |
| | | comment on table lf.sys_fme_log is 'FMEæ¥å¿è¡¨'; |
| | | comment on column lf.sys_fme_log.id is '主é®ID'; |
| | | comment on column lf.sys_fme_log.parentid is 'ç¶è¡¨GUID'; |
| | | comment on column lf.sys_fme_log.dirpath is 'æä»¶è·¯å¾'; |
| | | comment on column lf.sys_fme_log.pg_ns is 'è¡¨æ¶æ'; |
| | | comment on column lf.sys_fme_log.tcmc is 'å¾å±åç§°'; |
| | | comment on column lf.sys_fme_log.tcdm is '表å'; |
| | | comment on column lf.sys_fme_log.count is 'è¡æ°'; |
| | | |
| | | select * from lf.sys_fme_log; |
| | | ----------------------------------------------------------------------------------------------------- å
æ°æ®æµè¯è¡¨ * |
| | | -- drop table if exists md.md_zxcg; |
| | | create table md.md_zxcg( |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ å°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query") |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query", example = "20230109010101"), |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMappers") |
| | | public ResponseMsg<List<TabMapperEntity>> selectMappers(String path) { |
| | | public ResponseMsg<List<TabMapperEntity>> selectMappers(String path, Integer dirid) { |
| | | try { |
| | | |
| | | |
| | | List<TabMapperEntity> list = dataLoaderService.selectMappers(path); |
| | | |
| | | return success(list); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.entity.data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * FMEæ¥å¿è¡¨ |
| | | * @author WWW |
| | | */ |
| | | public class FmeLogEntity implements Serializable { |
| | | private static final long serialVersionUID = -1304153743551710249L; |
| | | |
| | | public FmeLogEntity() { |
| | | } |
| | | |
| | | private Integer id; |
| | | |
| | | private String parentid; |
| | | |
| | | private String dirpath; |
| | | |
| | | private String pgNs; |
| | | |
| | | private String tcmc; |
| | | |
| | | private String tcdm; |
| | | |
| | | private Integer count; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getParentid() { |
| | | return parentid; |
| | | } |
| | | |
| | | public void setParentid(String parentid) { |
| | | this.parentid = parentid; |
| | | } |
| | | |
| | | public String getDirpath() { |
| | | return dirpath; |
| | | } |
| | | |
| | | public void setDirpath(String dirpath) { |
| | | this.dirpath = dirpath; |
| | | } |
| | | |
| | | public String getPgNs() { |
| | | return pgNs; |
| | | } |
| | | |
| | | public void setPgNs(String pgNs) { |
| | | this.pgNs = pgNs; |
| | | } |
| | | |
| | | public String getTcmc() { |
| | | return tcmc; |
| | | } |
| | | |
| | | public void setTcmc(String tcmc) { |
| | | this.tcmc = tcmc; |
| | | } |
| | | |
| | | public String getTcdm() { |
| | | return tcdm; |
| | | } |
| | | |
| | | public void setTcdm(String tcdm) { |
| | | this.tcdm = tcdm; |
| | | } |
| | | |
| | | public Integer getCount() { |
| | | return count; |
| | | } |
| | | |
| | | public void setCount(Integer count) { |
| | | this.count = count; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.lf.server.entity.data.CoordEntity; |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.data.FmeLogEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectProject(); |
| | | |
| | | /** |
| | | * æ¥è¯¢FMEæ¥å¿ |
| | | * |
| | | * @param parentid |
| | | * @return |
| | | */ |
| | | public List<FmeLogEntity> selectFmeLog(String parentid); |
| | | } |
| | |
| | | |
| | | import com.lf.server.entity.data.CoordEntity; |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.data.FmeLogEntity; |
| | | import com.lf.server.mapper.data.UploadMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public List<DirEntity> selectProject() { |
| | | return uploadMapper.selectProject(); |
| | | } |
| | | |
| | | @Override |
| | | public List<FmeLogEntity> selectFmeLog(String parentid) { |
| | | return uploadMapper.selectFmeLog(parentid); |
| | | } |
| | | } |
| | |
| | | <select id="selectProject" resultType="com.lf.server.entity.data.DirEntity"> |
| | | select * from lf.sys_dir where pid = 0 and id > 1 |
| | | </select> |
| | | |
| | | <select id="selectFmeLog" resultType="com.lf.server.entity.data.FmeLogEntity"> |
| | | select * from lf.sys_fme_log where parentid = #{parentid}; |
| | | </select> |
| | | </mapper> |