新火炬后端单体项目初始化代码
zhangherong
2 天以前 d4a7b1faad635b4817891185a4f471595db2eece
src/main/java/org/jeecg/modules/mes/controller/MesProductionOrderController.java
@@ -104,10 +104,21 @@
        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("同步成功!");
    }
}