This commit is contained in:
psh
2024-03-06 18:01:08 +08:00
parent 49f824a349
commit f5f01b92c7

View File

@@ -160,15 +160,16 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
if (move !=last_move||tier!=last_tier){
resultSucess=false;
}
if (tier != last_tier&&move!=0 && this.getDeviceCode().endsWith("0101")||this.getDeviceCode().endsWith("0201") &&!resultSucess) {
//高度数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState(String.valueOf(tier));
request.setDevice_code(this.getDeviceCode());
request.setType("2");
acsToWmsService.notify(request);
resultSucess=true;
}else if (move ==1 &&
// if (tier != last_tier&&move!=0 && this.getDeviceCode().endsWith("0101")||this.getDeviceCode().endsWith("0201") &&!resultSucess) {
// //高度数量变更后通知lms
// FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
// request.setState(String.valueOf(tier));
// request.setDevice_code(this.getDeviceCode());
// request.setType("2");
// acsToWmsService.notify(request);
// resultSucess=true;
// }else
if (move ==1 &&
(this.getDeviceCode().startsWith("ZJBDJW"))&&!resultSucess) {
//点位数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();