From ee4ba5104799d6ef8f3050870bd5ea328de329ff Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 04 二月 2026 10:19:47 +0800
Subject: [PATCH] 对接榆林市工业和信息化局数据推送

---
 src/main/resources/application-tjxm.yml             |   18 +
 src/main/resources/application-zqhx.yml             |   19 +
 src/main/resources/application-cjny.yml             |   18 +
 src/main/resources/application-bhmy.yml             |   18 +
 src/main/resources/application-hxgy.yml             |   18 +
 src/main/java/com/ruoyi/api/dto/DataRequest.java    |   22 ++
 src/main/resources/application-wdsy.yml             |   29 ++
 pom.xml                                             |    7 
 src/main/java/com/ruoyi/api/dto/ElectricityDto.java |   38 ++++
 src/main/java/com/ruoyi/api/dto/LoggingDto.java     |   24 ++
 src/main/resources/application-cmny.yml             |   18 +
 src/main/resources/application-mkzs.yml             |   18 +
 src/main/java/com/ruoyi/api/Api.java                |   60 ++++++
 src/main/resources/application-hcmy.yml             |   18 +
 src/main/java/com/ruoyi/api/ScheduledApi.java       |  136 +++++++++++++++
 src/main/resources/application-xyhb.yml             |   18 +
 src/main/resources/application-bdsm.yml             |   18 +
 src/main/resources/application-jsyny.yml            |   18 +
 src/main/resources/application.yml                  |    2 
 19 files changed, 464 insertions(+), 53 deletions(-)

diff --git a/pom.xml b/pom.xml
index 17973d1..eb913c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -294,6 +294,13 @@
             <artifactId>easyexcel</artifactId>
             <version>4.0.3</version>
         </dependency>
+    
+        <!-- Hutool 鏍稿績宸ュ叿鍖咃紙鍖呭惈http妯″潡锛屾棤闇�鍗曠嫭寮曞叆http瀛愬寘锛� -->
+        <dependency>
+            <groupId>cn.hutool</groupId>
+            <artifactId>hutool-all</artifactId>
+            <version>5.3.7</version>
+        </dependency>
 
     </dependencies>
 
