pang.jiabao
8 天以前 1195089a2f65e8773ef74f3d369d8f2ff1dd3f34
src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java
@@ -18,6 +18,7 @@
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.concurrent.TimeUnit;
@Slf4j
@Service("toWmsService")
@@ -106,6 +107,7 @@
        try {
            response = new HttpHandler.Builder()
                    .setUri(wmsUrl)
                    .setTimeout(30, TimeUnit.SECONDS)
                    .setPath(inboundTaskApplyPath)
                    .setJson(JSON.toJSONString(wmsParam))
                    .build()
@@ -118,6 +120,7 @@
                    return taskWrk;
                } else if (successCode.equals(jsonObject.get(code).toString())) {
                    WmsResult result = JSON.parseObject(jsonObject.get(data).toString(), WmsResult.class);
                    success = true;
                    return createInTask(result, wmsParam.getBarcode(), wmsParam.getStationCode());
                }
            }
@@ -125,7 +128,7 @@
            e.printStackTrace();
            log.info("请求wms报错,入参:{},异常:{}", JSON.toJSONString(wmsParam), e.getMessage());
        } finally {
            addApiLog("入库任务请求获取库位", wmsUrl + inboundTaskApplyPath, JSON.toJSONString(wmsParam), response, success);
            addApiLog("入库请求WMS", wmsUrl + inboundTaskApplyPath, JSON.toJSONString(wmsParam), response, success);
        }
        return null;
    }