yangyang
2025-06-17 4dee31e21d557a082f2dec84d951a19f5d282652
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java
@@ -87,6 +87,7 @@
                        executeTask11(task);
                        break;
                    case 53://拣料再入库
                    case 57:
                        executeTask53(task);
                        break;
                    default:
@@ -147,6 +148,7 @@
                        executeTask101(task);
                        break;
                    case 103://拣料
                    case 107:
                        executeTask103(task);
                        break;
                    default:
@@ -323,7 +325,8 @@
     * @param task
     */
    //拣料再入库
    private void executeTask53(Task task) {
    @Transactional(rollbackFor = Exception.class)
    public void executeTask53(Task task) {
        Long hostId = task.getHostId();
        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
        if (loc == null) {
@@ -431,7 +434,7 @@
        if (loc == null) {
            throw new CoolException("库位不存在");
        }
        if (loc.getLocStsId() != LocStsType.S.val()) {
        if (loc.getLocStsId() != LocStsType.R.val()) {
            throw new CoolException("库位状态不处于R.出库预约");
        }
        List<TaskDetl> taskDetls = taskDetlService.getTaskDetlByTaskId(task.getId());