自动化立体仓库 - WMS系统
1
Administrator
2026-03-23 4559e9052e8ffcef4062650328c95a31bca05038
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -31,6 +31,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
@@ -49,9 +50,9 @@
    // 二楼堆垛机对应入库站点
    private static final int[] secondFloorIn = new int[]{0, 2061, 2064, 2067, 2070, 2073, 2076};
    // 堆垛机对应一楼出库站点
    private static final int[] secondFloorOut = new int[]{0, 3002, 3003, 3006, 3008, 3009, 3012};
    private static final int[] secondFloorOut = new int[]{0, 3002, 3003, 3006, 3008, 3009, 3011};
    // 堆垛机对应一楼入库站点
    private static final int[] oneFloorIn = new int[]{0, 3001, 3004, 3005, 3007, 3010, 3011};
    private static final int[] oneFloorIn = new int[]{0, 3001, 3004, 3005, 3007, 3010, 3012};
    @Autowired
@@ -1442,8 +1443,14 @@
        } else if (wrkMast.getSourceStaNo() == 3046 || wrkMast.getSourceStaNo() == 3042) {
            wrkMast.setBarcode(param.getBarcode());
        }
        wrkMastService.updateById(wrkMast);
        boolean b = wrkMastService.updateById(wrkMast);
        WrkMast wrkMas2 = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", param.getWorkNo()));
        log.error("{}任务状态改变为:{},更新记录{}",wrkMas2.getWrkNo(),wrkMas2.getWrkSts(),b);
//        wrkMastService.checkDb(param.getWorkNo());
        if(!b) {
            throw new CoolException("没有更新到记录");
        }
        return "请求成功";
    }