| | |
| | | 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; |
| | |
| | | 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(); |
| | |
| | | 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) { |
| | |
| | | // 保存接口日志 |
| | | apiLogService.save( |
| | | "入库完成上报", |
| | | MesConstant.URI + MesConstant.PAKIN_PATH, |
| | | ApiInterfaceConstant.ERP_IP + ApiInterfaceConstant.PAKIN_PATH, |
| | | null, |
| | | "127.0.0.1", |
| | | JSON.toJSONString(param), |