| | |
| | | success = true; |
| | | // 修改订单状态 4.完成 ===>> 16.已上报 |
| | | if (!orderService.updateItemName(itemName, 16L, userId)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | // throw new CoolException("服务器内部错误,请联系管理员"); |
| | | log.error("组货单更新状态失败!!!组货单号"+itemName+".updateItemName"); |
| | | } else { |
| | | return R.ok(); |
| | | } |
| | | } else { |
| | | // 修改订单状态 4.完成 ===>> 17.已上报 |
| | | if (!orderService.updateItemName(itemName, 17L, userId)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | // throw new CoolException("服务器内部错误,请联系管理员"); |
| | | log.error("组货单更新状态失败!!!组货单号"+itemName+".updateItemName"); |
| | | } |
| | | log.error("请求接口失败!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PAKIN_URL, JSON.toJSONString(qualityGroupListParam), response); |
| | | throw new CoolException("上报mes系统失败"); |
| | | } |
| | | return R.error("上报mes系统失败").add("上报mes系统失败"); |
| | | } catch (Exception e) { |
| | | // 修改订单状态 4.完成 ===>> 17.已上报 |
| | | if (!orderService.updateItemName(itemName, 17L, userId)) { |
| | | throw new CoolException("服务器内部错误,请联系管理员"); |
| | | log.error("组货单更新状态失败!!!组货单号"+itemName+".updateItemName"); |
| | | } |
| | | log.error("fail", e); |
| | | } finally { |
| | |
| | | ); |
| | | } catch (Exception e) { log.error("", e); } |
| | | } |
| | | |
| | | |
| | | |
| | | return R.ok(); |
| | | return R.error("上报失败").add("上报失败"); |
| | | } |
| | | } |