管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-06 f2878af9a5edf96407e5a6740d8e89fe4f4c27c1
1
已添加2个文件
已修改4个文件
160 ■■■■ 文件已修改
src/main/java/com/lf/server/config/PropertiesConfig.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/all/BaseUploadController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/ctrl/KeyValueEntity.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/data/MetaFileEntity.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/FmeService.java 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/config/PropertiesConfig.java
@@ -10,6 +10,9 @@
@Configuration
@SuppressWarnings("AlibabaCommentsMustBeJavadocFormat")
public class PropertiesConfig {
    @Value("${sys.fme.url}")
    private String fmeUrl;
    @Value("${sys.path.download}")
    private String downloadPath;
@@ -28,20 +31,12 @@
    // @Value("${spring.datasource.druid.stat-view-servlet.login-password}")
    private String druidPwd;
    public String getDruidUser() {
        return druidUser;
    public String getFmeUrl() {
        return fmeUrl;
    }
    public void setDruidUser(String druidUser) {
        this.druidUser = druidUser;
    }
    public String getDruidPwd() {
        return druidPwd;
    }
    public void setDruidPwd(String druidPwd) {
        this.druidPwd = druidPwd;
    public void setFmeUrl(String fmeUrl) {
        this.fmeUrl = fmeUrl;
    }
    public String getDownloadPath() {
@@ -75,4 +70,20 @@
    public void setTempPath(String tempPath) {
        this.tempPath = tempPath;
    }
    public String getDruidUser() {
        return druidUser;
    }
    public void setDruidUser(String druidUser) {
        this.druidUser = druidUser;
    }
    public String getDruidPwd() {
        return druidPwd;
    }
    public void setDruidPwd(String druidPwd) {
        this.druidPwd = druidPwd;
    }
}
src/main/java/com/lf/server/controller/all/BaseUploadController.java
@@ -7,7 +7,6 @@
import com.lf.server.entity.data.VerEntity;
import com.lf.server.entity.sys.DepEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.helper.StringHelper;
import com.lf.server.service.all.BaseUploadService;
import com.lf.server.service.data.DirService;
import com.lf.server.service.data.MetaService;
src/main/java/com/lf/server/entity/ctrl/KeyValueEntity.java
@@ -7,7 +7,7 @@
public class KeyValueEntity {
    private String key;
    private String value;
    private Object value;
    public KeyValueEntity() {
    }
@@ -20,11 +20,11 @@
        this.key = key;
    }
    public String getValue() {
    public Object getValue() {
        return value;
    }
    public void setValue(String value) {
    public void setValue(Object value) {
        this.value = value;
    }
}
src/main/java/com/lf/server/entity/data/MetaFileEntity.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,13 @@
package com.lf.server.entity.data;
import java.io.Serializable;
/**
 * å…ƒæ•°æ®æ–‡ä»¶
 * @author WWW
 */
public class MetaFileEntity implements Serializable {
    private static final long serialVersionUID = -3688958480700165163L;
}
src/main/java/com/lf/server/service/data/FmeService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,92 @@
package com.lf.server.service.data;
import com.lf.server.config.PropertiesConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * FME服务类
 * @author WWW
 */
@Service
public class FmeService {
    @Autowired
    PropertiesConfig propertiesConfig;
    /**
     * OSGB检查:.osgb + .xls/.xlsx
     */
    public void checkOsgb(){
    }
    /**
     * è¡¨æ ¼æ•°æ®æ£€æŸ¥ï¼š.xls/.xlsx
     */
    public void checkXls(){
    }
    /**
     * ç‚¹äº‘检查:.laz + .xls/.xlsx
     */
    public void checkLaz(){
    }
    /**
     * é«˜ç¨‹æ£€æŸ¥ï¼š.tif/.tfw/.tif.ovr + .dwg
     */
    public void checkDem(){
    }
    /**
     * å±žæ€§æ£€æŸ¥ï¼š.dwg, *dlg.gdb
     */
    public void checkAttrs(){
    }
    /**
     * æ‹“扑检查:*地形图.dwg
     */
    public void checkTopology(){
    }
    /**
     * å›¾é¢æ•´é¥°æ£€æŸ¥ï¼š.dwg
     */
    public void checkDecorate(){
    }
    /**
     * åŽŸç‚¹æ£€æŸ¥ï¼šå‰–é¢å›¾.dwg
     */
    public void checkOrigin(){
    }
    /**
     * æ …格检查:.tif/.tfw/.tif.ovr + .xls/.xlsx
     */
    public void checkDom(){
    }
    /**
     * æ•°å­¦åŸºç¡€æ£€æŸ¥ï¼š.shp, .gdb, .xls/.xlsx
     */
    public void checkMath(){
    }
    /**
     * å…ƒæ•°æ®æ£€æŸ¥ï¼š.xls/.xlsx
     */
    public void checkMeta(){
    }
}
src/main/resources/application.yml
@@ -12,8 +12,8 @@
  # redis
  redis:
    database: 0
    host: 192.168.20.39
    port: 6379
    host: pipe.cppe.com
    port: 6369
    password: rediS_5L#F4_Server
    timeout: 6000  # è¿žæŽ¥è¶…时时长(毫秒)
    pool:
@@ -41,9 +41,11 @@
  datasource:
    name: prod
    # JDBC åŸºæœ¬é…ç½® &currentSchema=public
    url: jdbc:postgresql://192.168.20.39:5433/langfang?useAffectedRows=true
    #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://pipe.cppe.com:5433/langfang?useAffectedRows=true
    username : postgres
    password: postgres
    password: Postgres!_14_Lf
    #password: postgres
    driver-class-name: org.postgresql.Driver
    paltform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource
@@ -141,6 +143,9 @@
# ç³»ç»Ÿé…ç½®
sys:
  fme:
    # FME服务路径
    url: http://pipe.cppe.com:88/
  path:
    # ä¸‹è½½ç›®å½•(下载文件)
    download: D:\LF\download