| | |
| | | List<Map<String, Object>> res = orderList.stream().map(order -> { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("title", order.getOrderCode()); |
| | | map.put("text", order.getOrderCode()); |
| | | map.put("label", order.getOrderCode()); |
| | | map.put("value", order.getId()); |
| | | return map; |
| | | }).collect(Collectors.toList()); |
| | | return Result.OK(res); |
| | | } |
| | | |
| | | @ApiOperation(value = "SAP生产订单-根据订单号同步最新信息", notes = "SAP生产订单-根据订单号同步最新信息") |
| | | @GetMapping(value = "/syncSapProductionOrder") |
| | | public Result<?> syncSapProductionOrder(@RequestParam(name = "id") String id) { |
| | | boolean b = mesProductionOrderService.syncSapProductionOrder(id); |
| | | if (!b) { |
| | | return Result.error("同步失败!"); |
| | | } |
| | | return Result.ok("同步成功!"); |
| | | } |
| | | } |