From 867aef5f50ac27ff99638a60e31b25db3074518b Mon Sep 17 00:00:00 2001 From: caixiang <939387484@qq.com> Date: Tue, 7 Mar 2023 09:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=9F=E7=8E=87=E6=A1=A3?= =?UTF-8?q?=E4=BD=8D=20=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 6 +- ym-gateway/src/main/resources/application.yml | 4 +- .../com/cnbm/dispatch/KukaJoinThread.java | 496 ++++++++++-------- .../com/cnbm/packing/vo/PowerReportVo.java | 6 +- 4 files changed, 272 insertions(+), 240 deletions(-) diff --git a/ym-gateway/src/main/resources/application-dev.yml b/ym-gateway/src/main/resources/application-dev.yml index e05b340..cc956c6 100644 --- a/ym-gateway/src/main/resources/application-dev.yml +++ b/ym-gateway/src/main/resources/application-dev.yml @@ -7,9 +7,9 @@ spring: # password: 1qazxsw2 #MySQL-remote -# url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true -# username: root -# password: 1qaz@WSX3edc$RFV + url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: 1qaz@WSX3edc$RFV # #Oracle # driver-class-name: oracle.jdbc.OracleDriver # url: jdbc:oracle:thin:@192.168.10.10:1521:xe diff --git a/ym-gateway/src/main/resources/application.yml b/ym-gateway/src/main/resources/application.yml index 5285fa8..a8f83a3 100644 --- a/ym-gateway/src/main/resources/application.yml +++ b/ym-gateway/src/main/resources/application.yml @@ -33,8 +33,8 @@ spring: enabled: true redis: database: 6 - #host: 10.0.1.249 - host: 192.168.0.102 + host: 10.0.1.249 + #host: 192.168.0.102 port: 6379 password: '' # 密码(默认为空) timeout: 6000ms # 连接超时时长(毫秒) diff --git a/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java b/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java index 718e1dd..ce5f864 100644 --- a/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java +++ b/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java @@ -152,7 +152,7 @@ public class KukaJoinThread implements ApplicationRunner { public String getBoxId(String sapMaterial){ - Integer todayBoxNum = service.getTodayBoxNum(); + Integer todayBoxNum = service.getTodayBoxNum()+1; String nowTime = DateUtil.format(new Date(), "yyMMdd"); todayBoxNum+=500; @@ -174,240 +174,272 @@ public class KukaJoinThread implements ApplicationRunner { return f1.format(a); } + //return true 出现混档了,return false 没有出现混档 + private boolean isMixLevel(String[] subIds){ + String correctLevel = substrateServiceBiz.getBySubId(subIds[0]).getPowerLevel(); + String errMsg = "以下基板ID出现混档:"; + boolean res = false; + for(int i=1;i powerReports;