523096025 před 3 roky
rodič
revize
2eb2f1d0a2

+ 11 - 11
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/config/SaticScheduleTask.java

@@ -41,7 +41,7 @@ public class SaticScheduleTask  {
 
 //    @Scheduled(cron = "0/5 * * * * ?")
 //    @Scheduled(cron = "0 * * * * ? ")
-    private void getPsyTask(){
+  /*  private void getPsyTask(){
         System.err.println("执行 getPsyTask 执行静态定时任务时间: " + LocalDateTime.now());
         iAutoGetErpData.getPsy();
     }
@@ -100,11 +100,11 @@ public class SaticScheduleTask  {
     private List findAll(){
 
         return iAutoGetErpData.findAll();
-    }
+    }*/
 
     //ok
     //
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 0 8,23 * * ? ")
     private void getManyFarmProduce() throws IOException {
         //获取多牧场生产数
         iAutoGetErpData.getManyFarmProduce();
@@ -112,56 +112,56 @@ public class SaticScheduleTask  {
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 1 0,2,4,6,8,10,12,14,16,18,20,22 * * ? ")
     private void getManyFarmStock() throws IOException {
         //获取多牧场存栏
         iAutoGetErpData.getManyFarmStock();
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 2 0,2,4,6,8,10,12,14,16,18,20,22 * * ? ")
     private void getCostWithManyFarm() throws IOException, ParseException {
         //获取多牧场生产成本
         iAutoGetErpData.getCostWithManyFarm();
     }
 
     // ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 3 0,2,4,6,8,10,12,14,16,18,20,22 * * ? ")
     private void getWarningMessage() throws IOException, ParseException {
         //获取预警信息
         iAutoGetErpData.getWarningMessage();
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 4 0,2,4,6,8,10,12,14,16,18,20,22 * * ? ")
     private void getWorkPlan() throws IOException, ParseException {
         //工作计划
         iAutoGetErpData.getWorkPlan();
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 5 0,2,4,6,8,10,12,14,16,18,20,22 * * ? ")
     private void getPrepareStatusQuantity() throws IOException, ParseException {
         //获取各种准备状态数量
         iAutoGetErpData.getPrepareStatusQuantity();
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 6 0,2,4,6,8,10,12,14,16,18,20,22 * * ?  ")
     private void getPayable() throws IOException, ParseException {
         //应付排名
         iAutoGetErpData.getPayable();
     }
 
     //ok
-//    @Scheduled(cron = "0 0/60 * * * ?")
+    @Scheduled(cron = "0 7 0,2,4,6,8,10,12,14,16,18,20,22 * * ?  ")
     private void getSales() throws IOException, ParseException {
         System.out.println("");
         //读取销售数据
         iAutoGetErpData.getSales();
     }
 
-    @Scheduled(cron = "0 0/2 * * * ?")
+    @Scheduled(cron = "0 8 0,2,4,6,8,10,12,14,16,18,20,22 * * ?  ")
     private void getManyFarmPsy() throws IOException, ParseException, InterruptedException {
         System.out.println("");
         //读取多个牧场的PSY

+ 33 - 33
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/entity/IndexParameter.java

@@ -1,33 +1,33 @@
-package com.huimv.production.autoGetData.entity;
-
-import lombok.Data;
-
-import javax.persistence.*;
-import java.io.Serializable;
-
-@Data
-@Entity
-@Table(name = "index_parameter")
-public class IndexParameter implements Serializable {
-
-	@Id
-	@GeneratedValue(strategy = GenerationType.IDENTITY)
-	@Column(name = "id")
-	private Integer id;
-
-	@Column(name = "name")
-	private String name;
-
-	@Column(name = "data")
-	private String data;
-
-	@Column(name = "create_time")
-	private java.util.Date createTime;
-
-	@Column(name = "update_time")
-	private java.util.Date updateTime;
-
-	@Column(name = "check_parameter")
-	private Boolean checkParameter;
-
-}
+//package com.huimv.production.autoGetData.entity;
+//
+//import lombok.Data;
+//
+//import javax.persistence.*;
+//import java.io.Serializable;
+//
+//@Data
+//@Entity
+//@Table(name = "index_parameter")
+//public class IndexParameter implements Serializable {
+//
+//	@Id
+//	@GeneratedValue(strategy = GenerationType.IDENTITY)
+//	@Column(name = "id")
+//	private Integer id;
+//
+//	@Column(name = "name")
+//	private String name;
+//
+//	@Column(name = "data")
+//	private String data;
+//
+//	@Column(name = "create_time")
+//	private java.util.Date createTime;
+//
+//	@Column(name = "update_time")
+//	private java.util.Date updateTime;
+//
+//	@Column(name = "check_parameter")
+//	private Boolean checkParameter;
+//
+//}

+ 36 - 29
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/entity/ProductionGroup.java

@@ -1,29 +1,36 @@
-package com.huimv.production.autoGetData.entity;
-
-import lombok.Data;
-
-import javax.persistence.*;
-import java.io.Serializable;
-
-@Entity
-@Table(name = "index_production_group")
-@Data
-public class ProductionGroup implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    @Column(name = "id", nullable = false)
-    private Integer id;
-
-    @Column(name = "variety")
-    private String variety;
-
-    @Column(name = "frequency")
-    private String frequency;
-
-    @Column(name = "production_type")
-    private String productionType;
-
-}
+//package com.huimv.production.autoGetData.entity;
+//
+//import lombok.Data;
+//
+//import javax.persistence.*;
+//import java.io.Serializable;
+//
+//@Entity
+//@Table(name = "index_production_group")
+//@Data
+//public class ProductionGroup implements Serializable {
+//
+//    private static final long serialVersionUID = 1L;
+//
+//    @Id
+//    @GeneratedValue(strategy = GenerationType.IDENTITY)
+//    @Column(name = "id", nullable = false)
+//    private Integer id;
+//
+//    @Column(name = "variety")
+//    private String variety;
+//
+//    @Column(name = "frequency")
+//    private String frequency;
+//
+//    @Column(name = "production_type")
+//    private String productionType;
+//
+//    @Column(name = "total")
+//    private String total;
+//
+//    @Column(name = "mate_quantity")
+//    private String mateQuantity;
+//
+//
+//}

+ 14 - 14
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/repo/IndexParameterRepository.java

@@ -1,14 +1,14 @@
-package com.huimv.production.autoGetData.repo;
-
-import com.huimv.production.autoGetData.entity.IndexParameter;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
-import org.springframework.data.jpa.repository.Query;
-
-import java.util.List;
-
-public interface IndexParameterRepository extends JpaRepository<IndexParameter, Integer>, JpaSpecificationExecutor<IndexParameter> {
-	
-	@Query(nativeQuery = true ,value = "select * from index_parameter where name like %?1% limit ?2 , ?3")
-    List<IndexParameter> findAll(String name, Integer startPage, Integer pageSize);
-}
+//package com.huimv.production.autoGetData.repo;
+//
+//import com.huimv.production.autoGetData.entity.IndexParameter;
+//import org.springframework.data.jpa.repository.JpaRepository;
+//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+//import org.springframework.data.jpa.repository.Query;
+//
+//import java.util.List;
+//
+//public interface IndexParameterRepository extends JpaRepository<IndexParameter, Integer>, JpaSpecificationExecutor<IndexParameter> {
+//
+//	@Query(nativeQuery = true ,value = "select * from index_parameter where name like %?1% limit ?2 , ?3")
+//    List<IndexParameter> findAll(String name, Integer startPage, Integer pageSize);
+//}

+ 13 - 12
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/repo/ProductionGroupRepo.java

@@ -1,12 +1,13 @@
-package com.huimv.production.autoGetData.repo;
-
-import com.huimv.production.autoGetData.entity.ProductionGroup;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
-
-import java.util.List;
-
-public interface ProductionGroupRepo extends JpaRepository<ProductionGroup, Integer>, JpaSpecificationExecutor<ProductionGroup> {
-
-    List<ProductionGroup> findAllByVariety(String variety);
-}
+//package com.huimv.production.autoGetData.repo;
+//
+//import com.huimv.production.autoGetData.entity.ProductionGroup;
+//import org.springframework.data.jpa.repository.JpaRepository;
+//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+//
+//import java.util.List;
+//
+//public interface ProductionGroupRepo extends JpaRepository<ProductionGroup, Integer>, JpaSpecificationExecutor<ProductionGroup> {
+//    ProductionGroup findByVeriety(String paramString);
+//
+//    List<ProductionGroup> findAllByVariety(String variety);
+//}

+ 2 - 2
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/service/IAutoGetErpData.java

@@ -5,7 +5,7 @@ import java.text.ParseException;
 import java.util.List;
 
 public interface IAutoGetErpData {
-    void getPsy();
+  /*  void getPsy();
 
     void getReEstrusRate();
 
@@ -21,7 +21,7 @@ public interface IAutoGetErpData {
 
     void getAllStorage();
 
-    List findAll();
+    List findAll();*/
 
     void getManyFarmProduce() throws IOException;
 

+ 28 - 16
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/service/impl/AutoGetErpDataImpl.java

@@ -22,6 +22,7 @@ import org.springframework.web.client.RestTemplate;
 
 import java.io.IOException;
 import java.sql.Timestamp;
+import java.text.DecimalFormat;
 import java.text.NumberFormat;
 import java.text.ParseException;
 import java.util.*;
@@ -62,10 +63,10 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
     private HttpTemplete httpClientUtil;
     @Autowired
     private RestTemplate template;
-    @Autowired
+  /*  @Autowired
     private IndexParameterRepository parameterRepository;
     @Autowired
-    private ProductionGroupRepo productionGroupRepo;
+    private ProductionGroupRepo productionGroupRepo;*/
     @Autowired
     private com.huimv.production.autoGetData.utils.DateUtil dateUtil;
     @Autowired
@@ -79,7 +80,7 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
     @Autowired
     private ProdWorkPlanRepo workPlanRepo;
 
-    //PSY
+   /* //PSY
     @Override
     public void getPsy() {
         String token = getToken();
@@ -423,12 +424,15 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
         list.add(map3);
         return list;
     }
-
+*/
     @Autowired
     private ProdProduceRepo produceRepo;
 
     @Override
     public void getManyFarmProduce() throws IOException {
+
+        DecimalFormat df = new DecimalFormat("0.00");
+
         String startDate;
         String endDate;
         DateTime date = DateUtil.date();
@@ -599,7 +603,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity4.setFarmId(farmId);
                         addEntity4.setStockType("avg_farrow_1");
                         addEntity4.setStockName("平均窝产仔猪");
-                        addEntity4.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwczz)));
+//                        addEntity4.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwczz)));
+                        addEntity4.setStockQuantity( df.format(Float.parseFloat(pjwczz)));
 //                    addEntity4.setRate();
                         addEntity4.setMonth(Integer.valueOf(month));
                         addEntity4.setYear(Integer.parseInt(year));
@@ -613,7 +618,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity5.setFarmId(farmId);
                         addEntity5.setStockType("avg_farrow_2");
                         addEntity5.setStockName("平均窝产活仔数");
-                        addEntity5.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwchzs)));
+//                        addEntity5.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwchzs)));
+                        addEntity5.setStockQuantity(df.format(Float.parseFloat(pjwchzs)));
 //                    addEntity5.setRate();
                         addEntity5.setMonth(Integer.valueOf(month));
                         addEntity5.setYear(Integer.parseInt(year));
@@ -627,7 +633,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity6.setFarmId(farmId);
                         addEntity6.setStockType("avg_farrow_3");
                         addEntity6.setStockName("平均窝产正常仔数");
-                        addEntity6.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwczczs)));
+//                        addEntity6.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjwczczs)));
+                        addEntity6.setStockQuantity(df.format(Float.parseFloat(pjwczczs)));
 //                    addEntity6.setRate();
                         addEntity6.setMonth(Integer.valueOf(month));
                         addEntity6.setYear(Integer.parseInt(year));
@@ -641,7 +648,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity7.setFarmId(farmId);
                         addEntity7.setStockType("break_grice");
                         addEntity7.setStockName("窝断奶仔猪数");
-                        addEntity7.setStockQuantity(mathUtil.formatBit(Float.parseFloat(wdnzzs)));
+//                        addEntity7.setStockQuantity(mathUtil.formatBit(Float.parseFloat(wdnzzs)));
+                        addEntity7.setStockQuantity(df.format(Float.parseFloat(wdnzzs)));
 //                    addEntity7.setRate();
                         addEntity7.setMonth(Integer.valueOf(month));
                         addEntity7.setYear(Integer.parseInt(year));
@@ -655,7 +663,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity8.setFarmId(farmId);
                         addEntity8.setStockType("avg_weight");
                         addEntity8.setStockName("平均断奶窝重");
-                        addEntity8.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjdnwz)));
+//                        addEntity8.setStockQuantity(mathUtil.formatBit(Float.parseFloat(pjdnwz)));
+                        addEntity8.setStockQuantity(df.format(Float.parseFloat(pjdnwz)));
 //                    addEntity8.setRate();
                         addEntity8.setMonth(Integer.valueOf(month));
                         addEntity8.setYear(Integer.parseInt(year));
