diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/fold_disc_site/FoldDiscSiteDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/fold_disc_site/FoldDiscSiteDeviceDriver.java index 9c56974..d1493b9 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/fold_disc_site/FoldDiscSiteDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/fold_disc_site/FoldDiscSiteDeviceDriver.java @@ -117,9 +117,9 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements json.put("device_code",device_code); json.put("type",1); acsToWmsService.notify(json); - if (number == max_emptypalletnum) { - this.requireSucess = false; - } + } + if(mode!=last_mode && mode==8){ + this.requireSucess=false; } } catch (Exception var17) { @@ -154,6 +154,8 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements log.debug("设备运转模式:等待工作"); break; case 2: + break; + case 8: if (!this.requireSucess) { this.shipDeviceUpdate(); } @@ -214,6 +216,7 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements if (StrUtil.equals(res_jo.getString("code"), "200")) { log.info("叠盘位堆叠数量满自动申请搬运任务成功!"); this.requireSucess = true; + this.writing(8); } } } diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/mapper/SchBaseVehiclematerialgroupMapper.xml b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/mapper/SchBaseVehiclematerialgroupMapper.xml index 8ccaf69..4a19164 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/mapper/SchBaseVehiclematerialgroupMapper.xml +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/mapper/SchBaseVehiclematerialgroupMapper.xml @@ -21,6 +21,9 @@ AND vg.group_bind_material_status = #{query.group_bind_material_status} + + AND vg.material_id = #{query.material_id} + AND vg.point_code IN ( SELECT p.point_code diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupQuery.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupQuery.java index 576d285..44c6781 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupQuery.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupQuery.java @@ -15,5 +15,6 @@ public class SchBaseVehiclematerialgroupQuery implements Serializable { private String vehicle_code; private String workshop_code; private String region_code; + private String material_id; private String group_bind_material_status; } diff --git a/lms/nladmin-ui/src/views/wms/sch/group/index.vue b/lms/nladmin-ui/src/views/wms/sch/group/index.vue index 7fe94f1..8bdf9df 100644 --- a/lms/nladmin-ui/src/views/wms/sch/group/index.vue +++ b/lms/nladmin-ui/src/views/wms/sch/group/index.vue @@ -47,6 +47,15 @@ @keyup.enter.native="crud.toQuery" /> + + + --> + + @@ -248,10 +259,9 @@ - + -->