自动化立体仓库 - WMS系统
zhangchao
2024-11-02 6b3b0bbef242997de2f6665dce91964c4ca4a92e
src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java
@@ -375,6 +375,7 @@
                    wrkMast.setAppeTime(now);
                    wrkMast.setModiUser(9527L);
                    wrkMast.setModiTime(now);
                    wrkMast.setPltType(agvWrkMast.getPltType());
                    wrkMast.setLogErrMemo("completedCarryWrk");
                    if (!agvWrkMastService.insertByIncrease(wrkMast)) {
                        throw new CoolException("保存工作档失败");
@@ -425,6 +426,7 @@
        reportMes(agvWrkMast, agvWrkDetlListOld);
        return SUCCESS;
    }
    @Transactional
    public ReturnT<String> completedCarryWrk2(AgvWrkMast agvWrkMast) {
@@ -479,7 +481,8 @@
        } catch (Exception e) {
            log.error("" + e.getMessage());
        }
        reportMes(agvWrkMast, agvWrkDetlListOld);
        //TODO 张超
        //reportMes(agvWrkMast, agvWrkDetlListOld);
        return SUCCESS;
    }
@@ -826,18 +829,13 @@
        boolean success = false;
        try {
            response = new HttpHandler.Builder()
                    .setUri(url)
                    .setPath(path)
                    .setHeaders(headParam)
                    .setJson(JSONObject.toJSONString(requestParam))
                    .setHttps(true)
                    .build()
                    .doPost();
            response = new HttpHandler.Builder().setUri(url).setPath(path).setHeaders(headParam).setJson(JSONObject.toJSONString(requestParam)).setHttps(true).build().doPost();
            JSONObject jsonObject = JSON.parseObject(response);
            if (Cools.isEmpty(jsonObject.get("code")) || Integer.parseInt(jsonObject.get("code").toString()) != 200) {
                throw new CoolException(jsonObject.get("dsc").toString());
                log.info("mes接口调用失败,返回信息:" + jsonObject);
                //TODO 张超
                //throw new CoolException("mes接口调用失败,返回信息:" + jsonObject);
            }
            success = true;
            return jsonObject;
@@ -854,15 +852,7 @@
            log.error(e.getMessage());
            throw new CoolException(e.getMessage());
        } finally {
            apiLogService.save(
                    namespace,
                    url + path,
                    appkey,
                    ip,
                    JSON.toJSONString(JSONObject.toJSONString(requestParam)),
                    response,
                    success
            );
            apiLogService.save(namespace, url + path, appkey, ip, JSON.toJSONString(JSONObject.toJSONString(requestParam)), response, success);
        }
    }