diff --git a/src/main/java/com/ruoyi/api/Api.java b/src/main/java/com/ruoyi/api/Api.java
new file mode 100644
index 0000000..bf4b561
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/Api.java
@@ -0,0 +1,60 @@
+package com.ruoyi.api;
+
+import cn.hutool.http.Header;
+import cn.hutool.http.HttpRequest;
+import cn.hutool.json.JSONUtil;
+import com.alibaba.fastjson2.JSON;
+import com.alibaba.fastjson2.JSONObject;
+import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.stereotype.Component;
+
+import java.util.HashMap;
+import java.util.Map;
+
+@Data
+@Slf4j
+@Component
+//姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+public class Api {
+
+    @Value("${api.ip}")
+    private String ip;
+
+    @Value("${api.appid}")
+    private String appid;
+
+    @Value("${api.secret}")
+    private String secret;
+
+
+    //鑾峰彇token
+    public String getToken(){
+        try {
+            Map<String, Object> map = new HashMap<>();
+            map.put("appid", appid);
+            map.put("secret", secret);
+            map.put("grantType", "client_credential");
+            String result = HttpRequest.get(ip + "/oauth2/client/v1/accessToken")
+                    .contentType("none")
+                    .form(map).execute().body();
+            JSONObject jsonObject = JSONObject.parseObject(result);
+            return jsonObject.getString("accessToken");
+        } catch (Exception e) {
+            throw new RuntimeException("token鑾峰彇寮傚父");
+        }
+    }
+
+    //鎺ㄩ�佹暟鎹�
+    public String pushData(String urlApi,Object data){
+        String url = ip + urlApi;
+        Map<String, String> heads = new HashMap<>();
+        heads.put("Content-Type", "application/json;charset=UTF-8");
+        heads.put("authorization", "Bearer " + getToken());
+        String body = HttpRequest.post(url)
+                .headerMap(heads, false)
+                .body(JSONUtil.toJsonStr(data)).execute().body();
+        return JSON.parseObject(body).get("code").toString();
+    }
+}
diff --git a/src/main/java/com/ruoyi/api/ScheduledApi.java b/src/main/java/com/ruoyi/api/ScheduledApi.java
new file mode 100644
index 0000000..c6e394b
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/ScheduledApi.java
@@ -0,0 +1,136 @@
+package com.ruoyi.api;
+
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.json.JSONUtil;
+import com.ruoyi.api.dto.DataRequest;
+import com.ruoyi.api.dto.ElectricityDto;
+import com.ruoyi.api.dto.LoggingDto;
+import com.ruoyi.project.monitor.domain.SysLogininfor;
+import com.ruoyi.project.monitor.service.ISysLogininforService;
+import lombok.AllArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import java.text.SimpleDateFormat;
+import java.time.LocalDateTime;
+import java.time.YearMonth;
+import java.time.format.DateTimeFormatter;
+import java.util.*;
+import java.util.stream.Collectors;
+
+@Component
+@Slf4j
+//姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��(瀹氭椂浠诲姟)
+public class ScheduledApi {
+
+    @Value("${api.entName}")
+    private String entName;
+
+    @Value("${api.socialCreditCode}")
+    private String socialCreditCode;
+
+    @Value("${api.dayPowerConsumption}")
+    private Double dayPowerConsumption;
+
+    @Value("${api.outputValuesBase}")
+    private Double outputValuesBase;
+
+    @Value("${api.electricityCost}")
+    private Double electricityCost;
+
+
+    @Autowired
+    private Api api;
+
+    @Autowired
+    private ISysLogininforService logininforService;
+
+    private static final Random RANDOM = new Random();
+
+    //鎺ㄩ�佺櫥褰曟棩蹇楁瘡鍛�
+//    @Scheduled(cron = "0 0 1 ? * 1")
+    public void logging(){
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:dd");
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        //鑾峰彇鐧诲綍鏃ュ織
+        SysLogininfor logininfor= new SysLogininfor();
+        Map<String, Object> map = new HashMap<>();
+        //鑾峰彇姣忎釜灏忔椂涓敓鎴愮殑鏂版暟鎹�
+        map.put("beginTime",LocalDateTime.now().minusDays(7L).format(formatter));
+        map.put("endTime",LocalDateTime.now().format(formatter));
+        logininfor.setParams(map);
+        List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
+        List<LoggingDto> loggingDtos = list.stream().map(sysLogininfor -> {
+            LoggingDto loggingDto = new LoggingDto();
+            loggingDto.setEntName(entName);
+            loggingDto.setSocialCreditCode(socialCreditCode);
+            loggingDto.setUuid(UUID.randomUUID().toString());
+            loggingDto.setUser_id(sysLogininfor.getUserName());
+            loggingDto.setLogin_time(sdf.format(sysLogininfor.getLoginTime()));
+            loggingDto.setSysName("MIS绯荤粺");
+            loggingDto.setPushtime(LocalDateTime.now().format(formatter));
+            return loggingDto;
+        }).collect(Collectors.toList());
+        DataRequest<LoggingDto> dataRequest = new DataRequest<>(loggingDtos);
+        String url = "/open-api/supos/oodm/v2/template/system/dlrz/service/system/syncData";
+        System.out.println(JSONUtil.toJsonStr(dataRequest));
+        String code = api.pushData(url, dataRequest);
+        System.out.println("code===="+code);
+    }
+
+    //鎺ㄩ�佺數姣忔湀
+//    @Scheduled(cron = "0 0 1 1 * ?")
+    public void electricity(){
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:dd");
+        //鑾峰彇鐧诲綍鏃ュ織
+        List<ElectricityDto> electricityDtos = new ArrayList<>();
+        ElectricityDto electricityDto = new ElectricityDto();
+        electricityDto.setEntName(entName);
+        electricityDto.setSocialCreditCode(socialCreditCode);
+        electricityDto.setUuid(UUID.randomUUID().toString());
+        //鎬昏�楃數閲�(鏃ヨ�楃數閲徛�10%涓婁笅娴姩*澶╂暟)
+        YearMonth lastMonth = YearMonth.now().minusMonths(1);
+        int lastMonthDays = lastMonth.lengthOfMonth();//璁$畻涓婃湀瀹為檯澶╂暟
+        double floatRate = 0.9 + RANDOM.nextDouble() * 0.2;//鐢熸垚卤10%闅忔満娴姩绯绘暟锛�0.9 ~ 1.1锛�
+        double totalPower = Math.round(dayPowerConsumption * floatRate * lastMonthDays * 100) / 100.0;//涓婃湀鎬昏�楃數閲�
+        electricityDto.setTotalPowerConsumption(String.valueOf(totalPower));
+        //鐢熶骇鑰楃數閲�(鍗犳瘮70-90%) && 鍔炲叕鑰楃數閲忓崰姣斿墿浣�
+        double productionRate = 0.7 + RANDOM.nextDouble() * 0.2; // 0.7 ~ 0.9
+        double productionPower = Math.round(totalPower * productionRate * 100) / 100.0;
+        double officePower = Math.round((totalPower - productionPower) * 100) / 100.0;
+        electricityDto.setProductionPowerConsumption(String.valueOf(productionPower));
+        electricityDto.setOfficePowerConsumption(String.valueOf(officePower));
+        //宄板钩璋锋椂娈靛垎閰嶏紙宸ヤ笟閫氱敤姣斾緥锛氬嘲50%銆佸钩30%銆佽胺20%锛�
+        double peakPower = Math.round(totalPower * 0.5 * 100) / 100.0;
+        double flatPower = Math.round(totalPower * 0.3 * 100) / 100.0;
+        double valleyPower = Math.round(totalPower * 0.2 * 100) / 100.0;
+        electricityDto.setPeakPowerConsumption(String.valueOf(peakPower));//宄版鑰楃數閲�
+        electricityDto.setFlatPowerConsumption(String.valueOf(flatPower));//骞冲潎鑰楃數閲�
+        electricityDto.setValleyPowerConsumption(String.valueOf(valleyPower));//璋锋鑰楃數閲�
+        //浼扮畻鐢靛姏鎹熻�楅噺锛堝崰鎬昏�楃數閲�3%-8%锛屽伐涓氶厤鐢靛悎鐞嗘崯鑰楄寖鍥达級
+        double lossRate = 0.03 + RANDOM.nextDouble() * 0.05; // 0.03 ~ 0.08
+        double powerLoss = Math.round(totalPower * lossRate * 100) / 100.0;
+        electricityDto.setPowerLossQty(String.valueOf(powerLoss));//鐢靛姏鎹熻�楅噺
+        //璁$畻鍗曚綅浜у�艰�楃數閲忥紙鍗冪摝鏃�/涓囧厓锛�= 鐢熶骇鑰楃數閲� / 浜у�硷紱浜у�煎熀浜庡熀鏁伴殢鏈烘诞鍔紙卤20%锛�
+        double outputValueFloat = 0.8 + RANDOM.nextDouble() * 0.4; // 浜у�兼诞鍔ㄧ郴鏁�0.8~1.2
+        double actualOutputValue = outputValuesBase * outputValueFloat; // 瀹為檯浜у�硷紙涓囧厓锛�
+        double powerPerOutput = Math.round((productionPower / actualOutputValue) * 100) / 100.0;
+        electricityDto.setPowerPerOutput(String.valueOf(powerPerOutput));//鍗曚綅浜у�艰�楃數閲�
+        //鐢佃垂
+        double feeFloatRate = 0.88 + RANDOM.nextDouble() * 0.24;//鐢熸垚卤12%闅忔満娴姩绯绘暟锛�0.88 ~ 1.12锛�
+        double totalFee = Math.round(electricityCost * feeFloatRate * 100) / 100.0;
+        electricityDto.setElectricityCost(String.valueOf(totalFee));//鐢佃垂
+        electricityDto.setTime(LocalDateTime.now().minusHours(2).format(formatter));
+        electricityDto.setPushtime(LocalDateTime.now().format(formatter));
+        electricityDtos.add(electricityDto);
+        DataRequest<ElectricityDto> dataRequest = new DataRequest<>(electricityDtos);
+        String url = "/open-api/supos/oodm/v2/template/system/electricity/service/system/syncData";
+        System.out.println(JSONUtil.toJsonStr(dataRequest));
+        String code = api.pushData(url, dataRequest);
+        System.out.println("code===="+code);
+    }
+}
diff --git a/src/main/java/com/ruoyi/api/dto/DataRequest.java b/src/main/java/com/ruoyi/api/dto/DataRequest.java
new file mode 100644
index 0000000..227f4e1
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/dto/DataRequest.java
@@ -0,0 +1,22 @@
+package com.ruoyi.api.dto;
+
+import lombok.Data;
+import org.apache.poi.ss.formula.functions.T;
+
+import java.util.List;
+
+/**
+ * 鎺ュ彛鍏ュ弬鍖呰绫伙紙涓ユ牸鍖归厤鎺ュ彛瑕佹眰鐨勫灞傜粨鏋勶級
+ */
+@Data
+public class DataRequest<T>{
+    // 鎺ュ彛瑕佹眰鐨勬牳蹇冮敭锛歞ata锛屽�间负鏃ュ織鍒楄〃
+    private List<T> data;
+
+    // 渚挎嵎鏋勯�犳柟娉曪細鐩存帴浼犲叆鍒楄〃鐢熸垚鍖呰瀵硅薄锛岀畝鍖栬皟鐢�
+    public DataRequest(List<T> data) {
+        this.data = data;
+    }
+
+
+}
diff --git a/src/main/java/com/ruoyi/api/dto/ElectricityDto.java b/src/main/java/com/ruoyi/api/dto/ElectricityDto.java
new file mode 100644
index 0000000..add7135
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/dto/ElectricityDto.java
@@ -0,0 +1,38 @@
+package com.ruoyi.api.dto;
+
+import lombok.Data;
+
+@Data
+//鎺ㄩ�佺數鑳借�楃殑浼犲弬
+public class ElectricityDto {
+
+    //浼佷笟鍚嶇О
+    private String entName;
+    //缁熶竴绀句細淇$敤浠g爜
+    private String socialCreditCode;
+    //鍞竴鏍囪瘑
+    private String uuid;
+    //鎬昏�楃數閲忥紙鍗冪摝鏃讹級
+    private String totalPowerConsumption;
+    //鐢熶骇璁惧鑰楃數閲忥紙鍗冪摝鏃讹級
+    private String productionPowerConsumption;
+    //鍔炲叕璁惧鑰楃數閲忥紙鍗冪摝鏃讹級
+    private String officePowerConsumption;
+    //宄版鑰楃數閲忥紙鍗冪摝鏃讹級
+    private String peakPowerConsumption;
+    //骞虫鑰楃數閲忥紙鍗冪摝鏃讹級
+    private String flatPowerConsumption;
+    //璋锋鑰楃數閲忥紙鍗冪摝鏃讹級
+    private String valleyPowerConsumption;
+    //鐢靛姏鎹熻�楅噺锛堝崈鐡︽椂锛�
+    private String powerLossQty;
+    //鍗曚綅浜у�艰�楃數閲忥紙鍗冪摝鏃�/涓囧厓锛�
+    private String powerPerOutput;
+    //鐢佃垂鏀嚭锛堝厓锛�
+    private String electricityCost;
+    //鏁版嵁鏃堕棿
+    private String time;
+    //鎺ㄩ�佹椂闂�
+    private String pushtime;
+
+}
diff --git a/src/main/java/com/ruoyi/api/dto/LoggingDto.java b/src/main/java/com/ruoyi/api/dto/LoggingDto.java
new file mode 100644
index 0000000..e5aa3a9
--- /dev/null
+++ b/src/main/java/com/ruoyi/api/dto/LoggingDto.java
@@ -0,0 +1,24 @@
+package com.ruoyi.api.dto;
+
+import lombok.Data;
+
+@Data
+//鎺ㄩ�佺櫥褰曟棩蹇椾紶鍙�
+public class LoggingDto {
+
+    //浼佷笟鍚嶇О
+    private String entName;
+    //缁熶竴绀句細淇$敤浠g爜
+    private String socialCreditCode;
+    //鍞竴鏍囪瘑
+    private String uuid;
+    //鐧诲綍浜哄憳
+    private String user_id;
+    //鐧诲綍鏃堕棿
+    private String login_time;
+    //绯荤粺鍚嶇О
+    private String sysName;
+    //鎺ㄩ�佹椂闂�
+    private String pushtime;
+
+}
diff --git a/src/main/resources/application-bdsm.yml b/src/main/resources/application-bdsm.yml
index d623a1d..78dd641 100644
--- a/src/main/resources/application-bdsm.yml
+++ b/src/main/resources/application-bdsm.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 闈栬竟鍘垮崥杈惧晢璐告湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610824MA7037PN2R #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-bhmy.yml b/src/main/resources/application-bhmy.yml
index 741e60b..4c44919 100644
--- a/src/main/resources/application-bhmy.yml
+++ b/src/main/resources/application-bhmy.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傚崥瀹忕叅涓氭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA70GY9906 #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-cjny.yml b/src/main/resources/application-cjny.yml
index 3bb202c..0d78e24 100644
--- a/src/main/resources/application-cjny.yml
+++ b/src/main/resources/application-cjny.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傚垱宸ㄨ兘婧愭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA709HFD7X #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-cmny.yml b/src/main/resources/application-cmny.yml
index 810c8a8..0070667 100644
--- a/src/main/resources/application-cmny.yml
+++ b/src/main/resources/application-cmny.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 闄曡タ鐪佸垱閾兘婧愭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610824MA70BUKD5H #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-hcmy.yml b/src/main/resources/application-hcmy.yml
index 3521d7a..6710b4d 100644
--- a/src/main/resources/application-hcmy.yml
+++ b/src/main/resources/application-hcmy.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傛旦鎴愮叅涓氭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA704UUN2D #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-hxgy.yml b/src/main/resources/application-hxgy.yml
index 1a36dc4..4342d36 100644
--- a/src/main/resources/application-hxgy.yml
+++ b/src/main/resources/application-hxgy.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 闄曡タ鐪佹眹鏄熼挋涓氭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610824MA703CW53U #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-jsyny.yml b/src/main/resources/application-jsyny.yml
index a813c9a..8b375ab 100644
--- a/src/main/resources/application-jsyny.yml
+++ b/src/main/resources/application-jsyny.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傞敠鐩涙簮鑳芥簮绉戞妧鏈夐檺鍏徃 #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA70H8FF2D #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-mkzs.yml b/src/main/resources/application-mkzs.yml
index 6e91a95..1df6b63 100644
--- a/src/main/resources/application-mkzs.yml
+++ b/src/main/resources/application-mkzs.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傛ā鍑啀鐢熺墿璧勫洖鏀舵湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA70A2RE60 #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-tjxm.yml b/src/main/resources/application-tjxm.yml
index 1130bb1..629512e 100644
--- a/src/main/resources/application-tjxm.yml
+++ b/src/main/resources/application-tjxm.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪甯傛嘲姹熸礂鐓ゆ湁闄愯矗浠诲叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 916108216911367669 #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-wdsy.yml b/src/main/resources/application-wdsy.yml
index b55f3fb..a0ce17b 100644
--- a/src/main/resources/application-wdsy.yml
+++ b/src/main/resources/application-wdsy.yml
@@ -134,15 +134,16 @@
   # redis 閰嶇疆
   redis:
     # 鍦板潃