@@ -683,7 +692,8 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         addEntity10.setFarmId(farmId);
                         addEntity10.setStockType("nest_times");
                         addEntity10.setStockName("年产窝数");
-                        addEntity10.setStockQuantity(mathUtil.formatBit(Float.parseFloat(ncws)));
+//                        addEntity10.setStockQuantity(mathUtil.formatBit(Float.parseFloat(ncws)));
+                        addEntity10.setStockQuantity(df.format(Float.parseFloat(ncws)));
 //                    addEntity10.setRate();
                         addEntity10.setMonth(Integer.valueOf(month));
                         addEntity10.setYear(Integer.parseInt(year));
@@ -1042,6 +1052,7 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
 
     @Override
     public void getCostWithManyFarm() throws IOException, ParseException {
+
         //
         String token = getRemoteToken();
         //
@@ -1089,12 +1100,12 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
                         costStatisticsEntity.setFarmName(dataJo.getString("mcmc"));
                         //牧场名称
                         costStatisticsEntity.setFarmId(_getFarmIdByShortName(dataJo.getString("mcmc"), farmNameEntityList));
-                        costStatisticsEntity.setBaseGroup(dataJo.getString("jczq"));
-                        costStatisticsEntity.setPigletGroup(dataJo.getString("byzq"));
-                        costStatisticsEntity.setFattenPig(dataJo.getString("yf"));
-                        costStatisticsEntity.setReplaceGilt(dataJo.getString("hb"));
-                        costStatisticsEntity.setCommonCost(dataJo.getString("gtfy"));
-                        costStatisticsEntity.setTotal(dataJo.getString("hj"));
+                        costStatisticsEntity.setBaseGroup(mathUtil.format1(dataJo.getString("jczq")));
+                        costStatisticsEntity.setPigletGroup(mathUtil.format1(dataJo.getString("byzq")));
+                        costStatisticsEntity.setFattenPig(mathUtil.format1(dataJo.getString("yf")));
+                        costStatisticsEntity.setReplaceGilt(mathUtil.format1(dataJo.getString("hb")));
+                        costStatisticsEntity.setCommonCost(mathUtil.format1(dataJo.getString("gtfy")));
+                        costStatisticsEntity.setTotal(mathUtil.format1(dataJo.getString("hj")));
                         costStatisticsEntity.setProjectName(dataJo.getString("xmmc"));
                         costStatisticsEntity.setAddDate(new java.util.Date());
                         costStatisticsRepo.save(costStatisticsEntity);
@@ -1373,6 +1384,7 @@ public class AutoGetErpDataImpl implements IAutoGetErpData {
 
     @Override
     public void getSales() throws IOException, ParseException {
+
         //
         Map timeoutMap = httpClientUtil.setTimeout(connectTimeout, requestTimeout, socketTimeout);
         //

+ 14 - 0
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/utils/MathUtil.java

@@ -1,7 +1,9 @@
 package com.huimv.production.autoGetData.utils;
 
 import org.springframework.stereotype.Component;
+import org.springframework.util.StringUtils;
 
+import java.text.DecimalFormat;
 import java.text.NumberFormat;
 
 /**
@@ -65,4 +67,16 @@ public class MathUtil {
         return numberFormat.format((float)  num/ (float)total* 100);
     }
 
+    public String format1(String num) {
+        // 创建一个数值格式化对象
+        DecimalFormat df=new DecimalFormat("0.00");
+        // 设置精确到小数点后2位
+        if (StringUtils.isEmpty(num)){
+            return "0.00";
+        }
+
+        //所占百分比
+        return df.format(Double.valueOf(num));
+    }
+
 }

+ 21 - 0
huimv-hy-production/huimv.hy.autoGetData/src/main/java/com/huimv/production/autoGetData/utils/MyDateUtils.java

@@ -0,0 +1,21 @@
+package com.huimv.production.autoGetData.utils;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import java.util.Date;
+
+public class MyDateUtils {
+  public static String getStartTime() {
+    DateTime date = DateUtil.date();
+    String startDate = (DateUtil.beginOfMonth((Date)date) + "").substring(0, 10);
+    return startDate;
+//    return "2021-07-01";
+  }
+  
+  public static String getEndTime() {
+    DateTime date = DateUtil.date();
+    String endDate = (date + "").substring(0, 10);
+//    return "2021-07-31";
+    return endDate;
+  }
+}

+ 45 - 3
huimv-hy-production/huimv.hy.autoGetData/src/main/resources/application-dev.yml

@@ -1,13 +1,17 @@
 server:
-  port: 9105
+  port: 9115
 spring:
   application:
     name: huimv-hy-autoGetData
 
   datasource:
-    url: jdbc:mysql://192.168.1.7:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_hzc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_wjj?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://47.96.4.54:10052/huimv_farm_v2?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://115.238.57.190:3309/huimv-farm-center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    #    url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
     username: root
-    password: hm123456
+    password: root
     driver-class-name: com.mysql.cj.jdbc.Driver
   jpa:
     show-sql: true
@@ -29,3 +33,41 @@ spring:
 #        max-idle: 10
 #        min-idle: 0
 #    timeout: 5000
+
+#server:
+#  port: 9110
+#spring:
+#  application:
+#    name: huimv-hy-autoGetData
+#
+#  datasource:
+##    url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    #    url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#        url: jdbc:mysql://192.168.1.7:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    username: root
+#    password: hm123456
+#    driver-class-name: com.mysql.cj.jdbc.Driver
+#  jpa:
+#    properties:
+#      hibernate:
+#        enable_lazy_load_no_trans: true
+#    show-sql: true
+#    database: mysql
+#    hibernate:
+#      ddl-auto: update
+#    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+#    open-in-view: true
+
+    #  redis:
+#    database: 0
+#    host: 119.3.84.55
+#    port: 6379
+#    password: hm123456
+#    jedis:
+#      pool:
+#        max-active: 20
+#        max-wait: -1
+#        max-idle: 10
+#        min-idle: 0
+#    timeout: 5000
+

+ 4 - 2
huimv-hy-production/huimv.hy.autoGetData/src/main/resources/application-v2.yml

@@ -5,9 +5,11 @@ spring:
     name: huimv-hy-autoGetData
 
   datasource:
-    url: jdbc:mysql://192.168.1.7:3306/huimv_farm_v2?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://192.168.1.7:3306/huimv_farm_v2?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://47.96.4.54:10052/huimv-farm-center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://115.238.57.190:3309/huimv-farm-center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
     username: root
-    password: hm123456
+    password: root
     driver-class-name: com.mysql.cj.jdbc.Driver
   jpa:
     show-sql: true