diff --git a/nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java b/nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java index 212fa5e..2f71e50 100644 --- a/nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java +++ b/nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java @@ -113,8 +113,9 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im pause = this.itemProtocol.getPause(); clear = this.itemProtocol.getClear(); + //当前工单上料数量 + order_feeding_qty = this.itemProtocol.getOrder_feeding_qty(); //当前工单明细号上料数量 - order_feeding_qty = this.itemProtocol.getDetail_feeding_qty(); detail_feeding_qty = this.itemProtocol.getDetail_feeding_qty(); //当前工单明细号上料合格数量 detail_feeding_qualified_qty = this.itemProtocol.getDetail_feeding_qualified_qty(); @@ -471,7 +472,7 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im //下发激光刻字信息 //判断下发刻字成功 if(!send_letter_flag){ - send_letter_flag = produceshiftorderdetailService.sendLetteringMess(str); + send_letter_flag = produceshiftorderdetailService.sendLetteringMess(dto); logServer.deviceLogToacs(this.device_code,"","","下发激光刻字信息结果:"+send_letter_flag); } if(send_letter_flag_back) { diff --git a/nladmin-system/src/main/java/org/nl/acs/order/service/ProduceshiftorderdetailService.java b/nladmin-system/src/main/java/org/nl/acs/order/service/ProduceshiftorderdetailService.java index f3bddc9..58f77ca 100644 --- a/nladmin-system/src/main/java/org/nl/acs/order/service/ProduceshiftorderdetailService.java +++ b/nladmin-system/src/main/java/org/nl/acs/order/service/ProduceshiftorderdetailService.java @@ -82,7 +82,7 @@ public interface ProduceshiftorderdetailService { List findOrderDetailByOrderCodeFromCache(String order_code); - Boolean sendLetteringMess(String message) throws IOException; + Boolean sendLetteringMess(ProduceshiftorderdetailDto dto) throws IOException; Boolean isLastOrderDetail(String order); diff --git a/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java b/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java index 88be139..3553531 100644 --- a/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java +++ b/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java @@ -59,11 +59,11 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A @Override public void autoInitial() throws Exception { - this.reload(); + //this.reload(); } public synchronized void reload() { - this.order = this.queryAllOrder("(order_status !='04' or order_status !='05' ) and is_deleted =0"); + this.order = this.queryAllOrder("(order_status !='07' or order_status !='08' ) and is_deleted =0"); } @Override diff --git a/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderdetailServiceImpl.java b/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderdetailServiceImpl.java index 31144b9..852731a 100644 --- a/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderdetailServiceImpl.java +++ b/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderdetailServiceImpl.java @@ -243,7 +243,12 @@ public class ProduceshiftorderdetailServiceImpl implements Produceshiftorderdeta } @Override - public Boolean sendLetteringMess(String message) { + public Boolean sendLetteringMess(ProduceshiftorderdetailDto dto) { + String message = ""; + String msg1 = dto.getLettering_message(); + String msg2 = dto.getLettering_message2(); + String icon = dto.getLettering_icon(); + //清缓存 try { LetteringSocketConnectionAutoRun.write("BUFFERCLEAR" + "\r\n");