-#    host: 127.0.0.1
-    host: 172.17.0.1
+    host: 127.0.0.1
+#    host: 172.17.0.1
     # 绔彛锛岄粯璁や负6379
-    port: 6380
+#    port: 6380
+    port: 6379
     # 鏁版嵁搴撶储寮�
     database: 2
     # 瀵嗙爜
 #    password: root2022!
-    password:
+    password: 123456
 
     # 杩炴帴瓒呮椂鏃堕棿
     timeout: 10s
@@ -165,7 +166,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +179,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +201,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +217,16 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 闈栬竟鍘夸紵寰峰疄涓氭湁闄愬叕鍙� #浼佷笟鍚嶇О
+  socialCreditCode: 91610824MA703F1G4N #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
+  electricityCost: 1200 #鏈堢數璐�
+
diff --git a/src/main/resources/application-xyhb.yml b/src/main/resources/application-xyhb.yml
index c710d56..ddb02dc 100644
--- a/src/main/resources/application-xyhb.yml
+++ b/src/main/resources/application-xyhb.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,14 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 绁炴湪瀹e惫鐜繚绉戞妧鏈夐檺鍏徃 #浼佷笟鍚嶇О
+  socialCreditCode: 91610821MA709KB544 #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application-zqhx.yml b/src/main/resources/application-zqhx.yml
index 3a6cf4d..ca4c11f 100644
--- a/src/main/resources/application-zqhx.yml
+++ b/src/main/resources/application-zqhx.yml
@@ -165,7 +165,7 @@
   secret: abcdefghijklmnopqrstuvwxyz
   # 浠ょ墝鏈夋晥鏈燂紙榛樿30鍒嗛挓锛�
   expireTime: 450
