自动化立体仓库 - WMS系统
#
lty
10 天以前 dc8605e5c26bdd43caff61179d7975c4281581ed
src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java
@@ -194,6 +194,13 @@
                            }
                        }
                    }
                    if(wrkMast.getSourceStaNo().equals("1070")){
                        WrkMast wrkMastOld = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("barcode",wrkMast.getBarcode()).eq("loc_no",wrkMast.getSourceLocNo()));
                        wrkMastOld.setOveMk("Y");
                        if(!wrkMastService.updateById(wrkMastOld)){
                            return FAIL.setMsg("出库回库 ===>> 原任务完成失败; [workNo=" + wrkMastOld.getWrkNo() + "],[locNo=" + wrkMastOld.getLocNo() + "]");
                        }
                    }
                    // 修改库位状态 S ====>> F
                    if (locMast.getLocSts().equals("S")) {
                        locMast.setLocSts("F");
@@ -606,6 +613,14 @@
                                wrkMast1.setOveMk("Y");
                                wrkMastService.updateById(wrkMast1);
                            }
                            LocAroundBind bLocNo = locAroundBindService.selectOne(new EntityWrapper<LocAroundBind>().eq("b_loc_no", wrkMast.getSourceLocNo()));
                            if (Objects.isNull(bLocNo)) {
                                throw new CoolException("数据错误, 目标工位不存在!!");
                            }
                            bLocNo.setLocType(LocStsType.LOC_STS_TYPE_O.type);
                            if (!locAroundBindService.updateById(bLocNo)) {
                                throw new CoolException("工位状态修改失败!!");
                            }
                        }
//                    // 出库确认信号位
//                    if (Cools.isEmpty(wrkMast.getInvWh()) || wrkMast.getInvWh().equals("N")) {