新火炬后端单体项目初始化代码
Houjie
2 天以前 67ac603f410319a0d999e5f493c8ef2d74163fe1
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("同步成功!");
    }
}