commit for pull
This commit is contained in:
@@ -160,6 +160,15 @@ public class KukaJoinThread implements ApplicationRunner {
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
public String getErrorBoxId(String sapMaterial){
|
||||
|
||||
String nowTime = DateUtil.format(new Date(), "yyMMdd");
|
||||
String mixBoxError = "001";
|
||||
String res = "Err"+sapMaterial+nowTime+mixBoxError;
|
||||
return res;
|
||||
}
|
||||
|
||||
public String removeKG(String str){
|
||||
return str.substring(0,17);
|
||||
}
|
||||
@@ -302,9 +311,6 @@ public class KukaJoinThread implements ApplicationRunner {
|
||||
}
|
||||
},1,1, TimeUnit.SECONDS);
|
||||
|
||||
|
||||
|
||||
|
||||
kukaStep2.scheduleAtFixedRate(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -351,7 +357,7 @@ public class KukaJoinThread implements ApplicationRunner {
|
||||
boxId = getBoxId(bySubId.getSapMaterial());
|
||||
}else {
|
||||
//正常情况
|
||||
boxId = getBoxId(bySubId.getSapMaterial());
|
||||
boxId = getErrorBoxId(bySubId.getSapMaterial());
|
||||
}
|
||||
|
||||
|
||||
@@ -367,6 +373,7 @@ public class KukaJoinThread implements ApplicationRunner {
|
||||
//4. box信息录入到box表
|
||||
WoPackagingBox woPackagingBox = new WoPackagingBox();
|
||||
woPackagingBox.setBoxNo(boxId);
|
||||
woPackagingBox.setSubstrateQuantity(listSize);
|
||||
woPackagingBox.setPackagingTime(LocalDateTime.now());
|
||||
woPackagingBox.setPowerLevel(bySubId.getPowerLevel());
|
||||
woPackagingBox.setLineBody(bySubId.getLineBody());
|
||||
@@ -399,7 +406,6 @@ public class KukaJoinThread implements ApplicationRunner {
|
||||
}
|
||||
},1,1, TimeUnit.SECONDS);
|
||||
|
||||
|
||||
kukaStep3.scheduleAtFixedRate(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user