自动化立体仓库 - WMS系统
pang.jiabao
2025-11-13 d3d155627aac7ed9529eabc3de4a2dab4bda504e
src/main/java/com/zy/asrs/task/handler/OrderPakinSyncHandler.java
@@ -12,6 +12,7 @@
import com.zy.asrs.service.OrderPakinService;
import com.zy.asrs.task.AbstractHandler;
import com.zy.asrs.task.core.ReturnT;
import com.zy.common.constant.ApiInterfaceConstant;
import com.zy.common.constant.MesConstant;
import com.zy.common.model.MesPakinParam;
import com.zy.common.utils.HttpHandler;
@@ -62,8 +63,8 @@
        ReturnT<String> result = SUCCESS;
        try {
            response = new HttpHandler.Builder()
                    .setUri(MesConstant.URI)
                    .setPath(MesConstant.PAKIN_PATH)
                    .setUri(ApiInterfaceConstant.ERP_IP)
                    .setPath(ApiInterfaceConstant.PAKIN_PATH)
                    .setJson(JSON.toJSONString(param))
                    .build()
                    .doPost();
@@ -73,7 +74,7 @@
                orderPakinService.updateSettle(order.getId(), 6L, null);
                success = true;
            } else {
                log.error("入库完成上报erp失败!url:{};request:{};response:{}", MesConstant.URI + MesConstant.PAKIN_PATH, JSON.toJSONString(param), response);
                log.error("入库完成上报erp失败!url:{};request:{};response:{}", ApiInterfaceConstant.ERP_IP + ApiInterfaceConstant.PAKIN_PATH, JSON.toJSONString(param), response);
                throw new CoolException("入库完成上报erp失败");
            }
        } catch (Exception e) {
@@ -84,7 +85,7 @@
                // 保存接口日志
                apiLogService.save(
                        "入库完成上报",
                        MesConstant.URI + MesConstant.PAKIN_PATH,
                        ApiInterfaceConstant.ERP_IP + ApiInterfaceConstant.PAKIN_PATH,
                        null,
                        "127.0.0.1",
                        JSON.toJSONString(param),