From 99936813d924346e12bf1299a7bdcdbe485ea375 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <xltys1995>
Date: 星期五, 28 八月 2020 12:44:43 +0800
Subject: [PATCH] #v2.0

---
 src/main/resources/application.yml |  135 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 121 insertions(+), 14 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index b30c196..c6631fa 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,21 +1,17 @@
 server:
   port: 9090
+  servlet:
+    context-path: /@pom.build.finalName@
 
 spring:
   application:
-#    name: @pom.artifactId@
-    name:
+    name: @pom.build.finalName@
   datasource:
-    # mysql
-    driver-class-name: com.mysql.jdbc.Driver
-    url: jdbc:mysql://127.0.0.1:3306/zy_wcs?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
-    username: root
-    password: xltys1995
     # sql-server
-#    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
-#    url: jdbc:sqlserver://192.168.1.108:1433;databasename=cool
-#    username: sa
-#    password: sa@123
+    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+    url: jdbc:sqlserver://127.0.0.1:1433;databasename=jsasrs
+    username: sa
+    password: sa@123
   mvc:
     static-path-pattern: /**
   redis:
@@ -26,8 +22,8 @@
 
 mybatis-plus:
   mapper-locations: classpath:mapper/*.xml
-  global-config:
-    field-strategy: 0
+#  global-config:
+#    field-strategy: 0
 
 logging:
   path: /stock/out/logs
@@ -36,4 +32,115 @@
   pwd: xltys1995
 
 swagger:
-  enable: false
\ No newline at end of file
+  enable: false
+
+# 涓嬩綅鏈洪厤缃�
+wcs-slave:
+  # 鍫嗗灈鏈�1
+  crn[0]:
+    id: 1
+    ip: 192.168.3.39
+    port: 5015
+    rack: 0
+    slot: 0
+    # 鍋忕Щ閲忥紝褰撳爢鍨涙満绔欑偣鍒楀彿=1鏃讹紝鍋忕Щ閲�=0
+    offset: 1
+    # 鍫嗗灈鏈哄叆搴撶珯鐐�
+    crnInStn[0]:
+      devpPlcId: ${wcs-slave.devp[0].id}
+      staNo: 4
+      row: 2
+      bay: 1
+      lev: 1
+    # 鍫嗗灈鏈哄嚭搴撶珯鐐�
+    crnOutStn[0]:
+      devpPlcId: ${wcs-slave.devp[0].id}
+      staNo: 2
+      row: 1
+      bay: 1
+      lev: 1
+    # 鍫嗗灈鏈�2
+    #crn[1]:
+      id: 1
+      ip: 192.168.3.40
+      port: 5015
+      rack: 0
+      slot: 0
+      # 鍋忕Щ閲忥紝褰撳爢鍨涙満绔欑偣鍒楀彿=1鏃讹紝鍋忕Щ閲�=0
+      offset: 1
+      # 鍫嗗灈鏈哄叆搴撶珯鐐�
+      crnInStn[0]:
+        devpPlcId: ${wcs-slave.devp[0].id}
+        staNo: 8
+        row: 2
+        bay: 1
+        lev: 1
+      # 鍫嗗灈鏈哄嚭搴撶珯鐐�
+      crnOutStn[0]:
+        devpPlcId: ${wcs-slave.devp[0].id}
+        staNo: 6
+        row: 1
+        bay: 1
+        lev: 1
+  # 杈撻�佺嚎
+  devp[0]:
+    id: 1
+    ip: 192.168.3.65
+    port: 6000
+    rack: 0
+    slot: 1
+    # 鍏ュ簱鍙�1
+    inSta[0]:
+      staNo: 3
+      barcode: ${wcs-slave.barcode[0].id}
+    # 鍏ュ簱鍙�2
+    inSta[1]:
+      staNo: 7
+      barcode: ${wcs-slave.barcode[0].id}
+    # 绌烘澘鍏ュ簱鍙�1
+    emptyInSta[0]:
+      staNo: 3
+    # 绌烘澘鍏ュ簱鍙�2
+    emptyInSta[1]:
+      staNo: 7
+    # 鍑哄簱鍙�1
+    outSta[0]:
+      staNo: 1
+    # 鍑哄簱鍙�2
+    outSta[1]:
+      staNo: 5
+    # 鎷f枡鍏ュ簱鍙�
+    pickSta[0]:
+      staNo: 2
+  # 鏉$爜鎵弿浠�
+  barcode[0]:
+    id: 1
+    ip: 192.168.2.150
+    port: 51236
+  # LED
+  led[0]:
+    id: 1
+    ip: 192.168.1.1
+    port: 8888
+  # 纾呯О
+  scale[0]:
+    id: 1
+    ip: 192.168.1.1
+    port: 8888
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

--
Gitblit v1.9.1