自动化立体仓库 - WMS系统
zhangc
2025-01-01 6cfcb307f01b9550b6cd67321f2c1db345b4da19
src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -12,6 +12,7 @@
import com.zy.asrs.entity.param.*;
import com.zy.asrs.service.*;
import com.zy.asrs.service.impl.OrderServiceImpl;
import com.zy.asrs.utils.OrderUtils;
import com.zy.common.web.BaseController;
import lombok.Synchronized;
import org.slf4j.Logger;
@@ -140,9 +141,11 @@
        params.getCombParams().forEach(combParam -> {
            agvMobileService.comb(combParam, getUserId());
        });
        //获取判断时哪个厂的订单
        String csocode = params.getCombParams().get(0).getCombMats().get(0).getCsocode();
        String factory = OrderUtils.getFactory(csocode);
        params.setContainerType(Short.valueOf(params.getContainerCode().substring(0, 2)));
        workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false);
        workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false,factory);
        return R.ok("生成工作档成功");
    }
@@ -157,7 +160,7 @@
        for (AgvMobileStartParam.Pda pda : params.getPad()) {
            pda.setContainerType(Short.valueOf(pda.getContainerCode().substring(0, 2)));
            workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false);
            workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false,null);
        }
        return R.ok();