| | |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setModiUser(9527L); |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setPltType(agvWrkMast.getPltType()); |
| | | wrkMast.setLogErrMemo("completedCarryWrk"); |
| | | if (!agvWrkMastService.insertByIncrease(wrkMast)) { |
| | | throw new CoolException("保存工作档失败"); |
| | |
| | | reportMes(agvWrkMast, agvWrkDetlListOld); |
| | | return SUCCESS; |
| | | } |
| | | |
| | | |
| | | @Transactional |
| | | public ReturnT<String> completedCarryWrk2(AgvWrkMast agvWrkMast) { |
| | |
| | | } catch (Exception e) { |
| | | log.error("" + e.getMessage()); |
| | | } |
| | | reportMes(agvWrkMast, agvWrkDetlListOld); |
| | | //TODO 张超 |
| | | //reportMes(agvWrkMast, agvWrkDetlListOld); |
| | | return SUCCESS; |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |