lmstack 3 years ago
parent
commit
c991de8376

+ 16 - 0
pom.xml

@@ -35,6 +35,22 @@
             <artifactId>springfox-swagger2</artifactId>
             <version>2.9.2</version>
         </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-generator</artifactId>
+            <version>3.4.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.freemarker</groupId>
+            <artifactId>freemarker</artifactId>
+            <version>2.3.31</version>
+        </dependency>
+        <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter -->
+        <dependency>
+            <groupId>com.github.pagehelper</groupId>
+            <artifactId>pagehelper-spring-boot-starter</artifactId>
+            <version>1.4.0</version>
+        </dependency>
 <!--        <dependency>-->
 <!--            <groupId>com.alibaba</groupId>-->
 <!--            <artifactId>druid</artifactId>-->

+ 176 - 0
src/main/java/com/lm/lib/CodeGenerator.java

@@ -0,0 +1,176 @@
+package com.lm.lib;
+
+import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
+import com.baomidou.mybatisplus.core.toolkit.StringPool;
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
+import com.baomidou.mybatisplus.generator.AutoGenerator;
+import com.baomidou.mybatisplus.generator.InjectionConfig;
+import com.baomidou.mybatisplus.generator.config.*;
+import com.baomidou.mybatisplus.generator.config.converts.MySqlTypeConvert;
+import com.baomidou.mybatisplus.generator.config.po.TableInfo;
+import com.baomidou.mybatisplus.generator.config.rules.DbColumnType;
+import com.baomidou.mybatisplus.generator.config.rules.IColumnType;
+import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
+import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
+
+import java.util.*;
+
+/**
+ * @author liuzezhong
+ * @title
+ * @date 2021/7/20
+ */
+public class CodeGenerator {
+
+    /**
+     * <p>
+     * 读取控制台内容
+     * </p>
+     */
+    public static String scanner(String tip) {
+        Scanner scanner = new Scanner(System.in);
+        StringBuilder help = new StringBuilder();
+        help.append("请输入" + tip + ":");
+        System.out.println(help.toString());
+        if (scanner.hasNext()) {
+            String ipt = scanner.next();
+            if (StringUtils.isNotBlank(ipt)) {
+                return ipt;
+            }
+        }
+        throw new MybatisPlusException("请输入正确的" + tip + "!");
+    }
+
+    public static void main(String[] args) {
+        // 代码生成器
+        AutoGenerator mpg = new AutoGenerator();
+
+        // 全局配置
+        GlobalConfig gc = new GlobalConfig();
+        String projectPath = System.getProperty("user.dir");
+        gc.setOutputDir(projectPath + "/big_screen/src/main/java");
+        gc.setAuthor("user");
+        gc.setOpen(false);
+        gc.setSwagger2(true);
+        //实体属性 Swagger2 注解
+        mpg.setGlobalConfig(gc);
+
+        // 数据源配置
+        DataSourceConfig dsc = new DataSourceConfig();
+        dsc.setUrl("jdbc:mysql://172.16.121.236:3306/fastfun?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true");
+        // dsc.setSchemaName("public");
+        dsc.setDriverName("com.mysql.cj.jdbc.Driver");
+        dsc.setUsername("readonly");
+        dsc.setPassword("Fast1234");
+        //类型转换
+        dsc.setTypeConvert(new ITypeConvert() {
+            @Override
+            public IColumnType processTypeConvert(GlobalConfig globalConfig, String fieldType) {
+                String t = fieldType.toLowerCase();
+                if(t.contains("datetime")){
+                    return DbColumnType.LOCAL_DATE_TIME;
+                }
+                if(t.contains("bigint")){
+                    return DbColumnType.LONG;
+                }
+                if (t.contains("tinyint")) {
+                    return DbColumnType.INTEGER;
+                }
+                //其它字段采用默认转换(非mysql数据库可以使用其它默认的数据库转换器)
+                return new MySqlTypeConvert().processTypeConvert(globalConfig,fieldType);
+            }
+        });
+        mpg.setDataSource(dsc);
+
+        // 包配置
+        PackageConfig pc = new PackageConfig();
+        pc.setModuleName(scanner("模块名"));
+        pc.setParent("com.lm.lib");
+        mpg.setPackageInfo(pc);
+
+        // 自定义配置
+        InjectionConfig cfg = new InjectionConfig() {
+            @Override
+            public void initMap() {
+                // to do nothing
+            }
+        };
+
+        // 如果模板引擎是 freemarker
+        String templatePath = "/templates/mapper.xml.ftl";
+        // 如果模板引擎是 velocity
+        // String templatePath = "/templates/mapper.xml.vm";
+
+        // 自定义输出配置
+        List<FileOutConfig> focList = new ArrayList<>();
+        // 自定义配置会被优先输出
+        focList.add(new FileOutConfig(templatePath) {
+            @Override
+            public String outputFile(TableInfo tableInfo) {
+                // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着发生变化!!
+                return projectPath + "/big_screen/src/main/resources/mapper/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
+            }
+        });
+        /*
+        cfg.setFileCreate(new IFileCreate() {
+            @Override
+            public boolean isCreate(ConfigBuilder configBuilder, FileType fileType, String filePath) {
+                // 判断自定义文件夹是否需要创建
+                checkDir("调用默认方法创建的目录,自定义目录用");
+                if (fileType == FileType.MAPPER) {
+                    // 已经生成 mapper 文件判断存在,不想重新生成返回 false
+                    return !new File(filePath).exists();
+                }
+                // 允许生成模板文件
+                return true;
+            }
+        });
+        */
+        cfg.setFileOutConfigList(focList);
+        mpg.setCfg(cfg);
+
+        // 配置模板
+        TemplateConfig templateConfig = new TemplateConfig();
+
+        // 配置自定义输出模板
+        //指定自定义模板路径,注意不要带上.ftl/.vm, 会根据使用的模板引擎自动识别
+        // templateConfig.setEntity("templates/entity2.java");
+        // templateConfig.setService();
+        // templateConfig.setController();
+
+        templateConfig.setXml(null);
+        mpg.setTemplate(templateConfig);
+
+        // 策略配置
+        StrategyConfig strategy = new StrategyConfig();
+        strategy.setNaming(NamingStrategy.underline_to_camel);
+        strategy.setColumnNaming(NamingStrategy.underline_to_camel);
+        strategy.setSuperEntityClass("com.zhili.operation.base.BaseEntity");
+        //这里本来以为配置上 生成的实体类就没有父类的属性了,但其实不是。
+        //如何去掉父类属性,下面有说明。
+        strategy.setSuperEntityColumns("id","create_by","create_time","update_by","update_time","is_delete");
+        strategy.setEntityLombokModel(true);
+        strategy.setRestControllerStyle(true);
+        // 公共父类
+        //strategy.setSuperControllerClass("你自己的父类控制器,没有就不用设置!");
+        // 写于父类中的公共字段
+        strategy.setInclude(scanner("表名,多个英文逗号分割").split(","));
+        strategy.setControllerMappingHyphenStyle(true);
+        strategy.setTablePrefix("t_");
+        mpg.setStrategy(strategy);
+        InjectionConfig in = new InjectionConfig() {
+            @Override
+            public void initMap() {
+                Map<String, Object> map = new HashMap<>();
+                map.put("superColumns", this.getConfig().getStrategyConfig().getSuperEntityColumns());
+                this.setMap(map);
+            }
+        };
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("superColumns", strategy.getSuperEntityColumns());
+        in.setMap(map1);
+        mpg.setCfg(in);
+        mpg.setTemplateEngine(new FreemarkerTemplateEngine());
+        mpg.execute();
+    }
+}

