自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-13 51b82dc2609e6fa7e8100ef8ccc56ea1ee468a2a
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -105,6 +105,14 @@
    }
    @Override
    public void emptyPlateIn(Integer devpNo, Long userId) {
        // 源站点状态检测
        BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo);
    }
    @Override
    @Transactional
    public void emptyPlateOut(EmptyPlateOutParam param, Long userId) {
        if (Cools.isEmpty(param.getOutSite())) {
@@ -152,6 +160,16 @@
            if (!res) {
                throw new CoolException("保存工作档失败");
            }
            // 更新库位状态 D.空板 -> R.出库预约
            if (locMast.getLocType().equals("D")){
                locMast.setLocType("R");
                locMast.setModiUser(userId);
                locMast.setModiTime(new Date());
                if (!locMastService.updateById(locMast)) {
                    throw new CoolException("更新库位状态失败");
                }
            }
            // todo 更新站点信息(工作号)
        }
    }