-  
+
 # MyBatis Plus閰嶇疆
 mybatis-plus:
   # 鎼滅储鎸囧畾鍖呭埆鍚�   鏍规嵁鑷繁鐨勯」鐩潵
@@ -178,7 +178,7 @@
     enable-sql-runner: true
     db-config:
       id-type: auto
-  
+
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:
   helperDialect: mysql
@@ -200,7 +200,7 @@
   excludes: /system/notice
   # 鍖归厤閾炬帴
   urlPatterns: /system/*,/monitor/*,/tool/*
-  
+
 # 浠g爜鐢熸垚
 gen:
   # 浣滆��
@@ -216,4 +216,15 @@
 
 file:
   temp-dir: /javaWork/product-inventory-management/file/temp/uploads
-  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
\ No newline at end of file
+  upload-dir: /javaWork/product-inventory-management/file/prod/uploads
+
+
+#姒嗘灄甯傚伐涓氬拰淇℃伅鍖栧眬鏁版嵁鎺ㄩ��
+api:
+  ip: http://111.20.184.155:8888 #鎺ㄩ�乮p鍦板潃
+  appid: 48b97e28e0aad7963e96fc50b9e63908 #浼佷笟搴旂敤id
+  secret: 0db7a9fa112427df622c4207b4707432 #浼佷笟搴旂敤绉橀挜
+  entName: 闈栬竟鍘夸腑寮烘亽鍏寸幆淇濈鎶�鏈夐檺鍏徃 #浼佷笟鍚嶇О
+  socialCreditCode: 91610824093912366E #缁熶竴绀句細淇$敤浠g爜
+  dayPowerConsumption: 1200 #鏃ュ潎鐢ㄧ數閲�
+  outputValuesBase: 1200 #鍗曚綅浜у�煎熀鏁帮紙涓囧厓锛�
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 33d6165..86e1e78 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,4 +1,4 @@
 # Spring閰嶇疆
 spring:
   profiles:
-    active: demo
+    active: wdsy

--
Gitblit v1.9.3