pang.jiabao
2 天以前 a1e94379b115721b2e604070dc48063b8016f72f
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -81,6 +81,9 @@
        taskWrk.setBarcode(param.getBarcode());//条码
        taskWrk.setCrnNo(locMast.getCrnNo());
        taskWrk.setType(param.getType());
        taskWrk.setMp(param.getMp());
        taskWrk.setLx(param.getLx());
        taskWrk.setLev(param.getLev());
        if (param.getIoType() == 1) {
            taskWrk.setWrkSts(1);
            if (!Cools.isEmpty(param.getTargetPoint())) {
@@ -92,7 +95,11 @@
            taskWrk.setWrkSts(11);
//            if (!Cools.isEmpty(param.getStartPoint())) {
            taskWrk.setStartPoint(param.getStartPoint());//起点
            taskWrk.setTargetPoint(String.valueOf(Integer.parseInt(param.getTargetPoint()) - 1));
            if (Integer.parseInt(param.getTargetPoint()) == 211 || Integer.parseInt(param.getTargetPoint()) == 206 || Integer.parseInt(param.getTargetPoint()) == 202) {
                taskWrk.setTargetPoint(String.valueOf(Integer.parseInt(param.getTargetPoint()) + 1));
            } else {
                taskWrk.setTargetPoint(String.valueOf(Integer.parseInt(param.getTargetPoint()) - 1));
            }
//            }
//            taskWrk.setTargetPoint(param.getTargetPoint());
        } else if (param.getIoType() == 3) {
@@ -138,8 +145,12 @@
        } else {
            staProtocol1 = staProtocol1.clone();
        }
        if (staProtocol1.isLoading()) {
            return R.error("目标站点有物!");
//        if (staProtocol1.isLoading()) {
//            return R.error(staProtocol1.getSiteId() + "站点有物!");
//        }
        if (!staProtocol.isAutoing()) {
            return R.error(staProtocol.getSiteId() + "站点fei自动");
        }
        staProtocol.setWorkNo((short) commonService.getWorkNo(param.getFlag()));
        staProtocol.setStaNo(param.getTargetSite().shortValue());