+ 2 - 0
src/main/java/com/lm/lib/LibApplication.java

@@ -1,9 +1,11 @@
 package com.lm.lib;
 
+import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 
 @SpringBootApplication
+@MapperScan(basePackages = "com.lm.lib.mapper")
 public class LibApplication {
 
     public static void main(String[] args) {

+ 3 - 2
src/main/java/com/lm/lib/config/DataSourceConfig.java

@@ -22,7 +22,7 @@ import javax.sql.DataSource;
 public class DataSourceConfig {
 
 
-    @Primary
+    @Primary//注意这里要加此注解以免依赖冲突
     @Bean(name = "iotpDataSource")
     @Qualifier("iotpDataSource")
     @ConfigurationProperties(prefix = "spring.datasource.iotp")
@@ -37,6 +37,7 @@ public class DataSourceConfig {
         return DataSourceBuilder.create().build();
     }
 
+
     @Bean(name = "moyuDataSource")
     @Qualifier("moyuDataSource")
     @ConfigurationProperties(prefix = "spring.datasource.moyu")
@@ -52,7 +53,7 @@ public class DataSourceConfig {
     }
 
 
-    @Primary//注意这里要加此注解以免依赖冲突
+    @Primary
     @Bean(name = "iotpJdbcTemplate")
     public JdbcTemplate iotpJdbcTemplate(
             @Qualifier("iotpDataSource") DataSource dataSource) {

+ 71 - 71
src/main/java/com/lm/lib/controller/ShowDataController.java

@@ -1,43 +1,32 @@
 package com.lm.lib.controller;
 
-import com.fasterxml.jackson.databind.util.JSONPObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.google.gson.Gson;
 import com.lm.lib.dto.AlarmMapDto;
+import com.lm.lib.entity.FfLocation;
 import com.lm.lib.param.*;
-import com.playcoding.iotp.beans.DataPackage;
-import com.playcoding.iotp.share.Safe;
-import com.playcoding.iotp.store.StoreApi;
-import com.playcoding.iotp.store.bind.StoreBindProxy;
-import com.playcoding.iotp.store.client.StoreClient;
-import com.playcoding.iotp.store.client.StoreIterable;
+import com.lm.lib.service.impl.FfLocationServiceImpl;
+
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import io.swagger.models.auth.In;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpEntity;
 import org.apache.http.client.methods.HttpGet;
 import org.apache.http.impl.client.HttpClients;
 import org.apache.http.util.EntityUtils;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.dao.EmptyResultDataAccessException;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.util.ObjectUtils;
 import org.springframework.util.StringUtils;
-import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
-import java.io.PrintWriter;
 import java.text.SimpleDateFormat;
 import java.util.*;
-import java.util.stream.Collectors;
-import java.util.stream.DoubleStream;
 
 import static java.lang.Math.abs;
 
@@ -58,50 +47,65 @@ public class ShowDataController {
 
     @Resource(name = "ossJdbcTemplate")
     JdbcTemplate ossJdbcTemplate;
+
+//    @Resource
+//    FfLocationServiceImpl ffLocationService;
+
+
 //    @Autowired
 //    StoreClient storeClient;
 //    StoreApi service = new StoreBindProxy();
 //    StoreClient storeClient = new StoreClient(service);
-@ApiOperation(value = "获取gps数据")
-@RequestMapping(value = "/allrealtimeInfo", method = RequestMethod.GET)
-public Map<String, Object> gpsInfo() throws IOException {
-    String sql = "select sn from app_device";
-    List<Map<String, Object>> snData = ossJdbcTemplate.queryForList(sql);
-    List snList = new ArrayList();
-    snData.forEach(p->snList.add(p.get("sn")));
-
-    Map<String, Object> res = new HashMap<>();
-    sql = "select t2.latitude, t2.longitude, t1.charge_state, t1.devcode from ff_battery_status t1 left join ff_location t2 on t1.devcode = t2.devcode";
-    List<Map<String, Object>> realtimeData;
-    try {
-        realtimeData = iotpJdbcTemplate.queryForList(sql);
-    } catch (EmptyResultDataAccessException e) {
-        realtimeData = null;
-    }
-    if (!ObjectUtils.isEmpty(realtimeData)) {
-        List<Object> data = new ArrayList<>();
-        realtimeData.forEach(p->{
-            Map<String, Object> thisData = new HashMap<>();
-            if (ObjectUtils.isEmpty(p.get("latitude")) ||
-                    ((abs(Double.parseDouble(p.get("latitude").toString()))) < 0.0001 &&  (abs(Double.parseDouble(p.get("longitude").toString()))) < 0.0001)) return;
-            if (!snList.contains(p.get("devcode"))) return;
-            thisData.put("latitude", p.getOrDefault("latitude", null));
-            thisData.put("longitude", p.getOrDefault("longitude", null));
-            thisData.put("devcode", p.getOrDefault("devcode", null));
-            thisData.put("charge_state", p.getOrDefault("charge_state", null));
-            data.add(thisData);
-        });
-        res.put("code", 200);
-        res.put("message", "获取成功");
-        res.put("data", data);
+
+    @ApiOperation(value = "获取美团sn")
+    @RequestMapping(value = "/getSn", method = RequestMethod.GET)
+    public String getSn() throws IOException {
+        String sql = "select qrcode from py_battery where f_id=141";
+        List<Map<String, Object>> snData = moyuJdbcTemplate.queryForList(sql);
+        List<String> snList = new ArrayList();
+        snData.forEach(p -> snList.add(p.get("qrcode").toString()));
+        String snString = "\'" + String.join("\',\'", snList) + "\'";
+        return snString;
     }
-    else{
-        res.put("code", 500);
-        res.put("message", "未获取到数据");
-        res.put("data", new ArrayList<>());
+
+    @ApiOperation(value = "获取gps数据")
+    @RequestMapping(value = "/allrealtimeInfo", method = RequestMethod.GET)
+    public Map<String, Object> gpsInfo() throws IOException {
+        String snString = this.getSn();
+        Map<String, Object> res = new HashMap<>();
+        String sql = "select t2.latitude, t2.longitude, t1.charge_state, t1.devcode from ff_battery_status t1 left join ff_location t2 on t1.devcode = t2.devcode where t2.devcode in (%s)";
+        List<Map<String, Object>> realtimeData;
+        List<String> snList = Arrays.asList(snString.replace("'", "").split(","));
+        try {
+            realtimeData = iotpJdbcTemplate.queryForList(String.format(sql, snString));
+        } catch (EmptyResultDataAccessException e) {
+            realtimeData = null;
+        }
+        if (!ObjectUtils.isEmpty(realtimeData)) {
+            List<Object> data = new ArrayList<>();
+            realtimeData.forEach(p -> {
+                Map<String, Object> thisData = new HashMap<>();
+                if (ObjectUtils.isEmpty(p.get("latitude")) ||
+                        ((abs(Double.parseDouble(p.get("latitude").toString()))) < 0.0001 && (abs(Double.parseDouble(p.get("longitude").toString()))) < 0.0001))
+                    return;
+                if (!snList.contains(p.get("devcode"))) return;
+                thisData.put("latitude", p.getOrDefault("latitude", null));
+                thisData.put("longitude", p.getOrDefault("longitude", null));
+                thisData.put("devcode", p.getOrDefault("devcode", null));
+//                thisData.put("charge_state", p.getOrDefault("charge_state", null));
+                data.add(thisData);
+            });
+            res.put("code", 200);
+            res.put("message", "获取成功");
+            res.put("data", data);
+        } else {
+            res.put("code", 500);
+            res.put("message", "未获取到数据");
+            res.put("data", new ArrayList<>());
+        }
+        return res;
     }
-    return res;
-}
+
     @ApiOperation(value = "基本信息")
     @RequestMapping(value = "/baseInfo", method = RequestMethod.GET)
     public RspBaseInfo baseInfo(@ApiParam(name = "查询参数", value = "sn号", required = false) String sn) throws IOException {
@@ -226,7 +230,7 @@ public Map<String, Object> gpsInfo() throws IOException {
 
                 lastData.put("error_level", lastData.get("error_level") == null ? 0 : lastData.get("error_level"));
                 Double voltDiff = (600 - (Double.parseDouble(Collections.max(voltages)) - (Double.parseDouble(Collections.min(voltages))))) / 6;
-                if (soh.compareTo(100.0) > 0){
+                if (soh.compareTo(100.0) > 0) {
                     soh = 100.0;
                 }
                 score = (soh * soh * 14.0 / 100.0 +
@@ -323,11 +327,10 @@ public Map<String, Object> gpsInfo() throws IOException {
                 accumData = null;
             }
             if (!ObjectUtils.isEmpty(accumData)) {
-                if (accumData.get("dsg_phaccum") == null){
+                if (accumData.get("dsg_phaccum") == null) {
                     rspHealthInfo.setAccumEnergy("-");
-                }
-                else{
-                    rspHealthInfo.setAccumEnergy(((Double)(Double.parseDouble(accumData.get("dsg_phaccum").toString())/1000.0)).toString());
+                } else {
+                    rspHealthInfo.setAccumEnergy(((Double) (Double.parseDouble(accumData.get("dsg_phaccum").toString()) / 1000.0)).toString());
                     // 设备信息解析 电压平台和AH数
                     sql = "select imei from app_device where sn = '" + sn + "'";
                     Map<String, Object> deviceData;
@@ -337,26 +340,23 @@ public Map<String, Object> gpsInfo() throws IOException {
                         deviceData = null;
                     }
                     if (!ObjectUtils.isEmpty(deviceData)) {
-                        Double volt=0.0;
+                        Double volt = 0.0;
                         Double crnt;
-                        if (deviceData.get("imei").toString().substring(6,7).equals("4")){
+                        if (deviceData.get("imei").toString().substring(6, 7).equals("4")) {
                             volt = 48.0;
-                        }
-                        else if (deviceData.get("imei").toString().substring(6,7).equals("6")){
+                        } else if (deviceData.get("imei").toString().substring(6, 7).equals("6")) {
                             volt = 60.0;
-                        }
-                        else if (deviceData.get("imei").toString().substring(6,7).equals("7")){
+                        } else if (deviceData.get("imei").toString().substring(6, 7).equals("7")) {
                             volt = 72.0;
                         }
-                        crnt = Double.parseDouble(deviceData.get("imei").toString().substring(7,9));
-                        rspHealthInfo.setAccumCycle(((Double)Math.ceil((Double.parseDouble(rspHealthInfo.getAccumEnergy())/(crnt * volt /1000.0)))).toString());
-                    }
-                    else{
+                        crnt = Double.parseDouble(deviceData.get("imei").toString().substring(7, 9));
+                        rspHealthInfo.setAccumCycle(((Double) Math.ceil((Double.parseDouble(rspHealthInfo.getAccumEnergy()) / (crnt * volt / 1000.0)))).toString());
+                    } else {
                         rspHealthInfo.setAccumCycle("-");
                     }
                 }
 
-            } else{
+            } else {
                 rspHealthInfo.setAccumEnergy("-");
                 rspHealthInfo.setAccumCycle("-");
 
@@ -401,7 +401,7 @@ public Map<String, Object> gpsInfo() throws IOException {
         return rspAllAlarmInfo;
     }
 
-    @ApiOperation(value = "当前电池报警信息")
+    @ApiOperation(value = "低电量报警信息")
     @RequestMapping(value = "/alarmInfo", method = RequestMethod.GET)
     public RspAlarmInfo alarmInfo(@ApiParam(name = "查询参数", value = "sn号", required = false) String sn) {
         RspAlarmInfo rspAlarmInfo = new RspAlarmInfo();
@@ -428,7 +428,7 @@ public Map<String, Object> gpsInfo() throws IOException {
             }
             sql = "select t4.*, t5.f_name  from (select t.*, t3.s_name from " +
                     "(select t1.u_id, t1.u_status, t2.username, t2.mobile,t1.s_id, t1.f_id from py_battery t1 left join py_users t2 on t1.u_id=t2.user_id where qrcode = '" + sn + "') t left join py_site t3 on t3.s_id=t.s_id " +
-                    ")t4 left join py_franchisee t5 on t5.f_id=t4.f_id" ;
+                    ")t4 left join py_franchisee t5 on t5.f_id=t4.f_id";
             Map<String, Object> userInfo;
             try {
                 userInfo = moyuJdbcTemplate.queryForMap(sql);

+ 57 - 0
src/main/java/com/lm/lib/entity/FfLocation.java

@@ -0,0 +1,57 @@
+package com.lm.lib.entity;
+
+import java.time.LocalDateTime;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ *
+ * </p>
+ *
+ * @author user
+ * @since 2021-11-30
+ */
+@Data
+@ApiModel(value="FfLocation对象", description="")
+public class FfLocation {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "设备唯一ID,科易协议=UID")
+    private String devcode;
+
+    @ApiModelProperty(value = "定位状态:2=2d,3=3d,4=基站")
+    private Integer locationType;
+
+    @ApiModelProperty(value = "卫星数")
+    private Integer satellites;
+
+    @ApiModelProperty(value = "方向")
+    private Integer direction;
+
+    @ApiModelProperty(value = "海拔,米")
+    private Integer altitude;
+
+    @ApiModelProperty(value = "速度,km/h")
+    private Double speed;
+
+    @ApiModelProperty(value = "纬度")
+    private Double latitude;
+
+    @ApiModelProperty(value = "经度")
+    private Double longitude;
+
+    @ApiModelProperty(value = "GSM位置码LAC")
+    private Integer lac;
+
+    @ApiModelProperty(value = "GSM小区码Cell")
+    private Integer cell;
+
+    @ApiModelProperty(value = "定位时间")
+    private LocalDateTime gpsTime;
+
+
+}

+ 16 - 0
src/main/java/com/lm/lib/mapper/FfLocationMapper.java

@@ -0,0 +1,16 @@
+package com.lm.lib.mapper;
+
+import com.lm.lib.entity.FfLocation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author user
+ * @since 2021-11-30
+ */
+public interface FfLocationMapper extends BaseMapper<FfLocation> {
+
+}

+ 16 - 0
src/main/java/com/lm/lib/service/IFfLocationService.java

@@ -0,0 +1,16 @@
+package com.lm.lib.service;
+
+import com.lm.lib.entity.FfLocation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author user
+ * @since 2021-11-30
+ */
+public interface IFfLocationService extends IService<FfLocation> {
+
+}

+ 19 - 0
src/main/java/com/lm/lib/service/impl/FfLocationServiceImpl.java

@@ -0,0 +1,19 @@
+package com.lm.lib.service.impl;
+
+import com.lm.lib.entity.FfLocation;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.lm.lib.mapper.FfLocationMapper;
+import com.lm.lib.service.IFfLocationService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author user
+ * @since 2021-11-30
+ */
+@Service
+public class FfLocationServiceImpl extends ServiceImpl<FfLocationMapper, FfLocation> implements IFfLocationService {
+}

File diff suppressed because it is too large
+ 0 - 0
src/main/resources/static/vue-static/js/chunk-4373d646.6843a4bb.js


+ 1 - 1
src/main/vue/vue.config.js

@@ -14,7 +14,7 @@ module.exports = {
     //proxy:{'/api':{}},代理器中设置/api,项目中请求路径为/api的替换为target
     proxy:{
         '/showData':{
-            target: 'http://47.111.243.220:9090',//代理地址,这里设置的地址会代替axios中设置的baseURL
+            target: 'http://localhost:9090',//代理地址,这里设置的地址会代替axios中设置的baseURL
             changeOrigin: true,// 如果接口跨域,需要进行这个参数配置
             //ws: true, // proxy websockets
             //pathRewrite方法重写url

Some files were not shown because too many files changed in this diff